sqllogictest
Artifact Content
Not logged in

Artifact aed804bb8b49c9977b7e9cfc047a8cfe13403f7e:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT 75 DIV - 30 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-0
SELECT 75 / - 30 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT col0 AS col2, col2 + + 54 AS col1 FROM tab2 cor0
----
46
77
64
94
75
112

query I rowsort
SELECT col1 * col1 * - col0 * - col1 FROM tab1 AS cor0
----
10625
139944
9447893

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

skipif mysql # not compatible
query I rowsort label-3
SELECT - col0 / - + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - col0, - 42 AS col2 FROM tab0 AS cor0
----
-15
-42
-87
-42
-97
-42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0, 6 col1 FROM tab2
----
2346
6
4928
6
5025
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT COUNT( * ) * + 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8
SELECT COUNT ( * ) * + 52 FROM tab1
----
156

query I rowsort
SELECT col1 * + 74 AS col0 FROM tab2
----
3774
4958
5698

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

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

query I rowsort
SELECT ALL - col1 + - - col1 AS col2 FROM tab0 cor0
----
0
0
0

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

query I rowsort
SELECT - col2 * + - col0 * col0 + + 58 FROM tab1 AS cor0
----
249754
426333
563166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-15
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 >= - + CAST( NULL AS SIGNED ) * + 78
----

skipif mysql # not compatible
query III rowsort label-15
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 >= - + CAST ( NULL AS INTEGER ) * + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT SUM( + + 5 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT SUM ( + + 5 ) FROM tab0
----
15

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

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

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

query I rowsort
SELECT DISTINCT - 33 + - col2 FROM tab1 AS cor0
----
-101
-129
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL + + COUNT( * ) + COUNT( * ) * COUNT( * ) + COUNT( * ) + + 67 AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) + + 67 AS col0 FROM tab0 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 - - col2 col1 FROM tab2 AS cor0
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + 25 + + SUM( ALL - 93 ) + MIN( - - 25 ) AS col0 FROM tab2 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 25 + + SUM ( ALL - 93 ) + MIN ( - - 25 ) AS col0 FROM tab2 AS cor0
----
-229

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * - - col2 * + - col1 >= - - col0 - 94
----

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

query I rowsort
SELECT ALL 66 - + 77 - + - col1 AS col0 FROM tab1
----
-6
3
36

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT COUNT( * ), - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-27
SELECT COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT - MAX( - - col1 ) AS col2 FROM tab0 WHERE + - 57 <> - col1
----
-81

skipif mysql # not compatible
query I rowsort label-28
SELECT - MAX ( - - col1 ) AS col2 FROM tab0 WHERE + - 57 <> - col1
----
-81

query I rowsort
SELECT + col1 * + - 42 FROM tab0 AS cor0
----
-3402
-42
-882

query I rowsort
SELECT + 81 * - col1 AS col2 FROM tab0 AS cor0
----
-1701
-6561
-81

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

query I rowsort
SELECT ALL 2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

query I rowsort
SELECT ALL + + ( + 35 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - - col0 * - + col1 * - col0 NOT BETWEEN col1 AND + col0 / 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT + - col0 + - col2 + + - col1 DIV + - col0 FROM tab2 cor0
----
-103
-133
-68

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + - col0 + - col2 + + - col1 / + - col0 FROM tab2 cor0
----
-103
-133
-68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-38
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST( + - 22 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-38
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST ( + - 22 AS INTEGER )
----
23
40
58

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

query I rowsort
SELECT ALL col0 * - 53 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT - col1 * 71 AS col0 FROM tab0
----
-1491
-5751
-71

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

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-43
SELECT + 11 * + CAST( col1 AS SIGNED ) * - ( + 11 ) FROM tab1
----
-1694
-5687
-605

skipif mysql # not compatible
query I rowsort label-43
SELECT + 11 * + CAST ( col1 AS INTEGER ) * - ( + 11 ) FROM tab1
----
-1694
-5687
-605

query II rowsort
SELECT DISTINCT col0, 13 AS col2 FROM tab1
----
51
13
85
13
91
13

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 19 * + + 70 + COUNT( * ) FROM tab1
----
1333

skipif mysql # not compatible
query I rowsort label-45
SELECT 19 * + + 70 + COUNT ( * ) FROM tab1
----
1333

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE 75 BETWEEN - 92 AND 23
----

query II rowsort
SELECT DISTINCT + 33 AS col1, col0 + - 75 AS col0 FROM tab2
----
33
-11
33
-29
33
0

query I rowsort
SELECT DISTINCT AVG ( - col0 ) FROM tab1 cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT - CAST( - - col1 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-49
SELECT - CAST ( - - col1 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + + col0
----
46
51
23
64
77
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT COUNT( * ) * - 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( * ) * - 51 FROM tab1
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT ( 59 ) + - - MIN( ALL 35 ) * COUNT( * ) FROM tab2 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT ( 59 ) + - - MIN ( ALL 35 ) * COUNT ( * ) FROM tab2 AS cor0
----
164

query I rowsort
SELECT - col2 + + 71 * + + col1 * - 95 * + col2 AS col2 FROM tab1 AS cor0
----
-1989834
-21557088
-9065376

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 + - col1 col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - 65 DIV + - ( + col1 ) + + 47 col0 FROM tab2
----
47
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT DISTINCT - 65 / + - ( + col1 ) + + 47 col0 FROM tab2
----
47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 65 col2 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT + col1 * - + 72 * col1 AS col0 FROM tab0
----
-31752
-472392
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL 49 * - MIN( - + 73 ) FROM tab2
----
3577

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL 49 * - MIN ( - + 73 ) FROM tab2
----
3577

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST( NULL AS SIGNED ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 0fba1277b539d8c885c4dd230fb9d40a

skipif mysql # not compatible
query III rowsort label-67
SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST ( NULL AS INTEGER ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 0fba1277b539d8c885c4dd230fb9d40a

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT - 32, + COUNT( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-32
267

skipif mysql # not compatible
query II rowsort label-69
SELECT - 32, + COUNT ( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-32
267

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

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

query I rowsort
SELECT ALL - col1 * - 31 * + col2 * + col1 FROM tab0
----
136710
3069
9559377

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < 35 * col2
----

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 + ( - 53 ) + 75 AS col2 FROM tab1 AS cor0
----
-29
-63
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT + MIN( ALL 52 ) FROM tab2, tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + MIN ( ALL 52 ) FROM tab2, tab0 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-77
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col0 * - - 98 / 92 + + + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-77
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col0 * - - 98 / 92 + + + CAST ( - - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT DISTINCT 9 DIV - SUM( DISTINCT - + 70 ) + + SUM( DISTINCT 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT 9 / - SUM ( DISTINCT - + 70 ) + + SUM ( DISTINCT 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT 62 * - 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 5233bdb1e0a8bc81c8d72fa7b5e7c53b

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - 43 * - COUNT( * ) * + - 16 + - - COUNT( * ) FROM tab0 AS cor0
----
-2061

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 43 * - COUNT ( * ) * + - 16 + - - COUNT ( * ) FROM tab0 AS cor0
----
-2061

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 <> - 79 * - 44 * - col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-82
SELECT DISTINCT + SUM ( ALL + col2 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
226

query II rowsort
SELECT - col2 + + + 1 + - col2 * - + col1 AS col2, col2 AS col0 FROM tab2
----
1151
23
3041
40
3829
58

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL - + MIN( - 77 ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
143

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL - + MIN ( - 77 ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT col2 + ( CAST( - + 8 AS SIGNED ) ) FROM tab1
----
51
60
88

skipif mysql # not compatible
query I rowsort label-85
SELECT col2 + ( CAST ( - + 8 AS INTEGER ) ) FROM tab1
----
51
60
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT ALL + + col2 DIV 25 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + + col2 / 25 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + col1 * - 20 - - 95 * 97 * + col2 FROM tab0 AS cor0
----
431485
912265
91730

query I rowsort
SELECT + + 25 - col2 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # DIV for integer division: 
query II rowsort label-91
SELECT col2 DIV col0 - + col1, - col1 AS col0 FROM tab0 AS cor0
----
-21
-21
-78
-81
0
-1

skipif mysql # not compatible
query II rowsort label-91
SELECT col2 / col0 - + col1, - col1 AS col0 FROM tab0 AS cor0
----
-21
-21
-78
-81
0
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT col1 * - 46 * + + col0 * CAST( 38 AS SIGNED ) FROM tab2
----
-4100808
-8614144
-8783700

skipif mysql # not compatible
query I rowsort label-93
SELECT col1 * - 46 * + + col0 * CAST ( 38 AS INTEGER ) FROM tab2
----
-4100808
-8614144
-8783700

query I rowsort
SELECT ( 77 ) AS col1 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 FROM tab1 AS cor0 WHERE NOT NULL <> - 68 + + col0
----

query I rowsort
SELECT ALL ( 5 ) AS col2 FROM tab0 AS cor0
----
5
5
5

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

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

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

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT SUM ( DISTINCT + + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 28 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 94 NOT IN ( 89 )
----
3

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 94 NOT IN ( 89 )
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col0 < - ( col0 ) / col2
----
-15
-87
-97

query II rowsort
SELECT DISTINCT - 82 AS col0, col2 FROM tab2
----
-82
23
-82
40
-82
58

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT col1 DIV col1 + - + col0 * - col1 FROM tab2
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-106
SELECT col1 / col1 + - + col0 * - col1 FROM tab2
----
2347
4929
5026

query I rowsort
SELECT ALL col2 + + 37 AS col2 FROM tab0
----
136
47
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-108
SELECT 33 + - CAST( NULL AS DECIMAL ) + 52 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT 33 + - CAST ( NULL AS REAL ) + 52 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + COUNT( ALL + col1 ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-110
SELECT + COUNT ( ALL + col1 ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + 31 + + 7 FROM tab0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT COUNT( * ) + - 0 + + + 47 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) + - 0 + + + 47 AS col1 FROM tab1
----
50

query II rowsort
SELECT col2 * + col1 * - + col0 + col2 AS col1, - 1 + col0 FROM tab1
----
-25016
84
-290768
90
-68448
50

query I rowsort
SELECT ALL 98 * - - col2 * - col1 AS col1 FROM tab2
----
-114954
-301840
-380828

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-115
SELECT DISTINCT + 63 col2, CAST( + col0 AS SIGNED ) + + 28 * - - col2 * + + col1 + - 18 FROM tab2 WHERE NOT NULL = + 45
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-115
SELECT DISTINCT + 63 col2, CAST ( + col0 AS INTEGER ) + + 28 * - - col2 * + + col1 + - 18 FROM tab2 WHERE NOT NULL = + 45
----

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

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL 50 / - + COUNT ( ALL - 49 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL - COUNT( * ) + + - 62 AS col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - COUNT ( * ) + + - 62 AS col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT + + col0 + - - 54 FROM tab1 cor0
----
105
139
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT - 92 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - 92 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
276

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT ALL - COUNT( - 81 ) AS col0, 84 FROM tab2 AS cor0
----
-3
84

skipif mysql # not compatible
query II rowsort label-124
SELECT ALL - COUNT ( - 81 ) AS col0, 84 FROM tab2 AS cor0
----
-3
84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 79 col0 FROM tab1
----
-4661
-5372
-7584

query II rowsort
SELECT col1, - 24 AS col2 FROM tab1
----
14
-24
47
-24
5
-24

query I rowsort
SELECT DISTINCT - 87 * - col0 FROM tab2
----
4002
5568
6525

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

query I rowsort
SELECT DISTINCT 42 * - 48 FROM tab1
----
-2016

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

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL - - ( + + COUNT( * ) ) * - MIN( - col2 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - - ( + + COUNT ( * ) ) * - MIN ( - col2 ) FROM tab1 AS cor0
----
288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT COUNT( * ) + 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-135
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - ( 31 )
----

query I rowsort
SELECT 2 + - col2 * - col1 AS col0 FROM tab1
----
1346
297
3198

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE + 98 BETWEEN + 67 * + col0 AND ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + col2 ) FROM tab1 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT + col2 + + col1 * + col1 AS col1 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT - COUNT( * ) * 41 FROM tab1 WHERE - col0 > + 23
----
0

skipif mysql # not compatible
query I rowsort label-142
SELECT - COUNT ( * ) * 41 FROM tab1 WHERE - col0 > + 23
----
0

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

query I rowsort
SELECT 62 * + 25 AS col2 FROM tab0
----
1550
1550
1550

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT col2 + 87 FROM tab2
----
110
127
145

query I rowsort
SELECT ( + 40 ) AS col2 FROM tab0
----
40
40
40

query I rowsort
SELECT + col0 + 41 AS col1 FROM tab2
----
105
116
87

query I rowsort
SELECT ALL + 89 * ( ( 71 ) ) AS col1 FROM tab2
----
6319
6319
6319

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

query I rowsort
SELECT ALL col2 * 62 AS col2 FROM tab1
----
3658
4216
5952

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

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 WHERE NOT ( + col0 - ( + 91 ) ) IS NULL
----
60

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

query I rowsort
SELECT 29 FROM tab1 WHERE 41 + col1 NOT IN ( 41 * col2 )
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + col1 <> + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - MIN( ALL 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-158
SELECT - MIN ( ALL 36 ) FROM tab0
----
-36

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 80 col1 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT ALL + col0 - 36 AS col0 FROM tab2 AS cor0
----
10
28
39

query I rowsort
SELECT col0 * 66 + + 75 * + 87 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT 81 - + col1 DIV + col2 AS col0 FROM tab0
----
79
80
81

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT 81 - + col1 / + col2 AS col0 FROM tab0
----
79
80
81

query I rowsort
SELECT + 71 * 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3408109de511330d0a1477fdf184c784

query I rowsort
SELECT DISTINCT 93 / - 16 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * 81 ) > + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-169
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * 81 ) > + CAST ( + col0 AS INTEGER )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-174
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - ( + CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-174
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - ( + CAST ( col2 AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 * col1 - - 65
----

query I rowsort
SELECT ALL + col0 * + ( - col1 * col0 ) AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * col2 + 86 * 17 AND NULL
----

query I rowsort
SELECT ALL col1 * - - 55 * col0 FROM tab0
----
100485
5335
66825

query I rowsort
SELECT - 45 + 30 FROM tab1 WHERE NOT ( col2 * + col0 ) IS NULL
----
-15
-15
-15

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

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

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

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

query I rowsort
SELECT DISTINCT - 68 * col1 FROM tab1 WHERE ( 54 + + 7 ) IS NULL
----

query I rowsort
SELECT ALL - 16 FROM tab2 WHERE - col0 * col2 IS NOT NULL
----
-16
-16
-16

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

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

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

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

query I rowsort
SELECT col2 * col2 FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
1600
3364
529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT COUNT( * ) * - 56 + 2 AS col0 FROM tab2 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT COUNT ( * ) * - 56 + 2 AS col0 FROM tab2 AS cor0
----
-166

query I rowsort
SELECT + col2 * 49 AS col0 FROM tab0
----
2303
4851
490

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - 26 + + SUM( ALL + ( col1 ) ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT - 26 + + SUM ( ALL + ( col1 ) ) FROM tab1 cor0
----
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( 84 ) AND - col2 * 67
----

query II rowsort
SELECT - col0, col2 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-51
-2505
-85
-7166
-91
-8213

query II rowsort
SELECT ALL - col0 AS col1, - 44 AS col2 FROM tab2 AS cor0
----
-46
-44
-64
-44
-75
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT - 97 + + 30 * - - MAX( DISTINCT 68 ) col2 FROM tab0 AS cor0
----
1943

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT DISTINCT - 97 + + 30 * - - MAX ( DISTINCT 68 ) col2 FROM tab0 AS cor0
----
1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL ( + COUNT( * ) ) + - + 39 DIV + 89 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL ( + COUNT ( * ) ) + - + 39 / + 89 FROM tab0 cor0
----
3

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 4 NOT BETWEEN + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-201
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 39 * CAST( NULL AS SIGNED ) AND col1 * CAST( + 86 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-201
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 39 * CAST ( NULL AS INTEGER ) AND col1 * CAST ( + 86 AS INTEGER ) + col2
----

query I rowsort
SELECT + col1 + - - 78 FROM tab1 AS cor0
----
125
83
92

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 59 + + col0 - + 34 * col2 )
----

query I rowsort
SELECT ALL + 38 + - - col1 * + col1 * 32 - + col1 FROM tab2 cor0
----
143619
189689
83219

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT ALL + 64 AS col1, + COUNT( * ) - - MAX( DISTINCT 26 ) col0 FROM tab1 cor0
----
64
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-206
SELECT ALL + 64 AS col1, + COUNT ( * ) - - MAX ( DISTINCT 26 ) col0 FROM tab1 cor0
----
64
29

query II rowsort
SELECT 92 + - col1, - col2 AS col1 FROM tab2
----
15
-40
25
-58
41
-23

query I rowsort
SELECT DISTINCT - 76 * + 84 * + col2 + - col0 AS col0 FROM tab1
----
-376741
-434203
-612915

query I rowsort
SELECT + col0 + + col1 - col2 AS col1 FROM tab0
----
-1
49
98

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT + col1 DIV col2 + + + col0 AS col2 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-210
SELECT + col1 / col2 + + + col0 AS col2 FROM tab0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT COUNT( * ) AS col0 FROM tab0 WHERE 63 * - 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE 63 * - 25 IS NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 33 * + col0 col1 FROM tab0
----
-2881
-3300
-542

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT ALL col1 - col0 - + col0 DIV + col2 - - 15 FROM tab0
----
-59
-81
81

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL col1 - col0 - + col0 / + col2 - - 15 FROM tab0
----
-59
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - SUM( DISTINCT + + col2 ) + COUNT( + col0 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-216
SELECT - SUM ( DISTINCT + + col2 ) + COUNT ( + col0 ) FROM tab2
----
-118

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

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

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

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

query I rowsort
SELECT DISTINCT ( 12 ) + col0 FROM tab1 WHERE NOT - col2 <> col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-221
SELECT - + 4 - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT - + 4 - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 81
----

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - 14 * + col2 + + 7 * + col0 * col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL - CAST( - 8 AS SIGNED ) FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-227
SELECT + MAX ( - 14 ) FROM tab1 AS cor0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT ALL + CAST( + COUNT( DISTINCT - col1 ) AS SIGNED ) * + MIN( - ( + col2 ) ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + CAST ( + COUNT ( DISTINCT - col1 ) AS INTEGER ) * + MIN ( - ( + col2 ) ) FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT - SUM( + CAST( + col0 AS SIGNED ) ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-229
SELECT - SUM ( + CAST ( + col0 AS INTEGER ) ) col2 FROM tab1
----
-227

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-231
SELECT ALL * FROM tab0 WHERE - + CAST( - + 21 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-231
SELECT ALL * FROM tab0 WHERE - + CAST ( - + 21 AS INTEGER ) IS NULL
----

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

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

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

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

query II rowsort
SELECT ALL 71 AS col2, + 63 FROM tab0 AS cor0
----
71
63
71
63
71
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - 21 + - - MIN( DISTINCT - 6 ) * + COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-236
SELECT - 21 + - - MIN ( DISTINCT - 6 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT ALL - CAST( - col2 AS SIGNED ) col0, - ( col0 ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-237
SELECT ALL - CAST ( - col2 AS INTEGER ) col0, - ( col0 ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL + col1 + + col2 + ( - + col1 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) * - AVG ( + ( - 82 ) ) + + CAST( 4 AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) * - AVG ( + ( - 82 ) ) + + CAST ( 4 AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( * ) * + 4 FROM tab1 AS cor0 WHERE ( + 95 + col0 + + col0 + + - col2 * 26 * + + 79 + + col2 ) IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( * ) * + 4 FROM tab1 AS cor0 WHERE ( + 95 + col0 + + col0 + + - col2 * 26 * + + 79 + + col2 ) IS NOT NULL
----
12

query I rowsort
SELECT ALL + col2 - + 70 FROM tab2
----
-12
-30
-47

query II rowsort
SELECT DISTINCT - 2 AS col1, - 75 AS col0 FROM tab2
----
-2
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( 87 ) ) - + + col1 col0 FROM tab1
----
-101
-134
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT - 65 * - COUNT( * ) AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - 65 * - COUNT ( * ) AS col1 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-248
SELECT 59 * - + col1 - CAST( NULL AS SIGNED ) AS col0, - col2 * + col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-248
SELECT 59 * - + col1 - CAST ( NULL AS INTEGER ) AS col0, - col2 * + col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

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

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

query I rowsort
SELECT + col0 * + 39 + + - col0 AS col2 FROM tab1 AS cor0
----
1938
3230
3458

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

query I rowsort
SELECT ( + - col1 ) * - 58 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-253
SELECT DISTINCT 23 DIV - 29 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT 23 / - 29 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT + SUM( + 88 ) * 21 col1 FROM tab0 AS cor0
----
5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-254
SELECT + SUM ( + 88 ) * 21 col1 FROM tab0 AS cor0
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT col1 DIV - + 35 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT col1 / - + 35 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT + 81 * - col1 * - col1 AS col2 FROM tab0
----
35721
531441
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-257
SELECT ALL ( + + ( CAST( NULL AS DECIMAL ) ) ) * + col2 + 88 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL ( + + ( CAST ( NULL AS REAL ) ) ) * + col2 + 88 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT DISTINCT + + MIN( ALL - - 45 ) AS col1, + 85 + + ( - + 37 ) FROM tab0 cor0
----
45
48

skipif mysql # not compatible
query II rowsort label-262
SELECT DISTINCT + + MIN ( ALL - - 45 ) AS col1, + 85 + + ( - + 37 ) FROM tab0 cor0
----
45
48

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col0 + - + col1 <= + + 23 + - ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT + 13 DIV ( - + col2 ) DIV + + 40 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-264
SELECT + 13 / ( - + col2 ) / + + 40 AS col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab0
----
-75

query I rowsort
SELECT 65 * - 78 AS col2 FROM tab1
----
-5070
-5070
-5070

query I rowsort
SELECT col2 + + + col2 - + col1 AS col2 FROM tab2
----
-5
3
49

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

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

query I rowsort
SELECT 34 + col2 FROM tab1
----
102
130
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 5 * - 73 AS col1 FROM tab2
----
51
-365
67
-365
77
-365

query I rowsort
SELECT + - col1 + + 50 AS col2 FROM tab1 cor0
----
3
36
45

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

query II rowsort
SELECT DISTINCT + 49, 18 AS col2 FROM tab0 AS cor0
----
49
18

query I rowsort
SELECT DISTINCT col2 * - col1 * - + col2 + + 0 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT DISTINCT + 19 * - col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-175104
-66139
-87856

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-278
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL AND ( 33 + col0 * + 49 ) IN ( - 86, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-278
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL AND ( 33 + col0 * + 49 ) IN ( - 86, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 * + col0 - + + col2 AS col1 FROM tab2 AS cor0
----
2093
4056
5567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-280
SELECT - col0 - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - col0 - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND 67 IS NOT NULL
----

query I rowsort
SELECT ALL + + 55 + 49 FROM tab2 AS cor0
----
104
104
104

query I rowsort
SELECT + col2 + + + 76 AS col1 FROM tab2 AS cor0
----
116
134
99

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

query I rowsort
SELECT ALL col0 - - 86 - + col0 * - 13 FROM tab1 AS cor0
----
1276
1360
800

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT SUM( + col0 ) * COUNT( * ) - - - ( + 95 ) FROM tab0
----
502

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT SUM ( + col0 ) * COUNT ( * ) - - - ( + 95 ) FROM tab0
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL - 4 - COUNT( DISTINCT - ( - col2 ) ) col0 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-288
SELECT ALL - 4 - COUNT ( DISTINCT - ( - col2 ) ) col0 FROM tab2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL 12 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 12 / + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + 11 NOT IN ( 13 * col2 + + col0 )
----

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

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

skipif mysql # not compatible
query III rowsort label-292
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 58 * col0 - + + col2 FROM tab2 AS cor0
----
-2691
-3752
-4408

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT DISTINCT + 26 * MAX( ( - + col0 ) ) AS col2 FROM tab2
----
-1196

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT + 26 * MAX ( ( - + col0 ) ) AS col2 FROM tab2
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT MIN( - - col1 ) DIV COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT MIN ( - - col1 ) / COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT + 94 + - COUNT( * ) FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT + 94 + - COUNT ( * ) FROM tab2 cor0
----
91

query I rowsort
SELECT ALL col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-301
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST( NULL AS SIGNED ) * + - 64 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-301
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST ( NULL AS INTEGER ) * + - 64 IS NOT NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT 36 DIV - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-303
SELECT 36 / - 73 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 * 50 AS col2, 74 col0 FROM tab0
----
-4900
74
-4900
74
-4900
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - COUNT( * ) - - + COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT - COUNT ( * ) - - + COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ALL col1 DIV 31 * 26 AS col1 FROM tab2 AS cor0
----
26
52
52

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL col1 / 31 * 26 AS col1 FROM tab2 AS cor0
----
26
52
52

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 8 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT col2 * col2 + CAST( - - 93 AS SIGNED ) col0 FROM tab0 cor0
----
193
2302
9894

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-312
SELECT col2 * col2 + CAST ( - - 93 AS INTEGER ) col0 FROM tab0 cor0
----
193
2302
9894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT COUNT( + + col1 ) + + 26 + + - ( - COUNT( * ) ) + - 48 * 39 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
656

skipif mysql # not compatible
query I rowsort label-313
SELECT COUNT ( + + col1 ) + + 26 + + - ( - COUNT ( * ) ) + - 48 * 39 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + - 21 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + - 21 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL - MIN( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 95 > + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - MIN ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 95 > + - 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - 19 DIV - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 19 / - COUNT ( * ) AS col0 FROM tab0
----
6

query II rowsort
SELECT 80, 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6143dcb042c9f10aad1b346ae577b7fc

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-318
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 + + col2 + + CAST( NULL AS SIGNED ) - + + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-318
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 + + col2 + + CAST ( NULL AS INTEGER ) - + + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL CAST( NULL AS SIGNED ) + CAST( - - 21 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= + ( col2 )
----

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( - - 21 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= + ( col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT + + 50 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-321
SELECT + + 50 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - ( ( + + col0 ) ) * - - ( - - 57 ) + - col2 FROM tab0 AS cor0
----
-4969
-5628
-902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT - - col1 * + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-323
SELECT - - col1 * + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

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

query I rowsort
SELECT 61 - - 99 FROM tab1 AS cor0
----
160
160
160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT + - 12 - col0 + - col2 DIV + - col1 col2 FROM tab0 AS cor0
----
-10
-27
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-327
SELECT + - 12 - col0 + - col2 / + - col1 col2 FROM tab0 AS cor0
----
-10
-27
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - 61 AND - ( - 45 )
----

query I rowsort
SELECT ALL + - col1 + col2 FROM tab1 WHERE NULL = col2
----

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

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

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

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

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

query I rowsort
SELECT + 22 / - + col1 + col0 + - 34 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( + col2 ) ) col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - + COUNT( * ) * - 28 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - 77
----
0

skipif mysql # not compatible
query I rowsort label-336
SELECT - + COUNT ( * ) * - 28 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - 77
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT - 91 IS NULL
----
10
47
99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-339
SELECT DISTINCT 43 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 43 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * 85
----

query I rowsort
SELECT ALL 52 + + col2 AS col2 FROM tab1
----
111
120
148

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - 99 + - 9 + + + COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-343
SELECT - 99 + - 9 + + + COUNT ( * ) FROM tab0
----
-105

query II rowsort
SELECT DISTINCT + 49, col1 FROM tab1
----
49
14
49
47
49
5

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

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

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

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

query I rowsort
SELECT - 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT 49 * MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
490

skipif mysql # not compatible
query I rowsort label-350
SELECT 49 * MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
490

query II rowsort
SELECT col2, - 27 + col2 + + col0 FROM tab0
----
10
70
47
35
99
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * col0 * + + col2 col1 FROM tab0
----
50055
61770
681813

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT MIN( col2 ) * + 95 AS col1 FROM tab2
----
2185

skipif mysql # not compatible
query I rowsort label-353
SELECT MIN ( col2 ) * + 95 AS col1 FROM tab2
----
2185

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

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

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

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT 81 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-357
SELECT DISTINCT + ( - + 18 ) * + col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + ( - + 18 ) * + col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 26 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query I rowsort
SELECT ALL + 36 + - 75 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT ALL - - 50, col2 FROM tab0 AS cor0
----
50
10
50
47
50
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT DISTINCT - CAST( + - 54 AS SIGNED ) FROM tab0 AS cor0
----
54

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

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

query I rowsort
SELECT DISTINCT - - col1 + + col1 + - 41 FROM tab1 AS cor0
----
-13
-31
53

query I rowsort
SELECT col1 FROM tab2 WHERE col2 + + + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 + - + 17 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16
4
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 IN ( + col1, 6, - + col2 )
----

query I rowsort
SELECT + 83 * - ( - + col1 ) FROM tab0
----
1743
6723
83

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

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + + 20 FROM tab1 AS cor0
----
-100
-280
-940

query I rowsort
SELECT DISTINCT - 93 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT ALL - COUNT( ALL 99 ) DIV ( + 54 ) + MAX( ALL ( + 82 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - COUNT ( ALL 99 ) / ( + 54 ) + MAX ( ALL ( + 82 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
82

query I rowsort
SELECT col1 * - - 37 * - 96 * + + col2 FROM tab1
----
-1047840
-11352192
-4773888

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

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

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

query I rowsort
SELECT + col1 * + col2 + 44 FROM tab0 AS cor0
----
143
254
3851

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT ALL + 33 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + 33 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT - SUM( ALL + - 89 ) AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-377
SELECT - SUM ( ALL + - 89 ) AS col0 FROM tab0
----
267

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + 88 * MAX( - col2 ) FROM tab1
----
-5192

skipif mysql # not compatible
query I rowsort label-379
SELECT + 88 * MAX ( - col2 ) FROM tab1
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL 68 - - MAX( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - 41 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 68 - - MAX ( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - 41 AND NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-383
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 + CAST( - 67 AS DECIMAL ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-383
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 + CAST ( - 67 AS REAL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-384
SELECT - CAST( + - col0 AS SIGNED ) DIV + 14 + - col1 + - col2 col0 FROM tab0
----
-127
-25
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-384
SELECT - CAST ( + - col0 AS INTEGER ) / + 14 + - col1 + - col2 col0 FROM tab0
----
-127
-25
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT ALL 72 + + + col0 AS col1 FROM tab0
----
159
169
87

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

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

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

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL 33 * - CAST ( - + COUNT ( * ) AS INTEGER ) - + - 33 FROM tab1
----
132

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

query I rowsort
SELECT ALL col1 * + 75 * - ( - + col2 ) * + col0 FROM tab2
----
14784000
21858750
4046850

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 22 ) IS NULL
----

query I rowsort
SELECT ALL - - 35 * - col1 FROM tab1 cor0
----
-1645
-175
-490

query I rowsort
SELECT DISTINCT col1 * - col0 * - ( col1 ) + + 10 + + 11 + - col2 FROM tab0 AS cor0
----
19
38378
98389

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT col0 DIV + 84 - - + 29 FROM tab0
----
29
30
30

skipif mysql # not compatible
query I rowsort label-396
SELECT col0 / + 84 - - + 29 FROM tab0
----
29
30
30

query I rowsort
SELECT ALL + ( + - 26 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ( - col0 ) - + col0 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-399
SELECT ALL + - CAST( NULL AS SIGNED ) / COUNT( * ) * + 34 AS col2, + COUNT( * ) col2 FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-399
SELECT ALL + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 34 AS col2, + COUNT ( * ) col2 FROM tab0 cor0
----
NULL
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT - - col1 * col0 DIV - + ( 7 ) AS col0 FROM tab0 AS cor0
----
-13
-173
-261

skipif mysql # not compatible
query I rowsort label-402
SELECT - - col1 * col0 / - + ( 7 ) AS col0 FROM tab0 AS cor0
----
-13
-173
-261

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

query I rowsort
SELECT DISTINCT ( + - 64 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col2 AND NULL <= 98
----

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

query I rowsort
SELECT ALL + ( - - 78 ) AS col2 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL MAX( ALL - + col0 ) FROM tab1 WHERE ( + 93 ) IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL MAX ( ALL - + col0 ) FROM tab1 WHERE ( + 93 ) IS NOT NULL
----
-51

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN col2 AND NULL )
----

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

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

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

query I rowsort
SELECT - col0 * + 98 AS col0 FROM tab2
----
-4508
-6272
-7350

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

query I rowsort
SELECT ALL - - 47 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

query I rowsort
SELECT ALL - - col0 + + + 25 + - 39 FROM tab1 AS cor0
----
37
71
77

query I rowsort
SELECT ALL + - col1 + col2 + ( + col1 ) + 68 * - - col0 FROM tab0 AS cor0
----
1067
5926
6695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT - COUNT( DISTINCT - ( - CAST( - 1 AS SIGNED ) ) ) FROM tab0 cor0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT col0 DIV + col0 + + ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-420
SELECT col0 / + col0 + + ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-58
-67
-95

query I rowsort
SELECT ALL 77 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> NULL
----

query I rowsort
SELECT - ( + + col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( + + 5 ) * - - col1 - + ( col1 ) AS col2 FROM tab0
----
-126
-486
-6

query II rowsort
SELECT ALL col2, + 36 + + col2 AS col2 FROM tab1
----
59
95
68
104
96
132

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

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

query II rowsort
SELECT - - col0 + - col1 + + 96 AS col1, - col1 * + 82 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
162
-1635
192
15
30
-6627

query II rowsort
SELECT - 13 AS col0, 41 + - 48 FROM tab1
----
-13
-7
-13
-7
-13
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + 90
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-429
SELECT ALL CAST( - col0 AS SIGNED ) DIV + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL CAST ( - col0 AS INTEGER ) / + col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-431
SELECT ALL col1 DIV - + col0 AS col0, - col2 AS col1 FROM tab2
----
-1
-23
-1
-40
0
-58

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL col1 / - + col0 AS col0, - col2 AS col1 FROM tab2
----
-1
-23
-1
-40
0
-58

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE 70 * 22 <> - + 30
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 >= col1
----

query II rowsort
SELECT DISTINCT 69, - 52 AS col2 FROM tab2 AS cor0
----
69
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-438
SELECT ALL - - 72 AS col2, 73 * - COUNT( * ) DIV - - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
72
-76

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL - - 72 AS col2, 73 * - COUNT ( * ) / - - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
72
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 56 col2 FROM tab0 AS cor0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 13 / + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 68 * col0 AS col0 FROM tab2 cor0
----
3128
4352
5100

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

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

query I rowsort
SELECT DISTINCT col1 * 75 AS col2 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT ALL - col2 * + + ( + col2 ) * + - col0 AS col1 FROM tab0
----
33135
8700
950697

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL - 98 * + 26, COUNT( * ) - - - 5 AS col1 FROM tab1
----
-2548
-2

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL - 98 * + 26, COUNT ( * ) - - - 5 AS col1 FROM tab1
----
-2548
-2

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

query I rowsort
SELECT 24 + + + col2 AS col0 FROM tab0
----
123
34
71

query I rowsort
SELECT + 94 + ( - col0 ) AS col2 FROM tab1
----
3
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL - MIN( - col1 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - MIN ( - col1 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL COUNT( * ) * - 42 + - + COUNT( * ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL COUNT ( * ) * - 42 + - + COUNT ( * ) FROM tab1 AS cor0
----
-129

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

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

query I rowsort
SELECT col2 + - + col0 + 5 FROM tab1 AS cor0
----
-18
-21
50

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT + 14 + col2 DIV + - 71 - 61 + - - 38 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 14 + col2 / + - 71 - 61 + - - 38 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT col1 DIV - 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-456
SELECT col1 / - 63 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 13 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT - 95 * col0 * + CAST( - col0 AS SIGNED ) * - col2 FROM tab1
----
-23721120
-40496125
-53495260

skipif mysql # not compatible
query I rowsort label-458
SELECT - 95 * col0 * + CAST ( - col0 AS INTEGER ) * - col2 FROM tab1
----
-23721120
-40496125
-53495260

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 - - col1 col0 FROM tab1 cor0
----
-13
-4
29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT col2 + + CAST( - 91 AS SIGNED ) * + + col0 AS col2 FROM tab1 AS cor0
----
-4545
-7676
-8213

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col2 + + CAST ( - 91 AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0
----
-4545
-7676
-8213

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / - - col0 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + 23 * + COUNT( * ) + + 64 AS col0 FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-464
SELECT + 23 * + COUNT ( * ) + + 64 AS col0 FROM tab0
----
133

query I rowsort
SELECT + 0 + + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - + MIN( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92
----
-59

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - + MIN ( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92
----
-59

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

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

query I rowsort
SELECT DISTINCT - 33 - + col2 * ( 61 ) FROM tab2 AS cor0
----
-1436
-2473
-3571

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-470
SELECT - 81 * - CAST( NULL AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-470
SELECT - 81 * - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col1 + - col0 * - col2 * - col1 FROM tab1 AS cor0 WHERE NOT col0 * + 59 BETWEEN col0 * ( - - 48 ) + + col2 * + 88 AND NULL
----
-25080
-290883
-68558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 78 col0 FROM tab2
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + MAX( + - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-473
SELECT + MAX ( + - 41 ) FROM tab1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - - col0 AS DECIMAL ) NOT BETWEEN + col0 AND - + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - - col0 AS REAL ) NOT BETWEEN + col0 AND - + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

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

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE col2 + col2 * ( + + ( + CAST ( NULL AS INTEGER ) ) ) + 93 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL SUM( DISTINCT - 41 ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL SUM ( DISTINCT - 41 ) AS col0 FROM tab1 AS cor0
----
-41

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * + col1 + - col1 AND + 67
----

query I rowsort
SELECT DISTINCT 43 * - col2 FROM tab2 cor0
----
-1720
-2494
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT COUNT( * ) * 85 FROM tab1 cor0
----
255

skipif mysql # not compatible
query I rowsort label-481
SELECT COUNT ( * ) * 85 FROM tab1 cor0
----
255

query I rowsort
SELECT - col1 * + col1 + + 94 + + + col1 * 61 FROM tab1 AS cor0
----
374
752
752

query I rowsort
SELECT - 91 FROM tab2 AS cor0 WHERE NOT NULL > + 83
----

query I rowsort
SELECT - ( - 88 ) * + 59 AS col0 FROM tab1
----
5192
5192
5192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + COUNT( * ) * - 40 AS col2 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-486
SELECT + COUNT ( * ) * - 40 AS col2 FROM tab1
----
-120

query I rowsort
SELECT DISTINCT ( + col2 ) * col1 AS col1 FROM tab0
----
210
3807
99

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

query I rowsort
SELECT ALL col0 / - 95 AS col1 FROM tab2 WHERE + col1 BETWEEN + - col0 AND - col2
----

query I rowsort
SELECT ALL 58 * col1 AS col2 FROM tab2
----
2958
3886
4466

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

onlyif mysql # DIV for integer division: 
query II rowsort label-492
SELECT DISTINCT 29 col0, 72 DIV 41 FROM tab2
----
29
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-492
SELECT DISTINCT 29 col0, 72 / 41 FROM tab2
----
29
1

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

query I rowsort
SELECT ALL + col0 * 8 * + col1 + - + col1 + - - col0 * - col0 FROM tab2 AS cor0
----
16601
34508
35251

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

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

query I rowsort
SELECT DISTINCT + col2 + - - 9 FROM tab0
----
108
19
56

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + + 12 * col0 FROM tab1 WHERE + col0 + col0 * col0 IS NOT NULL
----
1020
1092
612

query II rowsort
SELECT DISTINCT - col0 + - 11 AS col2, col0 + 39 FROM tab0 AS cor0
----
-108
136
-26
54
-98
126

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

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

query II rowsort
SELECT ALL + 56 * - 78, ( - 66 ) AS col1 FROM tab0 AS cor0
----
-4368
-66
-4368
-66
-4368
-66

query I rowsort
SELECT ALL - col2 + - 37 FROM tab1 AS cor0
----
-105
-133
-96

query I rowsort
SELECT ALL - col1 + - 93 FROM tab2 cor0
----
-144
-160
-170

query I rowsort
SELECT DISTINCT ( - col1 ) - + 71 + ( 44 ) FROM tab0 AS cor0
----
-108
-28
-48

query I rowsort
SELECT ALL col1 + + - col2 * - 65 FROM tab0
----
3136
6436
671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT - + 85 DIV - - COUNT( * ) FROM tab2 WHERE NOT + 14 IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-508
SELECT - + 85 / - - COUNT ( * ) FROM tab2 WHERE NOT + 14 IS NULL
----
-28

query I rowsort
SELECT + col0 * - ( 88 ) FROM tab1
----
-4488
-7480
-8008

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

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

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

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

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

query II rowsort
SELECT col0, 19 + + - 11 FROM tab0 AS cor0
----
15
8
87
8
97
8

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * col2 NOT IN ( + ( - 1 ), - col2 + - 76, + 53 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT - - MAX( ALL - ( CAST( + - ( col2 ) AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
99

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

query I rowsort
SELECT col2 + + - 74 FROM tab0
----
-27
-64
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT 99 + + MAX( - - col0 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-520
SELECT 99 + + MAX ( - - col0 ) FROM tab2
----
174

query I rowsort
SELECT col1 + - - 13 FROM tab1
----
18
27
60

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

skipif mysql # not compatible
query I rowsort label-522
SELECT - COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL - MIN( DISTINCT + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - MIN ( DISTINCT + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

query II rowsort
SELECT + 81 AS col2, - 70 + - col1 AS col2 FROM tab0
----
81
-151
81
-71
81
-91

query I rowsort
SELECT ALL - col0 - - 81 + - col1 FROM tab0
----
-15
-17
-27

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

query I rowsort
SELECT ALL - 89 * 95 * - col1 + + - 59 FROM tab2 AS cor0
----
431146
566426
650976

query I rowsort
SELECT ALL - col2 * 78 * + - ( col0 ) AS col0 FROM tab2 AS cor0
----
199680
339300
82524

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col2 AS col2, 88 col1 FROM tab2
----
-1600
88
-3364
88
-529
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-535
SELECT ALL - - col2 DIV + 97 AS col2, ( col1 ) col1 FROM tab2 cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-535
SELECT ALL - - col2 / + 97 AS col2, ( col1 ) col1 FROM tab2 cor0
----
0
51
0
67
0
77

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT ALL - 55 DIV - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - 55 / - col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT SUM( 30 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-537
SELECT SUM ( 30 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT + - col0 * col1 * + col1 FROM tab2 cor0
----
-119646
-336675
-379456

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

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

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT col1 + + - 72 * + col0 AS col1 FROM tab1 cor0
----
-3658
-6115
-6505

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT - ( + MAX( - - col2 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - ( + MAX ( - - col2 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-102

query II rowsort
SELECT + col0 * + 25 + - col2 AS col0, - 86 FROM tab1 AS cor0
----
1179
-86
2066
-86
2207
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT ALL - 30 DIV MAX( - col1 ) + + 86 AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - 30 / MAX ( - col1 ) + + 86 AS col1 FROM tab2 AS cor0
----
86

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

query I rowsort
SELECT - - col0 * col1 * 98 FROM tab1 AS cor0
----
41650
419146
69972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-548
SELECT - - CAST( NULL AS SIGNED ) AS col0, 55 * - - 57 FROM tab2 AS cor0
----
NULL
3135
NULL
3135
NULL
3135

skipif mysql # not compatible
query II rowsort label-548
SELECT - - CAST ( NULL AS INTEGER ) AS col0, 55 * - - 57 FROM tab2 AS cor0
----
NULL
3135
NULL
3135
NULL
3135

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

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

query I rowsort
SELECT ( + col2 ) * - col1 AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT 27 * + col1 AS col1, col2 FROM tab1
----
1269
68
135
59
378
96

query I rowsort
SELECT - - 19 AS col0 FROM tab1 WHERE NULL > - col0 * + + col2
----

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

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

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

query I rowsort
SELECT + + col2 + - + 70 + col2 FROM tab1 AS cor0
----
122
48
66

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

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

query I rowsort
SELECT ALL + ( - 65 ) FROM tab0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - ( + 76 ) FROM tab0
----
1
-76
21
-76
81
-76

query I rowsort
SELECT DISTINCT + col0 * - 24 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + 82 * + - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-560
SELECT + 82 * + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-738

query I rowsort
SELECT col0 * - + col2 * + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - - MIN( - col0 ) - 63 FROM tab0 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-562
SELECT - - MIN ( - col0 ) - 63 FROM tab0 AS cor0
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL + + col1 DIV - col1 + + col0 + col1 FROM tab2 AS cor0
----
140
141
96

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + + col1 / - col1 + + col0 + col1 FROM tab2 AS cor0
----
140
141
96

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 97 - 37 - COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-564
SELECT + 97 - 37 - COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
57

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

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

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

query II rowsort
SELECT ALL 29 AS col2, 61 FROM tab0
----
29
61
29
61
29
61

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

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

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

query I rowsort
SELECT DISTINCT 23 * col1 FROM tab1
----
1081
115
322

query III rowsort
SELECT * FROM tab0 WHERE NOT + 98 = - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 71 * - 12 AS col0 FROM tab1
----
-852
-852
-852

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT COUNT( * ) AS col1, 82 AS col1 FROM tab2
----
3
82

skipif mysql # not compatible
query II rowsort label-573
SELECT COUNT ( * ) AS col1, 82 AS col1 FROM tab2
----
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-574
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 26, + + col2 * - 56, - CAST( + col0 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-574
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 26, + + col2 * - 56, - CAST ( + col0 AS INTEGER ), col1 )
----

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

query I rowsort
SELECT ALL 69 * ( 48 ) FROM tab2
----
3312
3312
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT 61 DIV - col1 FROM tab0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-577
SELECT 61 / - col1 FROM tab0
----
-2
-61
0

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - MAX( 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - MAX ( 28 ) FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT DISTINCT + ( - col0 ) + - col0 + col0 DIV - col2 FROM tab2 AS cor0
----
-129
-151
-94

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT + ( - col0 ) + - col0 + col0 / - col2 FROM tab2 AS cor0
----
-129
-151
-94

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-581
SELECT DISTINCT - col1 + 8 + 79 + 50 col0, ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - 28 BETWEEN + col2 / + col2 + col2 + + CAST( - - col1 AS SIGNED ) AND + - 19
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-581
SELECT DISTINCT - col1 + 8 + 79 + 50 col0, ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - 28 BETWEEN + col2 / + col2 + col2 + + CAST ( - - col1 AS INTEGER ) AND + - 19
----

query I rowsort
SELECT ALL col1 + - col0 * + 31 FROM tab1 AS cor0
----
-1567
-2630
-2774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT ALL col0 * + CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
1035
6003
6693

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL col0 * + CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
1035
6003
6693

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 29
----

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

query I rowsort
SELECT ALL ( - - col1 ) + + 45 FROM tab0 AS cor0
----
126
46
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col0 col2 FROM tab0 WHERE NULL = + 16
----

onlyif mysql # aggregate syntax: 
query III rowsort label-588
SELECT DISTINCT + 6, COUNT( * ) * - SUM( - - 73 ) AS col0, 10 AS col0 FROM tab1
----
6
-657
10

skipif mysql # not compatible
query III rowsort label-588
SELECT DISTINCT + 6, COUNT ( * ) * - SUM ( - - 73 ) AS col0, 10 AS col0 FROM tab1
----
6
-657
10

query I rowsort
SELECT - col1 + ( + col0 ) FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-590
SELECT DISTINCT * FROM tab1 WHERE col0 + + 12 <> + - ( + ( - col1 ) ) * - CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-590
SELECT DISTINCT * FROM tab1 WHERE col0 + + 12 <> + - ( + ( - col1 ) ) * - CAST ( NULL AS INTEGER ) * - col1
----

query II rowsort
SELECT - col2 + - col2 + + - col1, - col0 * - + 85 * - col0 * col1 AS col1 FROM tab1
----
-123
-3070625
-183
-33082595
-206
-3095190

query II rowsort
SELECT + 9 + + 41 * - + col0, + col2 AS col1 FROM tab0
----
-3558
10
-3968
99
-606
47

query I rowsort
SELECT ALL 31 - + 81 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT + 76 DIV - 43 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-595
SELECT + 76 / - 43 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT 82 + COUNT( * ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-596
SELECT 82 + COUNT ( * ) AS col2 FROM tab0
----
85

query I rowsort
SELECT 19 + 65 AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL ( col2 ) + - 75 AS col0 FROM tab0
----
-28
-65
24

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / + col2 + 37 BETWEEN NULL AND ( 71 * + col0 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT 81 + + col1 FROM tab0
----
102
162
82

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

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

query I rowsort
SELECT ALL 92 / col1 + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL 33 FROM tab2 WHERE NOT ( col2 ) >= ( col2 )
----

query I rowsort
SELECT DISTINCT 93 - - 1 FROM tab1
----
94

query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab0 WHERE NOT - 98 = - col0 + - col0 * - 62
----
225
7569
9409

query I rowsort
SELECT 41 FROM tab1 WHERE - 88 = ( NULL )
----

query I rowsort
SELECT col0 - col1 * - 11 AS col1 FROM tab0
----
108
318
906

query I rowsort
SELECT ALL + col2 + 57 * + col1 AS col2 FROM tab1
----
2747
344
894

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT - 77 * 18 - COUNT( * ) AS col1 FROM tab1
----
-1389

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT - 77 * 18 - COUNT ( * ) AS col1 FROM tab1
----
-1389

query I rowsort
SELECT ALL - 66 AS col2 FROM tab1 WHERE NULL < - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ( COUNT( * ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 + - col0 * 55 )
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 + - col0 * 55 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < col2
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT CAST ( + SUM ( ALL CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + 42 FROM tab2
----
106
117
88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 39 + + 19 / + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 63 * col2 = NULL
----

query I rowsort
SELECT ALL + 51 * + 1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + 17 * 91 AS col0 FROM tab0 AS cor0
----
1547

query I rowsort
SELECT + 87 * 49 AS col1 FROM tab1 cor0
----
4263
4263
4263

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 cor0 WHERE NOT 77 IN ( - col0 * col2 )
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COUNT( * ) * - 72 col0 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT - COUNT ( * ) * - 72 col0 FROM tab2 AS cor0
----
216

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

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

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

query I rowsort
SELECT + 61 FROM ( tab2 cor0 CROSS JOIN tab2 )
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 WHERE ( + 39 ) BETWEEN + col0 AND + col0
----

query I rowsort
SELECT - col1 + 25 AS col1 FROM tab0
----
-56
24
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) IN ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT DISTINCT 61 + COUNT( * ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 61 + COUNT ( * ) FROM tab0 AS cor0
----
64

query I rowsort
SELECT 36 + + ( - 58 - col2 * - col2 ) FROM tab0 cor0
----
2187
78
9779

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

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

query I rowsort
SELECT DISTINCT - col2 + - 84 * - col0 AS col0 FROM tab1 AS cor0
----
4188
7081
7576

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab2 AS cor0 WHERE ( 75 ) <> col0
----
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT + COUNT( * ) + SUM( ALL - col0 - col0 ) FROM tab1 AS cor0 WHERE - col2 * + 20 >= ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + COUNT ( * ) + SUM ( ALL - col0 - col0 ) FROM tab1 AS cor0 WHERE - col2 * + 20 >= ( col0 )
----
NULL

query I rowsort
SELECT - col1 * + ( - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT DISTINCT 13 + - 5 DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT DISTINCT 13 + - 5 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
14

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

query I rowsort
SELECT ALL - 68 + - 38 AS col0 FROM tab0 AS cor0
----
-106
-106
-106

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

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

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL <> ( + col2 - col1 * + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL MAX( + 73 ) + - COUNT( * ) * + MIN( DISTINCT - 33 ) AS col2 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL MAX ( + 73 ) + - COUNT ( * ) * + MIN ( DISTINCT - 33 ) AS col2 FROM tab0
----
172

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + 99 ) = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE ( col2 + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT ALL - col2 DIV 16 * - col1 FROM tab1
----
15
188
84

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - col2 / 16 * - col1 FROM tab1
----
15
188
84

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

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

query I rowsort
SELECT ALL 73 - ( + 44 ) AS col0 FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT DISTINCT COUNT( * ) + - 59 DIV 79 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT COUNT ( * ) + - 59 / 79 FROM tab1 AS cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL ( + COUNT( * ) ) - + SUM( DISTINCT col2 + + 39 ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL ( + COUNT ( * ) ) - + SUM ( DISTINCT col2 + + 39 ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-653
SELECT + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 * - 73 <= - col1 * col2 - col2 * + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-655
SELECT - COUNT ( * ) * 61 / + 92 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT - COUNT( DISTINCT + 16 ) + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
68

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - COUNT ( DISTINCT + 16 ) + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NOT - 83 * ( col1 ) IS NULL
----
51
85
91

query I rowsort
SELECT + col2 * + - 93 * - - 85 + col2 AS col2 FROM tab1 AS cor0
----
-466336
-537472
-758784

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

skipif mysql # not compatible
query I rowsort label-659
SELECT COUNT ( DISTINCT + ( col1 ) ) * + SUM ( DISTINCT ( col1 ) * ( col2 ) ) FROM tab0 AS cor0
----
12348

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

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

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

query I rowsort
SELECT - 4 * + ( - col1 ) * - 96 + 40 FROM tab1 cor0
----
-18008
-1880
-5336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-663
SELECT ALL CAST( NULL AS DECIMAL ) + ( AVG ( DISTINCT 9 ) ) * + SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL CAST ( NULL AS REAL ) + ( AVG ( DISTINCT 9 ) ) * + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * col1 )
----
NULL

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 75 <= + - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ( + COUNT( DISTINCT - - 57 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-669
SELECT ( + COUNT ( DISTINCT - - 57 ) ) FROM tab0
----
1

query I rowsort
SELECT 70 FROM tab0 WHERE NOT - 71 IS NULL
----
70
70
70

query I rowsort
SELECT DISTINCT ( - - col0 ) * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - col1 DIV - col0 * - 38 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-672
SELECT - col1 / - col0 * - 38 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT SUM( + ( col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-673
SELECT SUM ( + ( col0 ) ) AS col1 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT - CAST( + + col1 AS SIGNED ) * + col1 + - + 74 AS col1 FROM tab1
----
-2283
-270
-99

skipif mysql # not compatible
query I rowsort label-674
SELECT - CAST ( + + col1 AS INTEGER ) * + col1 + - + 74 AS col1 FROM tab1
----
-2283
-270
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT COUNT( * ) + 44 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-675
SELECT COUNT ( * ) + 44 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT 59 * col2 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT DISTINCT - 62 * col0 FROM tab2
----
-2852
-3968
-4650

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

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL COUNT ( DISTINCT + + 47 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT ALL - col1 DIV + col0 + - 98 FROM tab0 AS cor0
----
-103
-98
-98

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - col1 / + col0 + - 98 FROM tab0 AS cor0
----
-103
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL - 80 + COUNT( * ) + - - 7 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL - 80 + COUNT ( * ) + - - 7 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ( + col1 ) + + col2 + - col2 + 67 * - col2 AS col0 FROM tab0 AS cor0
----
-3068
-649
-6632

query I rowsort
SELECT + 19 + - - col2 + 50 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT DISTINCT 91 - + col1 AS col0 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT ALL - col1 + + col0 DIV + col2 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - col1 + + col0 / + col2 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT + col2 + + 97 + + 98 * - - col2 AS col1 FROM tab1
----
5938
6829
9601

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT - SUM( ALL - - 4 ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - SUM ( ALL - - 4 ) AS col0 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT COUNT( * ) * 52 AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-687
SELECT COUNT ( * ) * 52 AS col0 FROM tab2
----
156

query II rowsort
SELECT ALL col1 AS col2, 22 + col0 AS col1 FROM tab1
----
14
73
47
113
5
107

query I rowsort
SELECT DISTINCT + 89 - 58 FROM tab2
----
31

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < + 98 * 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 54 * + col0 AS col2 FROM tab1 cor0
----
2754
4590
4914

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

query I rowsort
SELECT ALL - 11 + + col0 * + col2 + col2 * col2 FROM tab2 WHERE ( 50 + - + 20 ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-696
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL - + col2 * + + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT + + SUM( - 78 ) FROM tab0 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + + SUM ( - 78 ) FROM tab0 cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT COUNT( * ) * ( - - 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( * ) * ( - - 10 ) FROM tab0
----
30

query II rowsort
SELECT DISTINCT - col0, col2 + - 19 AS col0 FROM tab2
----
-46
4
-64
21
-75
39

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( - col0 + + col1 * col1 ) < NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT + MAX ( DISTINCT - + 45 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 53 * + - 5 + + col2 * - + col1 + + col2 FROM tab1 AS cor0
----
-1513
-3393
-501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT + 81 DIV COUNT( DISTINCT - 49 ) + + + 83 + - + ( + 89 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-709
SELECT + 81 / COUNT ( DISTINCT - 49 ) + + + 83 + - + ( + 89 ) AS col0 FROM tab1
----
75

query I rowsort
SELECT + 89 * + ( + col0 ) + - - col2 FROM tab2
----
4117
5736
6733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT ALL + 16 * + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * - 60 AS col2 FROM tab0 AS cor0 WHERE ( + - 3 ) * + col2 / + 45 BETWEEN + col0 AND + 21
----

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 16 * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * - 60 AS col2 FROM tab0 AS cor0 WHERE ( + - 3 ) * + col2 / + 45 BETWEEN + col0 AND + 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT col2 DIV - 38 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-712
SELECT col2 / - 38 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-713
SELECT - + col0 DIV + 20, CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
-4
NULL
-4
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-713
SELECT - + col0 / + 20, CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
-4
NULL
-4
NULL
0
NULL

query I rowsort
SELECT ALL - col1 + ( + col0 ) FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT - SUM( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 64 / + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT - SUM ( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 64 / + - col1 )
----
NULL

query I rowsort
SELECT ALL - col1 * 98 + 29 FROM tab1 AS cor0
----
-1343
-4577
-461

query I rowsort
SELECT ALL - col1 - 18 AS col0 FROM tab2
----
-69
-85
-95

query I rowsort
SELECT ALL 46 * - 36 FROM tab0
----
-1656
-1656
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT CAST( + + col1 AS SIGNED ) - + col1 + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-719
SELECT CAST ( + + col1 AS INTEGER ) - + col1 + + col0 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT - 43 * col0 AS col1 FROM tab0 cor0
----
-3741
-4171
-645

query II rowsort
SELECT DISTINCT + - col2 * ( - 38 ) * col0 * + col1, col1 AS col1 FROM tab0 AS cor0
----
2169990
81
364914
1
694260
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT - + COUNT( DISTINCT - + col1 ) DIV 51 DIV - 27 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT - + COUNT ( DISTINCT - + col1 ) / 51 / - 27 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + ( 22 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 AS col1, + 81 col0 FROM tab2 AS cor0
----
5
81
5
81
5
81

query II rowsort
SELECT DISTINCT 10, + 32 - + - col2 AS col2 FROM tab1 AS cor0
----
10
100
10
128
10
91

query I rowsort
SELECT col0 * - 93 * - 85 + + + col0 AS col1 FROM tab1 AS cor0
----
403206
672010
719446

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

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

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

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

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT col1 DIV col1 * - col2 * - - col1 + - col1 + 24 AS col0 FROM tab0 AS cor0 WHERE NOT col2 DIV col0 IS NULL
----
-207
-3864
-76

skipif mysql # not compatible
query I rowsort label-732
SELECT col1 / col1 * - col2 * - - col1 + - col1 + 24 AS col0 FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
-207
-3864
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + COUNT( * ) + + COUNT( ALL - - col0 ) + + ( + + 96 ) * MIN( col2 ) FROM tab2
----
2214

skipif mysql # not compatible
query I rowsort label-734
SELECT + COUNT ( * ) + + COUNT ( ALL - - col0 ) + + ( + + 96 ) * MIN ( col2 ) FROM tab2
----
2214

query I rowsort
SELECT 92 + - col2 FROM tab2
----
34
52
69

query I rowsort
SELECT col2 + 47 AS col0 FROM tab0
----
146
57
94

query I rowsort
SELECT col2 + - + 53 AS col1 FROM tab1
----
15
43
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT - + ( - 68 ) * COUNT( * ) DIV - 88 + + 47 + MAX( + 42 ) AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - + ( - 68 ) * COUNT ( * ) / - 88 + + 47 + MAX ( + 42 ) AS col1 FROM tab2 cor0
----
87

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

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

query I rowsort
SELECT - ( + 44 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 + + - col2 AS col2 FROM tab2
----
-101
-118
-136

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT ( NOT NULL NOT BETWEEN 64 AND 72 / + col2 ) )
----

query I rowsort
SELECT + - 57 * + 21 + + col0 FROM tab2 AS cor0
----
-1122
-1133
-1151

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

query I rowsort
SELECT + - 46 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 64 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-749
SELECT 64 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 + + 66 FROM tab1 AS cor0
----
-1329
-314
-3221

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-751
SELECT + COUNT ( * ) * - 8 col1 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT + 62 + col0 * ( + col1 ) FROM tab2
----
2408
4990
5087

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-753
SELECT ALL 43 - col0, col1 * col0 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-21
-64
-3
-46
-32
-75

skipif mysql # not compatible
query II rowsort label-753
SELECT ALL 43 - col0, col1 * col0 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-21
-64
-3
-46
-32
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT ( NULL ) IN ( - col0, col2 + - 18 - + 96, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT CAST( 54 AS SIGNED ) * - - col1 FROM tab1
----
2538
270
756

skipif mysql # not compatible
query I rowsort label-755
SELECT CAST ( 54 AS INTEGER ) * - - col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT + 21 * - COUNT( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN + col0 * + col0 AND NULL OR NULL < - - 74
----
-63

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT + 21 * - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN + col0 * + col0 AND NULL OR NULL < - - 74
----
-63

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

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 85 + - col1 + + - col1 FROM tab2 AS cor0
----
-2788
-4708
-6168

query I rowsort
SELECT 89 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL + 31 DIV col0 * 62 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 31 / col0 * 62 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + 15 DIV + ( + ( col0 ) ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + 15 / + ( + ( col0 ) ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT ALL col2 DIV - 43 col0 FROM tab2 cor0
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT 47 * - COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 47 * - COUNT ( * ) FROM tab0 AS cor0
----
-141

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

query II rowsort
SELECT - + col1 AS col1, col1 * - col1 FROM tab0 AS cor0
----
-1
-1
-21
-441
-81
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL + MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + MIN ( ALL col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COUNT( + - 68 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( + - 68 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 26 * - - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-770
SELECT + 26 * - - COUNT ( * ) FROM tab0
----
78

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

query II rowsort
SELECT DISTINCT 35, + col1 FROM tab2
----
35
51
35
67
35
77

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - + 41 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL MIN( - - col1 ) FROM tab2 AS cor0
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL 92 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT + col1 + + 70 IS NOT NULL
----
92

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 92 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT + col1 + + 70 IS NOT NULL
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + COUNT( * ) - + 92 * + 42 FROM tab0 AS cor0
----
-3861

skipif mysql # not compatible
query I rowsort label-781
SELECT + COUNT ( * ) - + 92 * + 42 FROM tab0 AS cor0
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + ( + - COUNT( + col0 ) ) - + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-782
SELECT + ( + - COUNT ( + col0 ) ) - + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - 54 + + col2 + - 56 FROM tab0 AS cor0
----
-100
-11
-63

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

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

query I rowsort
SELECT + col0 - col1 AS col1 FROM tab0 WHERE NOT NULL = - col1 * + col2 * + 7
----

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

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

query II rowsort
SELECT DISTINCT 74, + col0 AS col2 FROM tab0
----
74
15
74
87
74
97

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

skipif mysql # not compatible
query I rowsort label-790
SELECT MAX ( ALL - 57 ) AS col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 10 ) NOT IN ( + col2 / + 79, - col2, col0 * 26 * + - col2, - col0 + col0 + 90 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 + - + col2 FROM tab0 AS cor0
----
-15
-32
-87
77
-97
-2

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

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

skipif mysql # not compatible
query I rowsort label-794
SELECT COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-27

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

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

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

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

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

query I rowsort
SELECT + col1 * ( + + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT DISTINCT col1 + + ( col1 ) + 83 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT col1 + + ( col1 ) + 83 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE + col2 * - - 3 IS NOT NULL
----
-1
-21
-81

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

query I rowsort
SELECT DISTINCT - + col1 * col2 FROM tab2 AS cor0 WHERE ( NULL ) <= - 63
----

query I rowsort
SELECT ALL 8 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
18768
39424
40200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT DISTINCT - col2 * CAST( col1 AS SIGNED ) * + 22 + 92 FROM tab1 AS cor0
----
-29476
-6398
-70220

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - col2 * CAST ( col1 AS INTEGER ) * + 22 + 92 FROM tab1 AS cor0
----
-29476
-6398
-70220

query I rowsort
SELECT + ( + 15 ) + - + col2 * col2 FROM tab2 AS cor0 WHERE col0 * + 8 - - col1 = col1
----

query I rowsort
SELECT + 91 + + 41 + col0 + + col2 * - 64 * col0 FROM tab2 AS cor0
----
-163644
-278193
-67534

query III rowsort
SELECT * FROM tab2 WHERE 78 - 30 + - - col0 NOT BETWEEN - col2 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL COUNT ( * ) * COUNT ( * ) + - ( + 21 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT ( - 35 ) * + - COUNT( * ) * + 15 FROM tab0
----
1575

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT ( - 35 ) * + - COUNT ( * ) * + 15 FROM tab0
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT + ( + col0 ) ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT + ( + col0 ) ) FROM tab2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-815
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-815
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + ( - ( - COUNT( * ) ) ) + + SUM( + - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-816
SELECT + ( - ( - COUNT ( * ) ) ) + + SUM ( + - col0 ) FROM tab0
----
-196

query I rowsort
SELECT 67 * - col2 + - - 62 FROM tab0
----
-3087
-608
-6571

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

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL 72 DIV + 65 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL 72 / + 65 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col0 + col1 - 60 + 53 AS col0 FROM tab0
----
101
89
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 31 - ( - 84 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - COUNT( ALL col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-824
SELECT - COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT SUM( + 38 ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT SUM ( + 38 ) FROM tab2
----
114

query I rowsort
SELECT 68 + - col1 FROM tab2
----
-9
1
17

query I rowsort
SELECT 39 * + 3 + col0 + - col1 * + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT 28 * + 62 + - col2 FROM tab1
----
1640
1668
1677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + 74 < NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT - - col0 DIV ( + - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-834
SELECT - - col0 / ( + - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT ( MAX( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT ( MAX ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + + 17 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 = + col1
----
-1003
-1156
-1632

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 42 IN ( - col0, col1 * col0 * + col2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT ( + - 60 ), + col0 DIV - 11 AS col2 FROM tab0
----
-60
-1
-60
-7
-60
-8

skipif mysql # not compatible
query II rowsort label-840
SELECT ( + - 60 ), + col0 / - 11 AS col2 FROM tab0
----
-60
-1
-60
-7
-60
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE + CAST( - col2 AS SIGNED ) + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) + - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT ALL CAST( - col0 AS SIGNED ), 61 + + ( - 18 ) col0 FROM tab1 cor0
----
-51
43
-85
43
-91
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-843
SELECT ALL CAST ( - col0 AS INTEGER ), 61 + + ( - 18 ) col0 FROM tab1 cor0
----
-51
43
-85
43
-91
43

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + COUNT( DISTINCT + 6 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + COUNT ( DISTINCT + 6 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT - MAX( DISTINCT 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT - MAX ( DISTINCT 72 ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - 81 + + 96 AS col2 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT + COUNT( * ) AS col2, + 57 + + ( + - 30 ) AS col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + - col1
----
0
27

skipif mysql # not compatible
query II rowsort label-847
SELECT + COUNT ( * ) AS col2, + 57 + + ( + - 30 ) AS col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + - col1
----
0
27

query I rowsort
SELECT - 2 * - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT col2 * - 80 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT - 21, + 8 + + + SUM( ALL + + 1 ) AS col0 FROM tab2 cor0
----
-21
11

skipif mysql # not compatible
query II rowsort label-850
SELECT - 21, + 8 + + + SUM ( ALL + + 1 ) AS col0 FROM tab2 cor0
----
-21
11

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - 59 * COUNT( * ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-851
SELECT - 59 * COUNT ( * ) FROM tab0 AS cor0
----
-177

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 50 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL - + 86 + - - COUNT( * ) col0 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-857
SELECT ALL - + 86 + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT ALL 36 DIV + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL 36 / + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-861
SELECT DISTINCT + 13, 0 DIV + col0 - + col0 AS col1 FROM tab2 cor0
----
13
-46
13
-64
13
-75

skipif mysql # not compatible
query II rowsort label-861
SELECT DISTINCT + 13, 0 / + col0 - + col0 AS col1 FROM tab2 cor0
----
13
-46
13
-64
13
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT + 97 * - CAST( + ( - + col0 ) AS SIGNED ) + + 54 FROM tab1 cor0
----
5001
8299
8881

skipif mysql # not compatible
query I rowsort label-862
SELECT + 97 * - CAST ( + ( - + col0 ) AS INTEGER ) + + 54 FROM tab1 cor0
----
5001
8299
8881

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT + + 4 DIV 84 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-863
SELECT + + 4 / 84 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - + 31 * - col0 AS col0 FROM tab2 AS cor0
----
1426
1984
2325

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <> col1 * 61 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + ( + MIN( ALL + 87 ) ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + ( + MIN ( ALL + 87 ) ) AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 83 * - - col2 FROM tab1
----
-4897
-5644
-7968

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT ALL 66 * - + col2 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-874
SELECT - - CAST( NULL AS SIGNED ) - - - ( + - COUNT( * ) ) AS col1, 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-874
SELECT - - CAST ( NULL AS INTEGER ) - - - ( + - COUNT ( * ) ) AS col1, 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
68

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT + 15 * + - CAST( NULL AS SIGNED ) + + 54 - - - col1 * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT + 15 * + - CAST ( NULL AS INTEGER ) + + 54 - - - col1 * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + col1 + + - col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-880
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT 81 + COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-881
SELECT 81 + COUNT ( * ) AS col1 FROM tab1
----
84

query I rowsort
SELECT ALL 36 * + col1 AS col0 FROM tab0
----
2916
36
756

query III rowsort
SELECT * FROM tab0 WHERE + + 64 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL 63 * - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 63 * - COUNT ( * ) FROM tab2
----
-189

query I rowsort
SELECT 22 * col1 * + 17 FROM tab1
----
17578
1870
5236

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

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - MAX ( - - col0 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 >= - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + col2 ) + + col0 + - col2 col1 FROM tab2 cor0
----
-16
-41
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-889
SELECT - col0 * - - col2 / - 93 - + - 42 * - - CAST ( NULL AS INTEGER ) - col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT CAST( - MAX( 82 ) AS SIGNED ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-890
SELECT CAST ( - MAX ( 82 ) AS INTEGER ) AS col1 FROM tab0
----
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT - ( ( - - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 62 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT - ( ( - - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 62 AND NULL
----
0

query I rowsort
SELECT col1 * 62 AS col2 FROM tab1 cor0
----
2914
310
868

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

onlyif mysql # DIV for integer division: 
query II rowsort label-895
SELECT - + col2 DIV + + 17, + col1 AS col1 FROM tab1 AS cor0
----
-3
5
-4
47
-5
14

skipif mysql # not compatible
query II rowsort label-895
SELECT - + col2 / + + 17, + col1 AS col1 FROM tab1 AS cor0
----
-3
5
-4
47
-5
14

query I rowsort
SELECT - 65 * - col0 + - - col1 AS col0 FROM tab2 WHERE NOT + - 39 < + - 57 + - ( - 31 ) + + col2 * col2 * col2 + col2 + 60 + - col1 * + 31 * + 74
----
3041
4237

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

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

query I rowsort
SELECT 6 * + - col0 AS col0 FROM tab2
----
-276
-384
-450

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - + ( + + 86 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 24 IS NULL
----

query I rowsort
SELECT DISTINCT 55 * + - 54 FROM tab2
----
-2970

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT - - COUNT( ( - - col0 ) ) * - 79 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - - COUNT ( ( - - col0 ) ) * - 79 FROM tab2 AS cor0
----
-237

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL COUNT( * ) + + - 54 AS col1 FROM tab0 cor0 WHERE - col0 BETWEEN - + col2 * - 46 AND - col2 * - col1 * - col2
----
-54

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL COUNT ( * ) + + - 54 AS col1 FROM tab0 cor0 WHERE - col0 BETWEEN - + col2 * - 46 AND - col2 * - col1 * - col2
----
-54

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-909
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) * + ( - 45 ) AS col1 FROM tab2 AS cor0
----
NULL
135

skipif mysql # not compatible
query II rowsort label-909
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + ( - 45 ) AS col1 FROM tab2 AS cor0
----
NULL
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT + - CAST( + 61 AS SIGNED ) FROM tab0 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-910
SELECT + - CAST ( + 61 AS INTEGER ) FROM tab0 AS cor0
----
-61
-61
-61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL - - COUNT( * ) + - 95 AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - - COUNT ( * ) + - 95 AS col2 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 + col2 * + + 64 AS col0 FROM tab1
----
3745
4282
6175

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + 34 + - 37 - - col0 * + col2 * + + 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 50 * - col1 FROM tab0 AS cor0
----
-1050
-4050
-50

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

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT MAX ( 78 ) FROM tab2 AS cor0
----
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT + + col0 * col2 * + 39 * - 59 - - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + + col0 + 28
----

skipif mysql # not compatible
query I rowsort label-924
SELECT + + col0 * col2 * + 39 * - 59 - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + + col0 + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-925
SELECT col0 * ( CAST( + + col1 AS SIGNED ) ) AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

skipif mysql # not compatible
query II rowsort label-925
SELECT col0 * ( CAST ( + + col1 AS INTEGER ) ) AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT ALL - ( col0 ) * + CAST( + - col0 AS SIGNED ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - ( col0 ) * + CAST ( + - col0 AS INTEGER ) FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 + - - col1 + ( - + 9 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 + - - col1 + ( - + 9 ) IS NOT NULL
----
0

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

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

query I rowsort
SELECT - 52 + + col0 AS col2 FROM tab0
----
-37
35
45

onlyif mysql # DIV for integer division: 
query II rowsort label-933
SELECT DISTINCT col0 DIV + 46, - col0 AS col0 FROM tab0
----
0
-15
1
-87
2
-97

skipif mysql # not compatible
query II rowsort label-933
SELECT DISTINCT col0 / + 46, - col0 AS col0 FROM tab0
----
0
-15
1
-87
2
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT ALL - CAST( + - col2 AS SIGNED ) DIV col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - CAST ( + - col2 AS INTEGER ) / col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT 97 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
143
161
172

skipif mysql # not compatible
query I rowsort label-935
SELECT 97 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
143
161
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT CAST( NULL AS SIGNED ) * - 74 + - - 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT CAST ( NULL AS INTEGER ) * - 74 + - - 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-937
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 52 * - col1, + CAST( NULL AS DECIMAL ), + col2, 58 * + - 54 + + 47 )
----

skipif mysql # not compatible
query III rowsort label-937
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 52 * - col1, + CAST ( NULL AS REAL ), + col2, 58 * + - 54 + + 47 )
----

query I rowsort
SELECT ( - - ( + ( col0 ) ) ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-939
SELECT ALL col1, - 3 DIV col0 AS col1 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL col1, - 3 / col0 AS col1 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT col1 + - ( + - col2 ) * + 8 * col0 * 43 AS col1 FROM tab0 AS cor0
----
242601
299301
3303433

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + 47 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 * + - col0 + + col2 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-943
SELECT + 47 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 * + - col0 + + col2 IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) + - SUM( DISTINCT col1 ) FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) + - SUM ( DISTINCT col1 ) FROM tab1 cor0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT DISTINCT COUNT( * ) AS col0, 49 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----
0
49

skipif mysql # not compatible
query II rowsort label-945
SELECT DISTINCT COUNT ( * ) AS col0, 49 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----
0
49

query I rowsort
SELECT DISTINCT - 77 + + col2 * + 35 * - col0 * - + col1 FROM tab0 AS cor0
----
1998598
336028
639373

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1 * - - 9
----

query I rowsort
SELECT + 21 + + col2 AS col2 FROM tab1 AS cor0
----
117
80
89

query I rowsort
SELECT + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

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

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

query II rowsort
SELECT 47 AS col0, col0 FROM tab2
----
47
46
47
64
47
75

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT DISTINCT COUNT( * ) AS col0, - 2 AS col0 FROM tab2
----
3
-2

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT COUNT ( * ) AS col0, - 2 AS col0 FROM tab2
----
3
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL + MAX( ALL - 31 ) FROM tab2 WHERE ( NULL NOT BETWEEN col0 AND 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + MAX ( ALL - 31 ) FROM tab2 WHERE ( NULL NOT BETWEEN col0 AND 84 )
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT DISTINCT col1 * col1 + - 49 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT col1 * col1 + - 49 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 > + col2 - - - col2
----

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 > + col2 - - - col2
----

query II rowsort
SELECT + 72 AS col0, - ( 60 ) FROM tab2 AS cor0
----
72
-60
72
-60
72
-60

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

skipif mysql # not compatible
query I rowsort label-959
SELECT + 42 / + COUNT ( * ) FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 32 + + 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 65 col0 FROM tab1
----
3315
5525
5915

query I rowsort
SELECT + - ( + col0 ) FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT ( + col2 ) AS col1, + col0 + - 61 AS col0 FROM tab0 AS cor0
----
10
26
47
-46
99
36

query II rowsort
SELECT DISTINCT 80, + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( 13 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL + CAST( 65 AS SIGNED ) + ( + COUNT( * ) ) * 51 AS col1 FROM tab0 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + CAST ( 65 AS INTEGER ) + ( + COUNT ( * ) ) * 51 AS col1 FROM tab0 AS cor0
----
218

query I rowsort
SELECT ALL + 49 FROM tab1 AS cor0 WHERE NOT ( ( NOT col0 / - - ( - + 25 ) IS NOT NULL ) )
----
49
49
49

query I rowsort
SELECT DISTINCT + + ( - col0 ) + + col1 * - + col0 + - col1 + + 99 FROM tab2 cor0
----
-2344
-4970
-5068

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + 96 * + - ( + - MAX( ALL - col0 ) ) FROM tab2
----
-4416

skipif mysql # not compatible
query I rowsort label-968
SELECT + 96 * + - ( + - MAX ( ALL - col0 ) ) FROM tab2
----
-4416

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 14 col1 FROM tab0
----
1386
140
658

query I rowsort
SELECT DISTINCT 50 * - - col0 AS col2 FROM tab0
----
4350
4850
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 + col2 col2 FROM tab2 WHERE + - 83 + + col0 IS NULL
----

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - 29 - - - col2 - - 96 IS NOT NULL
----
-59
-68
-96

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

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

query I rowsort
SELECT + 81 * + - 57 FROM tab0 AS cor0
----
-4617
-4617
-4617

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 52 + COUNT( * ) col1 FROM tab1 cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-977
SELECT + 52 + COUNT ( * ) col1 FROM tab1 cor0
----
55

query I rowsort
SELECT ALL + col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + - 59 + col1 FROM tab2 AS cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT - COUNT( * ) + ( + COUNT( * ) ) * - 87 col1 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-980
SELECT DISTINCT - COUNT ( * ) + ( + COUNT ( * ) ) * - 87 col1 FROM tab0 AS cor0
----
-264

query I rowsort
SELECT ALL + col2 * + 78 + + + ( col1 ) + + + ( - col0 ) FROM tab2
----
1799
3133
4516

query I rowsort
SELECT - 23 * col2 * - col2 FROM tab2 AS cor0
----
12167
36800
77372

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 = 59
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-986
SELECT + + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL 80 DIV - - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL 80 / - - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT ALL + ( + + col0 ) * + col2 + + - col0 - + col1 AS col2 FROM tab1 AS cor0
----
4831
4925
6050

query I rowsort
SELECT ALL col1 * + col0 * + - 27 - col0 * - - col0 * 56 AS col0 FROM tab0 AS cor0
----
-45405
-473193
-529523

query II rowsort
SELECT ALL + col0 + - col2, + 10 AS col0 FROM tab1 AS cor0
----
-45
10
23
10
26
10

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

query I rowsort
SELECT 1 AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-993
SELECT + + 26 - + - col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
125
NULL
36
NULL
73
NULL

skipif mysql # not compatible
query II rowsort label-993
SELECT + + 26 - + - col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
125
NULL
36
NULL
73
NULL

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 AS col1 FROM tab0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) * + - col0 col2 FROM tab2
----
-1058
-2560
-4350

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 22 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query II rowsort
SELECT DISTINCT + 47 AS col2, 57 AS col0 FROM tab2
----
47
57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1001
SELECT ALL - CAST( NULL AS DECIMAL ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL - CAST ( NULL AS REAL ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT - col1 * - ( + - col0 ) + - + 79 FROM tab1 AS cor0
----
-4356
-504
-793

onlyif mysql # DIV for integer division: 
query II rowsort label-1003
SELECT DISTINCT + + col0 AS col2, + col0 DIV 81 FROM tab0 AS cor0
----
15
0
87
1
97
1

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT + + col0 AS col2, + col0 / 81 FROM tab0 AS cor0
----
15
0
87
1
97
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT - SUM( - - col0 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - SUM ( - - col0 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT SUM( + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-1006
SELECT SUM ( + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

query I rowsort
SELECT ALL + col0 * 39 * + 1 FROM tab1
----
1989
3315
3549

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 93 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT - col1 + - + 23 AS col0, + col1 FROM tab2
----
-100
77
-74
51
-90
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT + COUNT( * ) DIV - COUNT( * ) + + 25 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) / - COUNT ( * ) + + 25 AS col2 FROM tab0
----
24

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

query I rowsort
SELECT DISTINCT col1 * + col0 * - - col2 - - + col2 FROM tab0
----
18280
57152
9702

query I rowsort
SELECT ( col2 ) - + + ( + col0 ) + - col0 FROM tab0
----
-164
-95
17

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT 6 + + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT 6 + + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-3

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

query I rowsort
SELECT DISTINCT ( 0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 * ( - 16 ) + - col0 AS col0 FROM tab0 AS cor0
----
-113
-1311
-423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN + - col2 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL > - ( + + 58 ) )
----

query I rowsort
SELECT ALL ( + 52 ) * + ( + col0 ) * - + ( + col2 ) FROM tab0 AS cor0
----
-36660
-45240
-499356

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + COUNT( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL <> 15 * 5
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + COUNT ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL <> 15 * 5
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * - 90 FROM tab1 AS cor0
----
1260
4230
450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 88 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query I rowsort
SELECT + 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

query II rowsort
SELECT DISTINCT col2, col1 * col1 AS col2 FROM tab0 AS cor0
----
10
441
47
6561
99
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT + + 60 DIV - + col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT + + 60 / - + col0 FROM tab0 AS cor0
----
-4
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - - ( col0 ) + 59
----

query II rowsort
SELECT - col1, + 31 AS col0 FROM tab1
----
-14
31
-47
31
-5
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL MAX( DISTINCT col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL MAX ( DISTINCT col0 ) FROM tab2
----
75

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

query I rowsort
SELECT - + col2 FROM tab2 WHERE + 79 > + 99
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT MAX( + - 81 ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT MAX ( + - 81 ) AS col2 FROM tab1
----
-81

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

query I rowsort
SELECT DISTINCT col1 + - col1 * ( + col0 ) FROM tab2
----
-2295
-4851
-4958

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1048
SELECT + - CAST( NULL AS SIGNED ) + - col2 AS col1, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-1048
SELECT + - CAST ( NULL AS INTEGER ) + - col2 AS col1, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

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

query III rowsort
SELECT * FROM tab1 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + + MAX( DISTINCT + 37 ) AS col2 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + + MAX ( DISTINCT + 37 ) AS col2 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * - col0 - + - col1 + + - col2 col0 FROM tab2 AS cor0
----
626
869
984

query I rowsort
SELECT ALL - 99 + + col1 * + + 86 - - - 55 + + + col0 AS col2 FROM tab2 AS cor0
----
4278
5683
6532

query I rowsort
SELECT ALL - col1 * + - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - + 1 ) AS col2 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT ALL 61 * - - col2 FROM tab0
----
2867
6039
610

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT - 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT + 27 * COUNT( * ) * - + 77 FROM tab2
----
-6237

skipif mysql # not compatible
query I rowsort label-1062
SELECT + 27 * COUNT ( * ) * - + 77 FROM tab2
----
-6237

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1065
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 26 IN ( - CAST( - 10 AS SIGNED ), + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1065
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 26 IN ( - CAST ( - 10 AS INTEGER ), + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 19 * col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 62 + + col1 FROM tab2
----
113
129
139

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT DISTINCT + col2 * + CAST( + col1 AS SIGNED ) + + col1 FROM tab1
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + col2 * + CAST ( + col1 AS INTEGER ) + + col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 WHERE NOT ( + 60 * col0 + - 13 ) NOT BETWEEN - col2 AND ( col1 - - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT MIN( ALL 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1072
SELECT MIN ( ALL 27 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT - ( - 79 ) + COUNT( * ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-1073
SELECT - ( - 79 ) + COUNT ( * ) AS col1 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL >= ( + 29 + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL >= ( + 29 + 10 )
----
0

query I rowsort
SELECT DISTINCT - col2 * - ( ( + col1 ) ) AS col0 FROM tab1
----
1344
295
3196

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

query I rowsort
SELECT DISTINCT col1 - ( 13 ) AS col0 FROM tab0
----
-12
68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT COUNT( * ) * - ( COUNT( * ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT COUNT ( * ) * - ( COUNT ( * ) ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT ALL 56 * + 87 FROM tab0
----
4872
4872
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + COUNT( * ) * MAX( col0 ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1080
SELECT + COUNT ( * ) * MAX ( col0 ) AS col0 FROM tab1
----
273

query I rowsort
SELECT + 85 - col0 FROM tab2
----
10
21
39

query I rowsort
SELECT ALL 40 * + ( + col0 ) - 10 AS col1 FROM tab1
----
2030
3390
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT COUNT( * ) * 64 + - 47 AS col1 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-1083
SELECT COUNT ( * ) * 64 + - 47 AS col1 FROM tab2
----
145

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

query I rowsort
SELECT 12 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + SUM( 58 ) FROM tab1 WHERE NULL >= + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + SUM ( 58 ) FROM tab1 WHERE NULL >= + 15
----
NULL

query I rowsort
SELECT col0 * + 47 AS col2 FROM tab0
----
4089
4559
705

query I rowsort
SELECT DISTINCT 38 * col2 + - col1 AS col1 FROM tab0
----
1705
359
3761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * 57 col1 FROM tab2
----
798
798
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT 51 * + COUNT( * ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-1090
SELECT 51 * + COUNT ( * ) AS col2 FROM tab0
----
153

query I rowsort
SELECT - 53 * col0 + - col0 FROM tab0
----
-4698
-5238
-810

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab2 WHERE NOT 36 BETWEEN + col0 AND ( - col1 + 84 )
----
2550
4422
5852

query I rowsort
SELECT DISTINCT col2 * ( 25 ) AS col1 FROM tab1
----
1475
1700
2400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT - 98 DIV + 4 AS col2 FROM tab0 cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1095
SELECT - 98 / + 4 AS col2 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT ( + col2 ) FROM tab2 cor0 WHERE ( - col0 ) NOT IN ( 80 )
----
23
40
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT 79 DIV + 95 + - col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 79 / + 95 + - col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + 72 - - col1 FROM tab1 AS cor0
----
119
77
86

query I rowsort
SELECT - ( + col2 ) - 50 * + col1 FROM tab1 AS cor0
----
-2418
-309
-796

query I rowsort
SELECT DISTINCT - 7 - - col2 AS col0 FROM tab2 cor0
----
16
33
51

query III rowsort
SELECT ALL * FROM tab2 WHERE - 96 IN ( + 52 )
----

query I rowsort
SELECT - 71 + + 70 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 96 / - col2 FROM tab2 WHERE 72 < NULL
----

query I rowsort
SELECT - 37 + - ( + col0 ) * col2 AS col2 FROM tab2
----
-1095
-2597
-4387

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col0 <> col0
----

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

query I rowsort
SELECT DISTINCT 46 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 22 )
----

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

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

query I rowsort
SELECT ALL + - 13 * col0 AS col1 FROM tab0 AS cor0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL + CAST( - - 19 AS SIGNED ) FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + CAST ( - - 19 AS INTEGER ) FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col1 col1 FROM tab2
----
3009
3953
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT 96 DIV - col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-1114
SELECT 96 / - col1 FROM tab1
----
-19
-2
-6

query I rowsort
SELECT - 86 * - - col1 AS col0 FROM tab0
----
-1806
-6966
-86

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col0 ) col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL + col2 * - 27 AS col2 FROM tab2
----
-1080
-1566
-621

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 56 NOT IN ( + 56 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 43 NOT IN ( col2 * + ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - SUM( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1125
SELECT - SUM ( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
-195

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

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

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT 65 + COUNT( * ) * - MAX( DISTINCT col2 ) + + SUM( ALL + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT 65 + COUNT ( * ) * - MAX ( DISTINCT col2 ) + + SUM ( ALL + col2 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 10 IS NOT NULL
----

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND 15
----

query I rowsort
SELECT DISTINCT - - 71 * 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6532

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

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

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

query I rowsort
SELECT DISTINCT col1 + + + 9 AS col1 FROM tab2 AS cor0
----
60
76
86

query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 AS cor0 WHERE + 52 * + col0 <= ( col0 )
----

query II rowsort
SELECT + col0 AS col0, 29 AS col0 FROM tab2 AS cor0
----
46
29
64
29
75
29

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

query I rowsort
SELECT DISTINCT 68 + col1 FROM tab1 cor0 WHERE + col1 + + 99 <= col1
----

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

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

query I rowsort
SELECT DISTINCT - 6 + - col2 FROM tab0 AS cor0
----
-105
-16
-53

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT - ( + col0 ) / col0 AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 33 / col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + col0 col2 FROM tab2
----
-20
-38
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV col1 * - col1 + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / col1 * - col1 + col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab1 WHERE - + 81 - + 55 * + col2 BETWEEN NULL AND - 10 * 89
----

skipif mysql # not compatible
query I rowsort label-1148
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 WHERE - + 81 - + 55 * + col2 BETWEEN NULL AND - 10 * 89
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT + - 94 + + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - col0 + - col2 + + col0 AS col2 FROM tab0
----
-1247
-1750
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - COUNT( - col0 ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1151
SELECT - COUNT ( - col0 ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1152
SELECT ALL col1 * CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0 WHERE NOT + ( + 92 ) - - 16 - - col1 NOT BETWEEN col1 AND 5
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL col1 * CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0 WHERE NOT + ( + 92 ) - - 16 - - col1 NOT BETWEEN col1 AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT + MAX( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + MAX ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT DISTINCT + + col0 + + 73 + - col1 DIV 6 DIV col0 AS col1 FROM tab0 AS cor0
----
160
170
88

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT + + col0 + + 73 + - col1 / 6 / col0 AS col1 FROM tab0 AS cor0
----
160
170
88

query I rowsort
SELECT - 83 + - col1 FROM tab0 AS cor0
----
-104
-164
-84

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - 16 NOT BETWEEN ( + + col1 * - ( col2 ) * + 84 ) AND - col0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * col2 ) = - col1
----

query I rowsort
SELECT ALL + col0 * 79 FROM tab2
----
3634
5056
5925

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 18 IS NULL
----

query I rowsort
SELECT DISTINCT - 56 * col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT DISTINCT ( + 48 ) * - + col2 FROM tab0 AS cor0
----
-2256
-4752
-480

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - 47 * + 40 * - - COUNT( * ) AS col0 FROM tab2
----
-5640

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 47 * + 40 * - - COUNT ( * ) AS col0 FROM tab2
----
-5640

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT col2 DIV col0 * + 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT col2 / col0 * + 69 FROM tab2
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 10 AS col2 FROM tab1
----
14
10
47
10
5
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT + 68 DIV + + MAX( 57 ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1175
SELECT + 68 / + + MAX ( 57 ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT - COUNT( * ) * 56 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COUNT ( * ) * 56 FROM tab2 AS cor0
----
-168

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

query I rowsort
SELECT ALL + 92 + 82 * - - col1 AS col2 FROM tab2 AS cor0
----
4274
5586
6406

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - + col2 / - col0 + - 42 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT col0 * 94 AS col2 FROM tab1 WHERE NOT - + col2 + - + col1 NOT IN ( - ( - col0 ) * - ( - col0 ) / - 88 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 2 * + ( - 92 ) < + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT + - COUNT( * ) DIV + COUNT( DISTINCT - col1 ) + - + 42 AS col2 FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1183
SELECT + - COUNT ( * ) / + COUNT ( DISTINCT - col1 ) + - + 42 AS col2 FROM tab2 cor0
----
-43

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

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

query I rowsort
SELECT - - ( - + 27 ) AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( + col2 * + col1 ) AND 64
----
-27
-27
-27

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

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

query I rowsort
SELECT DISTINCT - 74 + + - col2 AS col1 FROM tab1
----
-133
-142
-170

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

query I rowsort
SELECT ALL + 41 - + - 42 FROM tab0
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT + col0 + - col1 + col0 DIV col2 FROM tab0
----
-66
74
96

skipif mysql # not compatible
query I rowsort label-1191
SELECT + col0 + - col1 + col0 / col2 FROM tab0
----
-66
74
96

query I rowsort
SELECT ALL - + 36 FROM tab0 WHERE col1 <= - 50
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE col0 + - + 66 <= NULL OR NOT NULL NOT BETWEEN col2 AND + 20 * + col0 * + col1 + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT col2 DIV + col2 - col1 * - - 74 * col1 FROM tab2
----
-192473
-332185
-438745

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col2 / + col2 - col1 * - - 74 * col1 FROM tab2
----
-192473
-332185
-438745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT ALL - 14 - CAST( - ( - + CAST( col2 AS SIGNED ) ) AS SIGNED ) col1 FROM tab2
----
-37
-54
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1197
SELECT ALL - 14 - CAST ( - ( - + CAST ( col2 AS INTEGER ) ) AS INTEGER ) col1 FROM tab2
----
-37
-54
-72

query I rowsort
SELECT DISTINCT + + col0 - + 17 AS col2 FROM tab0 AS cor0
----
-2
70
80

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( - col0 * + 82, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - col2 + + - ( 51 ) FROM tab0 WHERE + col0 * + + col0 * - col0 + col0 <> - + col2
----
-150
-61
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 WHERE + 82 IS NOT NULL
----
73

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

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

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

query I rowsort
SELECT DISTINCT 77 * + col1 FROM tab0
----
1617
6237
77

query II rowsort
SELECT DISTINCT - 96 AS col0, - col0 FROM tab1
----
-96
-51
-96
-85
-96
-91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT + ( - ( COUNT( * ) ) ), 41 AS col2 FROM tab1
----
-3
41

skipif mysql # not compatible
query II rowsort label-1212
SELECT + ( - ( COUNT ( * ) ) ), 41 AS col2 FROM tab1
----
-3
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 76 - - col2 + + col1 * - - col2 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) < + col2
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 76 - - col2 + + col1 * - - col2 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) < + col2
----
0

query I rowsort
SELECT DISTINCT + + col0 + 58 FROM tab0 AS cor0
----
145
155
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - + 84 + - col0 col0, col0 FROM tab0 AS cor0
----
-180
15
-182
97
-192
87

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

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

query II rowsort
SELECT DISTINCT + col0 * - ( + ( - col2 ) ) - - + 94 + col1 + col1 + col1 AS col0, ( - col2 ) AS col1 FROM tab1 AS cor0
----
5032
-96
5124
-59
6423
-68

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

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

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT + COUNT( * ) * SUM( ALL + col2 ) DIV ( + 70 ) + COUNT( + + col0 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1220
SELECT + COUNT ( * ) * SUM ( ALL + col2 ) / ( + 70 ) + COUNT ( + + col0 ) AS col0 FROM tab0
----
9

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

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

query I rowsort
SELECT DISTINCT col1 * - + 54 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT DISTINCT 59 + + - col2 FROM tab2 AS cor0
----
1
19
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT 55 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) / col1 + - col0 NOT BETWEEN NULL AND ( - col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1224
SELECT 55 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) / col1 + - col0 NOT BETWEEN NULL AND ( - col0 * + col0 )
----

query II rowsort
SELECT + 13, + 75 + - + col0 AS col2 FROM tab2 AS cor0
----
13
0
13
11
13
29

query I rowsort
SELECT ALL + col0 * - 79 AS col2 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + - + ( col2 ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1232
SELECT + 46 DIV CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
0
3
9

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 46 / CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
0
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT col2 * col2 * - + CAST( NULL AS SIGNED ) / 90 + - 36 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT col2 * col2 * - + CAST ( NULL AS INTEGER ) / 90 + - 36 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col1 = + 50
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1235
SELECT - col2 - + CAST( NULL AS DECIMAL ) * - + 62 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT - col2 - + CAST ( NULL AS REAL ) * - + 62 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col2 + + ( + col0 ) FROM tab2
----
1219
3144
3961

query I rowsort
SELECT DISTINCT + col0 - - col0 * - 27 * - col2 + col1 + + + col2 FROM tab2
----
117650
28686
69301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT DISTINCT col2 * - CAST( + 72 AS SIGNED ) AS col0 FROM tab1
----
-4248
-4896
-6912

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT col2 * - CAST ( + 72 AS INTEGER ) AS col0 FROM tab1
----
-4248
-4896
-6912

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

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

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

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - 11 * - + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + COUNT( * ) * 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
792

skipif mysql # not compatible
query I rowsort label-1241
SELECT + COUNT ( * ) * 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
792

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1242
SELECT 99 * + + col0 * col0 DIV + CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
209484
405504
556875

skipif mysql # not compatible
query I rowsort label-1242
SELECT 99 * + + col0 * col0 / + CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
209484
405504
556875

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 - + col0 < 71
----

query I rowsort
SELECT - col1 * + col0 * - col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + - 19 IS NULL
----
194
38454
98430

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT ALL + COUNT( * ) AS col2, - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL + COUNT ( * ) AS col2, - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----
0
0

query II rowsort
SELECT DISTINCT col2 AS col0, col1 + + + col0 FROM tab0 AS cor0
----
10
108
47
96
99
98

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col0 * + col2 + - 15 AND NULL
----
51
67
77

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

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

query I rowsort
SELECT 68 * - col2 + + 10 AS col1 FROM tab2
----
-1554
-2710
-3934

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

query I rowsort
SELECT 40 + - - 57 AS col2 FROM tab0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) + - - ( 73 ) col1 FROM tab2
----
113
131
96

query I rowsort
SELECT - col0 + - + ( + - 17 ) AS col0 FROM tab2
----
-29
-47
-58

query I rowsort
SELECT 47 + col2 AS col1 FROM tab1
----
106
115
143

query I rowsort
SELECT + col2 + + col1 + col0 - + col0 FROM tab0
----
100
128
31

query I rowsort
SELECT col2 * 9 * + 52 AS col0 FROM tab2 cor0
----
10764
18720
27144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 29 col1 FROM tab2 AS cor0
----
-22
-38
-48

query I rowsort
SELECT - col0 * + - 48 - - + col0 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT + COUNT( * ) - 19 * + + 24 FROM tab2
----
-453

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + COUNT ( * ) - 19 * + + 24 FROM tab2
----
-453

query I rowsort
SELECT - col0 + - col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + 3 + - ( - 45 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1032
-1797
-2607

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT ALL 42 + + - col0 DIV - col1 FROM tab1 AS cor0
----
43
45
59

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 42 + + - col0 / - col1 FROM tab1 AS cor0
----
43
45
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT + + col1 + - col2 DIV - - col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-1264
SELECT + + col1 + - col2 / - - col2 FROM tab1 AS cor0
----
13
4
46

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

query I rowsort
SELECT ALL + - col0 + - + 91 FROM tab1 AS cor0
----
-142
-176
-182

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT ALL + CAST( - - col2 AS SIGNED ) * col2 + - 23 - - + col1 FROM tab1
----
3463
4648
9207

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + CAST ( - - col2 AS INTEGER ) * col2 + - 23 - - + col1 FROM tab1
----
3463
4648
9207

query II rowsort
SELECT col0, - col2 * - col1 + - col2 AS col1 FROM tab1
----
51
1248
85
236
91
3128

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT MAX ( ALL + 84 ) AS col2 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - MIN( + + 7 ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1271
SELECT - MIN ( + + 7 ) AS col1 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT COUNT( * ) * - 55 * - 88 AS col2 FROM tab0
----
14520

skipif mysql # not compatible
query I rowsort label-1272
SELECT COUNT ( * ) * - 55 * - 88 AS col2 FROM tab0
----
14520

query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab0 WHERE NOT - - col2 <> NULL
----

query II rowsort
SELECT ALL + col1 AS col0, col1 AS col1 FROM tab1 WHERE - 57 * + col0 * + col2 IS NULL
----

query I rowsort
SELECT ALL + + 68 AS col1 FROM tab0 WHERE NOT - + ( + 79 ) IS NULL
----
68
68
68

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

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

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

query II rowsort
SELECT - col0 AS col2, col1 + - 66 AS col0 FROM tab2 AS cor0
----
-46
-15
-64
11
-75
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1280
SELECT + + col1, CAST( 5 AS SIGNED ) * + col1 DIV - col1 FROM tab0 AS cor0
----
1
-5
21
-5
81
-5

skipif mysql # not compatible
query II rowsort label-1280
SELECT + + col1, CAST ( 5 AS INTEGER ) * + col1 / - col1 FROM tab0 AS cor0
----
1
-5
21
-5
81
-5

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col2 * - col0 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col2 * - col0 FROM tab0
----
10575
75690
931491

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT 57 DIV - + 27 + + - 14 + + col1 FROM tab0 AS cor0
----
-15
5
65

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 57 / - + 27 + + - 14 + + col1 FROM tab0 AS cor0
----
-15
5
65

query II rowsort
SELECT + col2, - 68 FROM tab0
----
10
-68
47
-68
99
-68

query I rowsort
SELECT ALL 39 * + col1 AS col0 FROM tab1
----
1833
195
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT SUM( - + col2 ) * + + 18 FROM tab2
----
-2178

skipif mysql # not compatible
query I rowsort label-1289
SELECT SUM ( - + col2 ) * + + 18 FROM tab2
----
-2178

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

query I rowsort
SELECT col0 + 37 - col2 * - col1 * col2 FROM tab2 AS cor0
----
123301
225500
27062

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( 31, + 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT ( + 65 ) * 31 + MAX( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
2106

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT ( + 65 ) * 31 + MAX ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + COUNT( * ) * - 66 AS col2 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + COUNT ( * ) * - 66 AS col2 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + 35 + - + col0 AS col1 FROM tab1 AS cor0
----
-16
-50
-56

query I rowsort
SELECT ( - 44 ) FROM tab1 AS cor0 WHERE ( NULL BETWEEN NULL AND + col1 - - + col1 / col1 )
----

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

query I rowsort
SELECT 55 * - 29 - + col1 FROM tab0 cor0
----
-1596
-1616
-1676

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + col0 - - + col2 + col2 FROM tab0 AS cor0
----
338
395
3997

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT - ( + + MIN ( - ( ( + 39 ) ) ) ) AS col2 FROM tab2 cor0 WHERE ( + col2 ) IS NOT NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - COUNT( 98 ) - - + MAX( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1301
SELECT - COUNT ( 98 ) - - + MAX ( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT ALL + - col0 + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + - col0 + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-174
-194
-30

query II rowsort
SELECT - col2 - - + col1 * - + col0 * + col1 * + + 42 * - col0 + + col2, 10 AS col0 FROM tab1 AS cor0
----
21411432
10
7586250
10
768294618
10

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL COUNT ( * ) * + - MIN ( + col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 80 * 22 <> NULL
----

query II rowsort
SELECT - col1, col1 * 38 AS col2 FROM tab1
----
-14
532
-47
1786
-5
190

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 - + - 63 <= + col0 - - + col1
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT - MAX( - - 27 ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT - MAX ( - - 27 ) AS col2 FROM tab0
----
-27

query II rowsort
SELECT DISTINCT 62, 55 AS col2 FROM tab0
----
62
55

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab2 WHERE - ( - 72 ) IS NOT NULL
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN + 50 - + col2 AND + - col1 * col2 * 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + col1 * + 10 AS col1 FROM tab1
----
140
470
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - col0 DIV 40 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1314
SELECT - col0 / 40 FROM tab2 AS cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 49 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( NOT - col1 <> + col1 - + + CAST( NULL AS SIGNED ) / + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( NOT - col1 <> + col1 - + + CAST ( NULL AS INTEGER ) / + 10 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1317
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT + col2 DIV - + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1318
SELECT + col2 / - + col2 FROM tab2
----
-1
-1
-1

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1320
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT col1 ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
3

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

query I rowsort
SELECT ALL - col2 + 4 FROM tab0 AS cor0
----
-43
-6
-95

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

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

query I rowsort
SELECT DISTINCT - + 33 * - + 68 FROM tab0 AS cor0
----
2244

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 7 ) + + + col2 * + - col0 / + 71 / - + 86 <> NULL
----

query I rowsort
SELECT ALL - col1 + 1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL + ( 2 ) * col2 * col2 AS col1 FROM tab0
----
19602
200
4418

query I rowsort
SELECT - col2 + + - col0 AS col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT 57 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + + 5 AS col2 FROM tab1
----
-54
-63
-91

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

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

query I rowsort
SELECT - 50 FROM tab0 WHERE + + col1 * - + col1 + + + col0 IS NULL
----

query I rowsort
SELECT + 86 * + 15 + - col1 FROM tab0
----
1209
1269
1289

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + 49 < - col1
----

query II rowsort
SELECT - col1 * - 21 AS col0, col0 * col0 AS col2 FROM tab1
----
105
7225
294
2601
987
8281

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

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

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

query I rowsort
SELECT ALL col1 + 0 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 46 * ( col0 ) + 56 FROM tab1
----
2402
3966
4242

query I rowsort
SELECT ALL + ( 56 ) AS col0 FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT SUM( - - col1 ) FROM tab0 WHERE NOT ( NULL < NULL ) OR - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT SUM ( - - col1 ) FROM tab0 WHERE NOT ( NULL < NULL ) OR - col1 IS NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + + 24 FROM tab2 AS cor0
----
23
70
40
88
58
99

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

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

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 69 * col1 AS col0 FROM tab2
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ( - COUNT( + - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1351
SELECT ( - COUNT ( + - col1 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT SUM( ALL + 36 ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1352
SELECT SUM ( ALL + 36 ) FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + SUM( DISTINCT 51 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1353
SELECT + SUM ( DISTINCT 51 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL - - 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1356
SELECT ALL + 46 AS col2, + col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
46
1
46
11
46
6

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL + 46 AS col2, + col2 / - - col1 AS col2 FROM tab1 AS cor0
----
46
1
46
11
46
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 >= 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + 83 col2 FROM tab0 AS cor0
----
170
180
98

query II rowsort
SELECT ALL - col1 AS col2, - col0 - col2 - + ( - + col1 ) FROM tab0
----
-1
-195
-21
-76
-81
19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + + 51 * 60
----

query I rowsort
SELECT DISTINCT + col2 + ( + - col1 ) AS col1 FROM tab1
----
21
54
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - 35 * COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - 35 * COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL col2, + 89 FROM tab2
----
23
89
40
89
58
89

query I rowsort
SELECT DISTINCT - col1 - + col0 + - + col1 FROM tab2
----
-148
-209
-218

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT + 60 DIV - 77 + - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1367
SELECT + 60 / - 77 + - COUNT ( * ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 67 * 89 FROM tab1 WHERE + col2 * - col2 * - - col0 IS NOT NULL
----
5963
5963
5963

query I rowsort
SELECT - + col0 * col2 + - 55 FROM tab1 AS cor0
----
-4951
-5070
-6243

query I rowsort
SELECT ALL 46 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT 91 DIV + col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1371
SELECT 91 / + col1 FROM tab1 AS cor0
----
1
18
6

query I rowsort
SELECT - + 66 * ( - col0 ) FROM tab2 cor0
----
3036
4224
4950

onlyif mysql # DIV for integer division: 
query II rowsort label-1373
SELECT ALL - + 4 DIV 24 + col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL - + 4 / 24 + col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT - 65 * + col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT ALL + 47 DIV 74 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + 47 / 74 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 * + col0 * - + 82 <> NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col0 <= + col0
----
46
64
75

query II rowsort
SELECT ALL col0, col2 * - + col0 FROM tab0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + MAX( + - col0 ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1379
SELECT + MAX ( + - col0 ) col1 FROM tab2
----
-46

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col1 = NULL
----

query I rowsort
SELECT + col1 + - 44 / + 94 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 49 ) * - 63 + + ( col0 ) AND NULL
----

query I rowsort
SELECT 28 * 64 AS col2 FROM tab1
----
1792
1792
1792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1385
SELECT ALL + SUM( col0 ) DIV + + 44 + - 62 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NULL OR NOT 81 <> ( + 15 )
----
-57

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + SUM ( col0 ) / + + 44 + - 62 FROM tab1 WHERE CAST ( NULL AS REAL ) IS NULL OR NOT 81 <> ( + 15 )
----
-57

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

query I rowsort
SELECT ALL - - ( col1 ) * 23 * + + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT - - col2 * + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ( col0 ) DIV - + 59 + col0 + - col1 + + col0 FROM tab2 cor0
----
41
50
82

skipif mysql # not compatible
query I rowsort label-1388
SELECT ( col0 ) / - + 59 + col0 + - col1 + + col0 FROM tab2 cor0
----
41
50
82

query I rowsort
SELECT + 69 + - 41 FROM tab0 AS cor0
----
28
28
28

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

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

query I rowsort
SELECT ALL + 34 + - col2 * + col2 * - 8 * col0 + + - 17 FROM tab1 AS cor0
----
2367097
3366289
3760145

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col1 + - col2 IN ( + ( col1 ) / ( + col1 ) * - 94, + col2 * - + 48 )
----

query I rowsort
SELECT ALL + 90 * + col0 + - col1 FROM tab2
----
4089
5683
6683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT DISTINCT 76 - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT 76 - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * + 61 AS col2 FROM tab0
----
1281
4941
61

query II rowsort
SELECT DISTINCT + 96, - 40 AS col0 FROM tab2
----
96
-40

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1399
SELECT DISTINCT MAX( ALL CAST( + + 53 AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) * + 72 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT MAX ( ALL CAST ( + + 53 AS INTEGER ) ) * - CAST ( NULL AS REAL ) * + 72 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * 26 FROM tab0 AS cor0
----
-1222
-2574
-260

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 12 * + - col2 - - - 43 * + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT + SUM( ALL - + col1 ) - 62, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-128
3

skipif mysql # not compatible
query II rowsort label-1402
SELECT + SUM ( ALL - + col1 ) - 62, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-128
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT DISTINCT + 19 DIV - col0 - - + col2 AS col1, 47 FROM tab0 AS cor0
----
10
47
46
47
99
47

skipif mysql # not compatible
query II rowsort label-1403
SELECT DISTINCT + 19 / - col0 - - + col2 AS col1, 47 FROM tab0 AS cor0
----
10
47
46
47
99
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT SUM( ALL 8 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1404
SELECT SUM ( ALL 8 ) FROM tab2
----
24

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

query I rowsort
SELECT - - 90 * + col1 + - col1 FROM tab2 cor0
----
4539
5963
6853

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( + + 31 ) IS NOT NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT DISTINCT + + col1 DIV - col2 + + col2 DIV + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-99

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + + col1 / - col2 + + col2 / + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL + col0 * - col1 * - + 9 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10935
16443
873

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + col0 * - col1 * - + 9 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10935
16443
873

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + - MIN( - 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1412
SELECT + - MIN ( - 35 ) FROM tab2 AS cor0
----
35

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

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

skipif mysql # not compatible
query I rowsort label-1414
SELECT - ( MIN ( + 60 ) ) AS col2 FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT 61 DIV + col1 AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-1415
SELECT 61 / + col1 AS col0 FROM tab1
----
1
12
4

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab0
----
-52
-52
-52

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * - col1 NOT IN ( + 99, col0, - + col0 + + col2, col1, - - col0 * + col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + SUM( 73 ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + SUM ( 73 ) FROM tab0 AS cor0
----
219

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

query I rowsort
SELECT col1 * - col2 + + + 61 AS col0 FROM tab1
----
-1283
-234
-3135

query II rowsort
SELECT - col0 * + - col1 + + col1, col1 FROM tab0
----
1296
81
1848
21
98
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 93 + + 72 IS NOT NULL
----

query II rowsort
SELECT - 80 + - col2 + 9, + col1 AS col2 FROM tab2
----
-111
77
-129
67
-94
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col1 - + col0
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 36 FROM tab0 AS cor0
----
-61
2901
669

onlyif mysql # aggregate syntax: 
query II rowsort label-1428
SELECT - - COUNT( * ), - MAX( - - col0 ) + + + 11 col2 FROM tab1 AS cor0
----
3
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1428
SELECT - - COUNT ( * ), - MAX ( - - col0 ) + + + 11 col2 FROM tab1 AS cor0
----
3
-80

query I rowsort
SELECT ALL col2 + + 19 AS col0 FROM tab2 AS cor0
----
42
59
77

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

query I rowsort
SELECT ALL - col2 * + col2 + - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

query I rowsort
SELECT - 84 - + col0 + col0 FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - 25 * - COUNT( * ) - + - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 25 * - COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT 77 AS col2 FROM tab2 WHERE - - col1 <= - col1 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL AND ( NOT ( NULL ) <= col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1436
SELECT col1 + - 95 + col1 DIV - col1 AS col2, + col1 + + col1 FROM tab2
----
-19
154
-29
134
-45
102

skipif mysql # not compatible
query II rowsort label-1436
SELECT col1 + - 95 + col1 / - col1 AS col2, + col1 + + col1 FROM tab2
----
-19
154
-29
134
-45
102

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

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

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

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

query I rowsort
SELECT DISTINCT 20 * - 38 FROM tab0 AS cor0
----
-760

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - - SUM( col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - - SUM ( col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-597

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

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 10 / - COUNT ( * ) FROM tab1 cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT 72 * - - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1446
SELECT 72 * - - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( * ) - + - 30 FROM tab2, tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( * ) - + - 30 FROM tab2, tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT ALL - CAST( NULL AS SIGNED ) * + - 46 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 46 * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - col0 + - + 75 AS col0 FROM tab2
----
-92
-98
-99

query II rowsort
SELECT ALL col2 + - col2 + 34 * + col2 * ( - col0 ) + - col0 - - - 63, col2 * - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 + + + 87 FROM tab0 AS cor0
----
-9
153
21

query I rowsort
SELECT ALL + col2 + ( + - col2 ) + + 27 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT + 97 * + col0 FROM tab2
----
4462
6208
7275

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL 63 DIV + + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL 63 / + + col0 FROM tab0
----
0
0
4

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

skipif mysql # not compatible
query I rowsort label-1458
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT + 21 + - col1 FROM tab1 AS cor0
----
-26
16
7

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

query I rowsort
SELECT DISTINCT - 9 + - - 22 AS col1 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL MIN( + - col0 ) AS col0 FROM tab1 AS cor0 WHERE 93 NOT BETWEEN NULL AND + ( - col2 ) / - 9 + - 58 + + 35 * - col2 * - col1 + col1 + + 58 / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab1 AS cor0 WHERE 93 NOT BETWEEN NULL AND + ( - col2 ) / - 9 + - 58 + + 35 * - col2 * - col1 + col1 + + 58 / col2
----
NULL

query I rowsort
SELECT col2 * + 63 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + 59 * + col2 + - col1 FROM tab0 cor0
----
2692
569
5840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT + - 78 + SUM( ALL - + 6 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + - 78 + SUM ( ALL - + 6 ) FROM tab0 AS cor0
----
-96

query II rowsort
SELECT DISTINCT + 55 + - col2, - 57 AS col0 FROM tab2 cor0
----
-3
-57
15
-57
32
-57

query I rowsort
SELECT ALL 87 + col2 FROM tab0 cor0
----
134
186
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + ( 45 ) ) col2, 82 + col1 * - - col1 * + col2 FROM tab2
----
-45
237242
-45
260444
-45
59905

query I rowsort
SELECT ALL - AVG ( ALL + - 68 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col1 - + 7 AS col0 FROM tab2
----
-58
-74
-84

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

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

query I rowsort
SELECT col1 * + - col1 AS col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 * - col1 - - - 72 - col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 57 FROM tab0
----
2679
5643
570

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

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

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

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

query I rowsort
SELECT ( - 44 ) AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ( col2 ) * - 93 * - 23 * + + col0 AS col2 FROM tab0 AS cor0
----
1507995
1860930
20540817

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - COUNT( * ) * 29 AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - COUNT ( * ) * 29 AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col2 * - 14 FROM tab0
----
-1386
-140
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT ALL ( 69 ) DIV - ( 70 ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL ( 69 ) / - ( 70 ) col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT DISTINCT 87 DIV 47 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT 87 / 47 FROM tab2
----
1

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT col0 + col0, col0 * - + col0 * - col2 / - col2 + + 36 FROM tab0 cor0 WHERE NULL < - 95 / - - 1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND - col2 * + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT + col2 AS col2, col2 + + + col1 + + 38 AS col1 FROM tab0 AS cor0 WHERE NULL <> - col1
----

query II rowsort
SELECT 50, col1 * - + 63 AS col2 FROM tab0 AS cor0
----
50
-1323
50
-5103
50
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT DISTINCT + 64 AS col0, + 59 * - + SUM( ALL - 72 ) FROM tab0 AS cor0
----
64
12744

skipif mysql # not compatible
query II rowsort label-1495
SELECT DISTINCT + 64 AS col0, + 59 * - + SUM ( ALL - 72 ) FROM tab0 AS cor0
----
64
12744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - COUNT( * ) * + 54 + + - 26 FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - COUNT ( * ) * + 54 + + - 26 FROM tab2 AS cor0
----
-188

query I rowsort
SELECT - - col2 - 81 AS col2 FROM tab0 cor0
----
-34
-71
18

query I rowsort
SELECT ALL - col2 * col2 * + 29 + - 64 + + 57 FROM tab1 AS cor0
----
-100956
-134103
-267271

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 84 - COUNT( + col0 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 84 - COUNT ( + col0 ) FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1501
SELECT * FROM tab2 WHERE col2 * col0 + + CAST( NULL AS DECIMAL ) * + + col0 NOT IN ( + - col2 / - - ( - - 23 ) + + col0, col2, 79 * + 75 + + 87 )
----

skipif mysql # not compatible
query III rowsort label-1501
SELECT * FROM tab2 WHERE col2 * col0 + + CAST ( NULL AS REAL ) * + + col0 NOT IN ( + - col2 / - - ( - - 23 ) + + col0, col2, 79 * + 75 + + 87 )
----

query II rowsort
SELECT col1 + + col1, ( + + col1 ) AS col1 FROM tab0
----
162
81
2
1
42
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT + + COUNT( * ) + + 14 + + 61 col2, COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + col2 AND 47
----
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1503
SELECT + + COUNT ( * ) + + 14 + + 61 col2, COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + col2 AND 47
----
75
0

query II rowsort
SELECT DISTINCT - 77 * - col0, col2 AS col0 FROM tab1
----
3927
96
6545
59
7007
68

query I rowsort
SELECT + ( + 79 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL - - 17 AS col1 FROM tab0 WHERE NOT col1 / + - 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + SUM( DISTINCT + 0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1507
SELECT + SUM ( DISTINCT + 0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + col0 * - 37 FROM tab2
----
-1702
-2368
-2775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 92 ) * + + 52 col0 FROM tab1 AS cor0
----
-4784
-4784
-4784

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL + ( + SUM( DISTINCT + col1 ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + ( + SUM ( DISTINCT + col1 ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT ALL + 19 * - col1 + + 92 AS col2 FROM tab1 cor0
----
-174
-3
-801

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

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

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

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

query II rowsort
SELECT + + col2 AS col2, - 27 * - 42 * + col0 AS col0 FROM tab2 AS cor0
----
23
52164
40
72576
58
85050

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL - - MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL - - MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT + 44 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + 44 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-132

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1519
SELECT ALL - col1 DIV + col1 AS col0, col0 AS col2 FROM tab1
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-1519
SELECT ALL - col1 / + col1 AS col0, col0 AS col2 FROM tab1
----
-1
51
-1
85
-1
91

query I rowsort
SELECT 82 + - 95 FROM tab2
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT ALL - 77 DIV col2 * 10 FROM tab1
----
-10
-10
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 77 / col2 * 10 FROM tab1
----
-10
-10
0

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT 91 * col1 + - + 73 FROM tab0
----
18
1838
7298

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

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

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

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) + - + 33 + + 17 FROM tab1
----
-13

query I rowsort
SELECT col0 + - ( - 74 ) * - col0 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT ALL col1 + - col0 + - - col2 FROM tab0 cor0
----
-56
113
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - - SUM ( 91 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 * - + col1 * - - 87 NOT BETWEEN - col0 AND - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 * - + ( + 35 ) + - col1 AS col0 FROM tab1 AS cor0
----
-1692
-180
-504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 69 NOT BETWEEN NULL AND - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT + col1 * col0 + + - 52 AS col1, + ( 11 ) AS col0 FROM tab2
----
2294
11
4876
11
4973
11

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 92 * + - 14 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - MIN( - col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1538
SELECT - MIN ( - col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT - col2 * - ( col2 ) AS col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT ALL + col0 AS col2, ( - 71 ) AS col0 FROM tab2
----
46
-71
64
-71
75
-71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, col0, 53 col0 FROM tab2
----
9 values hashing to 26afc3cf41fc6235f34376ddb74b0470

query I rowsort
SELECT + col2 * + col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

query II rowsort
SELECT ALL + + col0 AS col0, + 42 * + col0 FROM tab0 AS cor0
----
15
630
87
3654
97
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT DISTINCT MIN( + 35 ) AS col2 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT MIN ( + 35 ) AS col2 FROM tab0 cor0
----
35

query II rowsort
SELECT ALL - - col1 AS col2, - col2 * + col1 * + 20 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * - col2 AND + 19 + + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 56 * 83 - 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 43 + + col1, - col1 * - + 66 AS col2 FROM tab1 AS cor0
----
48
330
57
924
90
3102

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col1 col0 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query II rowsort label-1552
SELECT ALL col1 * + col1 * + col2 + - col0 + - col0 * col2, + ( - - 78 ) DIV - 68 AS col1 FROM tab2
----
234536
-1
255937
-1
58719
-1

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL col1 * + col1 * + col2 + - col0 + - col0 * col2, + ( - - 78 ) / - 68 AS col1 FROM tab2
----
234536
-1
255937
-1
58719
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT ALL + COUNT( * ), 96 AS col0 FROM tab2 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-1554
SELECT ALL + COUNT ( * ), 96 AS col0 FROM tab2 AS cor0
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + SUM( ALL 67 ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + SUM ( ALL 67 ) FROM tab0 AS cor0
----
201

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT DISTINCT 89 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT 89 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT ( - 57 ) AS col1 FROM tab2
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL col2 DIV + 21 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL col2 / + 21 FROM tab0
----
0
2
4

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

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

query I rowsort
SELECT 37 * - col2 + + 41 FROM tab2
----
-1439
-2105
-810

query I rowsort
SELECT ALL - 86 - 45 FROM tab0
----
-131
-131
-131

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + 71 * 8 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + 9 + + col1 <> CAST( col0 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + 9 + + col1 <> CAST ( col0 AS INTEGER )
----
-3

query I rowsort
SELECT ALL + ( 73 ) FROM tab2 WHERE ( + col2 + col2 ) IS NOT NULL
----
73
73
73

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

query I rowsort
SELECT DISTINCT - 27 + col2 FROM tab2
----
-4
13
31

query I rowsort
SELECT - col0 FROM tab2 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT 71 + ( + 15 ) AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT ALL + 42 + - ( 22 ) * 26 FROM tab0
----
-530
-530
-530

query I rowsort
SELECT DISTINCT 64 * + col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1574
SELECT ALL CAST( NULL AS SIGNED ) + MIN( 9 + + 28 ) AS col0 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - SUM ( + col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + COUNT( * ) * 44 - 48 AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COUNT ( * ) * 44 - 48 AS col0 FROM tab0
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT + col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) = ( 12 )
----

skipif mysql # not compatible
query I rowsort label-1578
SELECT + col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = ( 12 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL 12 * col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 * col0 ) AND 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 - col2 col2 FROM tab1
----
-22
-31
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL + SUM( ALL 75 ) col2 FROM tab1 WHERE NOT ( + 34 ) >= col0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT ALL + SUM ( ALL 75 ) col2 FROM tab1 WHERE NOT ( + 34 ) >= col0
----
225

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 <> ( 76 / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 <> ( 76 / col0 )
----
0

query I rowsort
SELECT 13 * 8 AS col2 FROM tab1 AS cor0
----
104
104
104

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 cor0 WHERE NULL IS NULL
----
225
7569
9409

query I rowsort
SELECT ALL 71 * col1 FROM tab0 AS cor0
----
1491
5751
71

query I rowsort
SELECT + 38 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT 62 * + COUNT( * ) AS col1 FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-1590
SELECT 62 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ( - SUM( - 5 ) ) FROM tab0 AS cor0 CROSS JOIN tab0
----
45

skipif mysql # not compatible
query I rowsort label-1592
SELECT ( - SUM ( - 5 ) ) FROM tab0 AS cor0 CROSS JOIN tab0
----
45

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

query I rowsort
SELECT + 36 * + col0 AS col1 FROM tab0
----
3132
3492
540

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

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

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

query I rowsort
SELECT col2 - + col2 FROM tab2 cor0 WHERE + col2 * - ( 73 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + col2 )
----

query I rowsort
SELECT DISTINCT - 60 * + col0 + - col1 AS col0 FROM tab1 AS cor0 WHERE - col1 * 24 + col0 IN ( ( - 82 ) )
----

query I rowsort
SELECT - - 99 + col2 FROM tab1 cor0
----
158
167
195

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

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

query I rowsort
SELECT ALL + - col0 + + ( - 9 + col2 ) FROM tab0 AS cor0
----
-7
-86
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1603
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - 54 BETWEEN ( CAST( + 29 AS DECIMAL ) ) AND 78
----

skipif mysql # not compatible
query III rowsort label-1603
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - 54 BETWEEN ( CAST ( + 29 AS REAL ) ) AND 78
----

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

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

query I rowsort
SELECT DISTINCT - 0 + ( col1 ) FROM tab2 cor0
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 86 + COUNT ( * ) FROM tab2 cor0
----
-83

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) * + col1 > - 98
----
85
5
59

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

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

query I rowsort
SELECT 56 + + 56 AS col1 FROM tab0
----
112
112
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + COUNT( * ) FROM tab2 WHERE ( - 60 + col1 ) NOT BETWEEN ( - 6 ) AND ( NULL )
----
1

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) FROM tab2 WHERE ( - 60 + col1 ) NOT BETWEEN ( - 6 ) AND ( NULL )
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col2 + + 86 * - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1796
-6919
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT + 66 * + COUNT( * ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT + 66 * + COUNT ( * ) AS col1 FROM tab1
----
198

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - 43 * COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 43 * COUNT ( * ) FROM tab0
----
-129

query I rowsort
SELECT DISTINCT + 54 + 27 + + 40 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - col2 - + 82 AS col1 FROM tab1 AS cor0
----
-141
-150
-178

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 15 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT col1 - - + col1 + 76 * + 77 FROM tab0
----
5854
5894
6014

query I rowsort
SELECT + col0 + 67 * col1 FROM tab0
----
1494
164
5442

query I rowsort
SELECT DISTINCT + 5 * + + col2 FROM tab1 AS cor0
----
295
340
480

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT + + COUNT( * ) DIV + 83 + + 10 col2 FROM tab2 cor0
----
10

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT - MIN( DISTINCT - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1627
SELECT - MIN ( DISTINCT - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT DISTINCT - 60 * - + col0 AS col2 FROM tab1
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + COUNT( * ) FROM tab1 WHERE NOT - - 94 = + col0
----
3

skipif mysql # not compatible
query I rowsort label-1630
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - - 94 = + col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1631
SELECT ALL col1 DIV - col1 AS col2, 26 * + + ( col1 ) FROM tab1
----
-1
1222
-1
130
-1
364

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL col1 / - col1 AS col2, 26 * + + ( col1 ) FROM tab1
----
-1
1222
-1
130
-1
364

query I rowsort
SELECT 2 FROM tab1 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT - 94 * - ( ( COUNT( * ) ) ) AS col0 FROM tab1 WHERE NOT + + 8 IN ( + + 2 )
----
282

skipif mysql # not compatible
query I rowsort label-1633
SELECT - 94 * - ( ( COUNT ( * ) ) ) AS col0 FROM tab1 WHERE NOT + + 8 IN ( + + 2 )
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT col1 + + CAST( - + 9 AS SIGNED ) FROM tab0 AS cor0
----
-8
12
72

skipif mysql # not compatible
query I rowsort label-1634
SELECT col1 + + CAST ( - + 9 AS INTEGER ) FROM tab0 AS cor0
----
-8
12
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT 81 * COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT 81 * COUNT ( * ) FROM tab0
----
243

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

query II rowsort
SELECT ALL + 66 * + 2 + + 40 AS col1, - col0 AS col0 FROM tab1
----
172
-51
172
-85
172
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1638
SELECT + 95 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1638
SELECT + 95 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, + col1 col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + 3 FROM tab0 cor0 WHERE NULL > + col0
----

query I rowsort
SELECT + + 68 * - 1 + + + 14 * - ( - 11 ) FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 87 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - + SUM( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1643
SELECT - + SUM ( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + 29 + + 75 * ( + 1 ) * + - 88 - + COUNT( * ) FROM tab0 AS cor0
----
-6574

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + 29 + + 75 * ( + 1 ) * + - 88 - + COUNT ( * ) FROM tab0 AS cor0
----
-6574

query I rowsort
SELECT - 87 - + 96 FROM tab2
----
-183
-183
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT DISTINCT ( + CAST( + col1 AS SIGNED ) ) + - + ( + 24 ) FROM tab2
----
27
43
53

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT ( + CAST ( + col1 AS INTEGER ) ) + - + ( + 24 ) FROM tab2
----
27
43
53

query I rowsort
SELECT ALL - + 38 FROM tab1 WHERE NOT ( NOT + 40 IS NULL )
----

query I rowsort
SELECT col2 - - 8 AS col1 FROM tab1
----
104
67
76

query I rowsort
SELECT DISTINCT ( col0 ) - col1 + - 47 FROM tab1
----
-10
-3
33

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

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

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

query I rowsort
SELECT col2 * - - 54 + + col2 FROM tab2
----
1265
2200
3190

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

query III rowsort
SELECT * FROM tab1 WHERE ( ( col1 * 3 ) >= ( NULL ) )
----

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

query I rowsort
SELECT + 25 * col2 * + 58 AS col0 FROM tab2 AS cor0
----
33350
58000
84100

query II rowsort
SELECT - - col2, 4 + col0 AS col1 FROM tab2 AS cor0
----
23
50
40
68
58
79

query I rowsort
SELECT ALL + col0 + col1 - + 82 FROM tab1 AS cor0
----
-17
56
8

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

query I rowsort
SELECT DISTINCT + 10 * - 44 AS col2 FROM tab0
----
-440

query I rowsort
SELECT - col0 * + col0 + + col2 * + ( + 88 ) FROM tab1 AS cor0
----
-2033
-2297
5847

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

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 * - + 68 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - + 78 * - ( + - MIN( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
-780

skipif mysql # not compatible
query I rowsort label-1665
SELECT - + 78 * - ( + - MIN ( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
-780

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1667
SELECT CAST ( NULL AS INTEGER ) / + ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT - 80 DIV - col1 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 80 / - col1 FROM tab1 AS cor0
----
1
16
5

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

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

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IN ( - - col0 + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN - + col0 + col1 * + col2 AND ( NULL ) OR - col0 BETWEEN NULL AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, 73 + + 23 * + + col2 FROM tab1
----
59
1430
68
1637
96
2281

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT ALL + col0 DIV + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + col0 / + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL col1 / 43 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + COUNT( - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1678
SELECT + COUNT ( - - col1 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 + col0 * - + col1 col1 FROM tab2 AS cor0
----
-2287
-4869
-4966

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + COUNT( * ) * + 70 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT + COUNT ( * ) * + 70 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 11 IS NULL
----

query I rowsort
SELECT + col0 - - - 89 FROM tab0 WHERE + + col1 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT MIN( ALL ( - 69 ) ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1683
SELECT MIN ( ALL ( - 69 ) ) FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + 52 ) * + col0, col2 col1 FROM tab1
----
-2652
96
-4420
59
-4732
68

query I rowsort
SELECT col1 * - 32 AS col1 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT 22 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 97 * - + ( - + COUNT( * ) ) * + 42 AS col2 FROM tab2
----
12222

skipif mysql # not compatible
query I rowsort label-1687
SELECT 97 * - + ( - + COUNT ( * ) ) * + 42 AS col2 FROM tab2
----
12222

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - SUM( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - SUM ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT - 96 - 30 AS col2 FROM tab2
----
-126
-126
-126

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 26 + - - 38 col2 FROM tab1 AS cor0
----
103
63
97

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

query I rowsort
SELECT DISTINCT + 40 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query II rowsort
SELECT ALL col0, + 61 * - col0 AS col2 FROM tab2
----
46
-2806
64
-3904
75
-4575

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 col0, - 55 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 39e3d52a7eabd3221ef3bacd38bca3b2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + - CAST( + 68 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + - CAST ( + 68 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1700
SELECT 75 DIV col0, + 20 AS col2 FROM tab2 AS cor0
----
1
20
1
20
1
20

skipif mysql # not compatible
query II rowsort label-1700
SELECT 75 / col0, + 20 AS col2 FROM tab2 AS cor0
----
1
20
1
20
1
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 * - 99 col2 FROM tab0 AS cor0
----
7722
7722
7722

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT - col2 * col2 DIV - 8 AS col2 FROM tab2
----
200
420
66

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - col2 * col2 / - 8 AS col2 FROM tab2
----
200
420
66

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

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

query I rowsort
SELECT - 2 * + 13 FROM tab1
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 66 > NULL
----

query I rowsort
SELECT - + 40 FROM tab0 AS cor0 WHERE col2 <> ( + + col2 ) + + 30
----
-40
-40
-40

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= + 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT + col0 * + col2 * + col1 + - 24 + - col2 + - - col0 * + 42 * 76 + 6 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) * 39 AND - col0
----

skipif mysql # not compatible
query I rowsort label-1710
SELECT + col0 * + col2 * + col1 + - 24 + - col2 + - - col0 * + 42 * 76 + 6 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) * 39 AND - col0
----

query II rowsort
SELECT 0, - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
-1
0
-21
0
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT 46 * - col1 + - col0 col0 FROM tab0 AS cor0 WHERE NULL <= + CAST( + 66 AS SIGNED ) * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1713
SELECT 46 * - col1 + - col0 col0 FROM tab0 AS cor0 WHERE NULL <= + CAST ( + 66 AS INTEGER ) * - col2
----

query I rowsort
SELECT - ( + col2 ) * - 23 + col1 FROM tab0 AS cor0
----
1162
2278
251

query I rowsort
SELECT ALL + - 24 * col0 * + - col2 + + col0 FROM tab1 AS cor0
----
117555
120445
148603

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + 31 * - 87 + - - MAX( DISTINCT + + col2 ) + + 53 AS col2 FROM tab1 AS cor0
----
-2548

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 31 * - 87 + - - MAX ( DISTINCT + + col2 ) + + 53 AS col2 FROM tab1 AS cor0
----
-2548

onlyif mysql # aggregate syntax: 
query II rowsort label-1717
SELECT + COUNT( * ), - 70 AS col0 FROM tab0 AS cor0
----
3
-70

skipif mysql # not compatible
query II rowsort label-1717
SELECT + COUNT ( * ), - 70 AS col0 FROM tab0 AS cor0
----
3
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1718
SELECT + col1 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT + col1 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1 * + 38 + - + 47, col0 * col1 AS col0 FROM tab1 AS cor0
----
-1833
4277
-237
425
-579
714

query I rowsort
SELECT - 46 - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-145
-56
-93

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

query I rowsort
SELECT - + col2 - + - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - 14 + 68 + + - 92 * + col1 FROM tab0 AS cor0
----
-1878
-38
-7398

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - + COUNT( * ) - 81 + - 18 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - + COUNT ( * ) - 81 + - 18 FROM tab2 AS cor0
----
-102

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

query I rowsort
SELECT DISTINCT 21 + 27 * + + col2 - 80 AS col1 FROM tab2 AS cor0
----
1021
1507
562

onlyif mysql # DIV for integer division: 
query II rowsort label-1727
SELECT ALL - - 83 DIV col1 - - col1 AS col0, 85 - + + col0 FROM tab1 AS cor0
----
19
34
21
0
48
-6

skipif mysql # not compatible
query II rowsort label-1727
SELECT ALL - - 83 / col1 - - col1 AS col0, 85 - + + col0 FROM tab1 AS cor0
----
19
34
21
0
48
-6

query I rowsort
SELECT + col1 - + + 67 AS col2 FROM tab0 AS cor0
----
-46
-66
14

query I rowsort
SELECT ALL + 74 + + 95 FROM tab2 AS cor0
----
169
169
169

query I rowsort
SELECT col0 + - + col0 FROM tab1 cor0 WHERE 45 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + ( + 12 ) - - - 28 AS col1 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT col0 - 10 FROM tab2
----
36
54
65

query I rowsort
SELECT ALL + 7 * - col2 - col1 FROM tab1
----
-418
-523
-686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col2, col1 * - 35 col1 FROM tab1
----
110
-490
115
-1645
64
-175

query I rowsort
SELECT ALL - 31 - - 28 AS col0 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT 17 + + col2 AS col2 FROM tab1 WHERE + - col2 * - 13 + - 82 + - + col0 + + + 49 IS NOT NULL
----
113
76
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( 79 + - + 43 )
----

query I rowsort
SELECT DISTINCT - 84 * - col2 - - col2 AS col1 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT 22 * col1 - 63 FROM tab1 AS cor0
----
245
47
971

query II rowsort
SELECT DISTINCT - - 88 * - 39 AS col2, + col1 + + col1 * + col0 + - 46 AS col2 FROM tab2 AS cor0
----
-3432
2351
-3432
4959
-3432
5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT + + 8 AS col0, + 90 AS col0 FROM tab1 AS cor0
----
8
90
8
90
8
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT 22 col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1743
SELECT 22 col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

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

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

query I rowsort
SELECT ALL - + ( + + 89 ) + + + col0 FROM tab0 AS cor0
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT - SUM( DISTINCT - 25 ) + COUNT( * ) + 70, COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 + - - ( col0 ) * ( + 70 ) IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1747
SELECT - SUM ( DISTINCT - 25 ) + COUNT ( * ) + 70, COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 + - - ( col0 ) * ( + 70 ) IS NOT NULL
----
NULL
0

query I rowsort
SELECT ALL col2 * - - 61 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT CAST( - ( + col2 ) AS SIGNED ) + - 77 - - + col0 * 84 AS col2 FROM tab0
----
1136
7221
7972

skipif mysql # not compatible
query I rowsort label-1749
SELECT CAST ( - ( + col2 ) AS INTEGER ) + - 77 - - + col0 * 84 AS col2 FROM tab0
----
1136
7221
7972

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT + COUNT( * ) + + 97 AS col2 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT + COUNT ( * ) + + 97 AS col2 FROM tab2
----
100

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

query I rowsort
SELECT - 66 * + + col2 FROM tab0
----
-3102
-6534
-660

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

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

query I rowsort
SELECT ALL + - col2 + col0 + + + col1 * 6 FROM tab1 AS cor0
----
305
39
56

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

query I rowsort
SELECT - 19 * - 5 * col2 - - + col2 FROM tab2
----
2208
3840
5568

query III rowsort
SELECT * FROM tab2 WHERE NULL < 53 * - + 33 / col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - - col0 < NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - col1 - - col1 + + - col2 FROM tab0 AS cor0
----
-197
-199
-3773

query I rowsort
SELECT ALL col2 + + 85 + - + col2 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 + + col1 FROM tab1 AS cor0
----
-4321
-505
-751

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / ( + col1 ) = - - 23
----

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

query I rowsort
SELECT ALL - - 19 + - 6 AS col1 FROM tab0 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL + 52 - COUNT( * ) col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT ALL + 52 - COUNT ( * ) col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT col1 - 63 - 90 * + col2 FROM tab2
----
-2082
-3586
-5216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ( + + MIN( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1773
SELECT ( + + MIN ( + col2 ) ) FROM tab2
----
23

query II rowsort
SELECT ALL 3 AS col2, + col0 FROM tab1
----
3
51
3
85
3
91

query I rowsort
SELECT DISTINCT 3 * - 86 AS col1 FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT COUNT( * ) AS col1, 16 col2 FROM tab2
----
3
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1776
SELECT COUNT ( * ) AS col1, 16 col2 FROM tab2
----
3
16

query II rowsort
SELECT col0, col2 * + 42 FROM tab1
----
51
4032
85
2478
91
2856

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

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

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - col0 / - - col2 AS col1 FROM tab1
----
-1
0

query II rowsort
SELECT ALL 57 AS col0, - col1 FROM tab1 cor0
----
57
-14
57
-47
57
-5

query I rowsort
SELECT - col2 * + 92 * + col1 FROM tab2 AS cor0
----
-107916
-283360
-357512

query I rowsort
SELECT 46 * col0 AS col0 FROM tab2 AS cor0
----
2116
2944
3450

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1785
SELECT DISTINCT + MIN( + 24 ) / - ( - CAST( NULL AS SIGNED ) ) AS col1, 47 FROM tab0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1785
SELECT DISTINCT + MIN ( + 24 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col1, 47 FROM tab0
----
NULL
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col2 * + 68 + - + 90 = + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT CAST ( 11 AS INTEGER ) FROM tab2 cor0
----
11
11
11

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 45 ) FROM tab2 AS cor0
----
-45

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + ( CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) ) col2 FROM tab1
----
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1798
SELECT ALL - CAST( - col0 AS SIGNED ) + - 38 + + 3 * col2, col1 AS col1 FROM tab0
----
118
81
356
1
79
21

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL - CAST ( - col0 AS INTEGER ) + - 38 + + 3 * col2, col1 AS col1 FROM tab0
----
118
81
356
1
79
21

query I rowsort
SELECT col2 * + 45 + - 69 * col2 + - - col1 FROM tab0
----
-1047
-219
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT + 69 + + COUNT( * ) * - - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + 69 + + COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT - col2 + - - 16 FROM tab1 AS cor0
----
-43
-52
-80

query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL >= NULL )
----

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

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

query I rowsort
SELECT ALL - 38 * - col1 AS col2 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT MAX( - col2 ) FROM tab2 WHERE NOT ( col2 * - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT MAX ( - col2 ) FROM tab2 WHERE NOT ( col2 * - col2 IS NOT NULL )
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1808
SELECT CAST ( - col2 AS INTEGER ) * - col0 - - col0 / CAST ( NULL AS INTEGER ) / + col0 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( + + col0 ) FROM tab2 AS cor0 WHERE col1 * col1 IN ( - - 61 / - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( + + col0 ) FROM tab2 AS cor0 WHERE col1 * col1 IN ( - - 61 / - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT - - 73 * SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
-16571

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT - - 73 * SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-16571

query I rowsort
SELECT ALL - col2 + + col2 * - 19 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT COUNT( DISTINCT + 40 ) DIV 29 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT COUNT ( DISTINCT + 40 ) / 29 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - SUM( ALL + col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1813
SELECT - SUM ( ALL + col0 ) FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT + - SUM( - - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( NULL IS NULL ) ) OR NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + - SUM ( - - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( NULL IS NULL ) ) OR NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT DISTINCT 0 * ( ( col0 ) ) FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1817
SELECT col0 DIV - 47 AS col0, + col2 FROM tab0
----
-1
10
-2
99
0
47

skipif mysql # not compatible
query II rowsort label-1817
SELECT col0 / - 47 AS col0, + col2 FROM tab0
----
-1
10
-2
99
0
47

query I rowsort
SELECT ALL - - ( + 74 ) FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT + + ( MIN( + + 99 ) ), + 89 AS col1 FROM tab2 cor0
----
99
89

skipif mysql # not compatible
query II rowsort label-1819
SELECT + + ( MIN ( + + 99 ) ), + 89 AS col1 FROM tab2 cor0
----
99
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + 81 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 55 FROM tab0
----
1155
4455
55

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - col2 * col0 * + + ( - col2 ) + - - 39 FROM tab0 AS cor0
----
33174
8739
950736

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

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

query I rowsort
SELECT ALL - col2 + - col1 + - + col2 FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - MIN( - + col1 ) AS col1 FROM tab2 cor0 WHERE NULL IN ( - 95, col0, 32, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT - MIN ( - + col1 ) AS col1 FROM tab2 cor0 WHERE NULL IN ( - 95, col0, 32, - col1 )
----
NULL

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

query I rowsort
SELECT + 95 * - - 95 + + 10 FROM tab2 AS cor0
----
9035
9035
9035

query I rowsort
SELECT ALL + col2 + + - 0 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT - 52 + + col2 AS col2 FROM tab0 cor0
----
-42
-5
47

query I rowsort
SELECT - ( + col0 ) + + col0 * col0 FROM tab2
----
2070
4032
5550

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > 43
----

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

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT + col2 + - 47 FROM tab2
----
-24
-7
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT MIN( DISTINCT col2 ) DIV - - 32 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT MIN ( DISTINCT col2 ) / - - 32 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT 71 / + col1 FROM tab0
----
0
3
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1840
SELECT DISTINCT + 26 + + COUNT( * ) - AVG ( + + 10 ) * + CAST( NULL AS DECIMAL ) + COUNT( * ) * - 51 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + 26 + + COUNT ( * ) - AVG ( + + 10 ) * + CAST ( NULL AS REAL ) + COUNT ( * ) * - 51 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col0 + + col2 + col1 * + - 2 / + col0 IS NOT NULL
----
14
47
5

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

query I rowsort
SELECT 51 - - - 47 FROM tab1
----
4
4
4

query I rowsort
SELECT - 59 + - col0 FROM tab1
----
-110
-144
-150

query I rowsort
SELECT 0 + + col1 AS col2 FROM tab0
----
1
21
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + - 15 DIV 3 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1847
SELECT + - 15 / 3 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1 cor0
----
-66

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

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

query I rowsort
SELECT + + 98 * + - 23 FROM tab0 AS cor0
----
-2254
-2254
-2254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col1 ) * col0 * - 51 col1, col0 AS col1 FROM tab0
----
4947
97
61965
15
93177
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL ( - ( COUNT( * ) ) ) * 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL ( - ( COUNT ( * ) ) ) * 41 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT 64 * + - COUNT( - ( + 66 ) ) FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT 64 * + - COUNT ( - ( + 66 ) ) FROM tab0
----
-192

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 col0, 93 + + + 40 FROM tab1
----
50
133

query I rowsort
SELECT + ( col1 ) * - + col2 - ( - 85 ) + + col1 + + 79 + col0 FROM tab2 cor0
----
-2775
-3580
-912

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

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL COUNT ( * ) / + 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT - col0 * 45 + + 11 * + - CAST( - 58 AS SIGNED ) AS col1 FROM tab2
----
-1432
-2242
-2737

skipif mysql # not compatible
query I rowsort label-1860
SELECT - col0 * 45 + + 11 * + - CAST ( - 58 AS INTEGER ) AS col1 FROM tab2
----
-1432
-2242
-2737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 4 - + + col0 BETWEEN - ( + 40 ) * + ( + + col0 ) AND col2 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 14 + - + 77 + + + col1 - - - col0 AS col2 FROM tab0 AS cor0
----
-157
-187
-25

query I rowsort
SELECT ALL - - 23 + 75 + + col2 * - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1377
-150114
-18718

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

query I rowsort
SELECT - + col1 * - col0 + col2 FROM tab2 AS cor0
----
2369
4968
5083

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

skipif mysql # not compatible
query I rowsort label-1867
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT 77 - COUNT( * ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1868
SELECT 77 - COUNT ( * ) AS col1 FROM tab0
----
74

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

query I rowsort
SELECT ALL + 72 FROM tab1 WHERE NOT NULL = + col1 AND + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 67 ) AS col0 FROM tab1
----
67
67
67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col1 FROM tab2 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + 53 + col2 FROM tab2 AS cor0
----
111
76
93

query I rowsort
SELECT + col0 * 97 + + + 29 AS col0 FROM tab0 AS cor0
----
1484
8468
9438

query I rowsort
SELECT + col1 + - col1 - - + 2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + col1 + + col2 + + + ( 1 ) FROM tab0 AS cor0
----
101
129
32

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

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

query II rowsort
SELECT - col2, - 89 + + + 24 + + col1 - col0 AS col1 FROM tab1 AS cor0
----
-59
-145
-68
-109
-96
-102

query I rowsort
SELECT DISTINCT + col0 - + 77 AS col2 FROM tab2 AS cor0
----
-13
-2
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT - col1 DIV + - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT - col1 / + - col1 FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT - - col1 * + + 17 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT ALL - 89 * + 76 FROM tab1 AS cor0
----
-6764
-6764
-6764

query I rowsort
SELECT ALL - + ( + 83 ) FROM tab0 cor0
----
-83
-83
-83

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - + 52 * 48 + - - col2 * - col1 / + - 23 - - 45 AND - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 4 col2 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 51 * + SUM( - col0 ) FROM tab1 AS cor0
----
-11577

skipif mysql # not compatible
query I rowsort label-1891
SELECT 51 * + SUM ( - col0 ) FROM tab1 AS cor0
----
-11577

query I rowsort
SELECT ALL - col0 * - col1 + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT col0 * - CAST( + 10 AS SIGNED ) col0 FROM tab2
----
-460
-640
-750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT col0 * - CAST ( + 10 AS INTEGER ) col0 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT - col2 * - + col1 AS col2 FROM tab2 WHERE NOT - - 72 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT - SUM( DISTINCT - - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - SUM ( DISTINCT - - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT + - COUNT ( - col0 ) / ( + CAST ( NULL AS INTEGER ) ) + + 39 AS col0 FROM tab1 cor0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT 63 * + col1 DIV col1 * 54 * + 38 * + col0 + - col1 AS col2 FROM tab1
----
10988455
11764069
6593062

skipif mysql # not compatible
query I rowsort label-1900
SELECT 63 * + col1 / col1 * 54 * + 38 * + col0 + - col1 AS col2 FROM tab1
----
10988455
11764069
6593062

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT - col1 + - + col1 DIV 75 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT - col1 + - + col1 / 75 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 27 + - - ( + 82 ) - - 88 - col2 * - col0 FROM tab1 AS cor0
----
5093
5212
6385

query I rowsort
SELECT + 32 + col0 FROM tab0 AS cor0
----
119
129
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL + 67 - + ( - CAST( col2 AS SIGNED ) ) + - + 47 AS col1 FROM tab2 AS cor0
----
43
60
78

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + 67 - + ( - CAST ( col2 AS INTEGER ) ) + - + 47 AS col1 FROM tab2 AS cor0
----
43
60
78

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

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

query II rowsort
SELECT DISTINCT + col0 + - col0, + 19 AS col2 FROM tab2 cor0
----
0
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1908
SELECT DISTINCT - + col1 + - 6 * - + col2 / - CAST( NULL AS SIGNED ) * - col1 * + col1, col1 FROM tab1 WHERE NOT NULL <> CAST( - ( + - col2 ) AS SIGNED ) * col2
----

skipif mysql # not compatible
query II rowsort label-1908
SELECT DISTINCT - + col1 + - 6 * - + col2 / - CAST ( NULL AS INTEGER ) * - col1 * + col1, col1 FROM tab1 WHERE NOT NULL <> CAST ( - ( + - col2 ) AS INTEGER ) * col2
----

query I rowsort
SELECT 2 + col0 / + col2 FROM tab0 WHERE - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - SUM( + 55 ) AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-1910
SELECT - SUM ( + 55 ) AS col1 FROM tab0
----
-165

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1912
SELECT - + CAST( NULL AS DECIMAL ) + + - col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT - + CAST ( NULL AS REAL ) + + - col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) * + + 99 AS col0 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT COUNT( * ) * - 48 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-1914
SELECT COUNT ( * ) * - 48 FROM tab1
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT CAST( - 81 AS SIGNED ) col0 FROM tab0
----
-81
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1915
SELECT CAST ( - 81 AS INTEGER ) col0 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1916
SELECT DISTINCT + 89 * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1916
SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1917
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + + 41 - col1 NOT BETWEEN - + col1 AND col0 + - 56
----

skipif mysql # not compatible
query III rowsort label-1917
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + 41 - col1 NOT BETWEEN - + col1 AND col0 + - 56
----

query I rowsort
SELECT - + 52 - + col0 * + 52 * - col2 AS col1 FROM tab0 AS cor0
----
36608
45188
499304

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

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

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

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

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1922
SELECT * FROM tab2 WHERE NOT + col1 * + + 46 > - + 76 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1922
SELECT * FROM tab2 WHERE NOT + col1 * + + 46 > - + 76 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 5 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT col0 * 66 AS col0 FROM tab1 AS cor0
----
3366
5610
6006

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

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

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

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

query I rowsort
SELECT 75 * - 16 + - 29 AS col0 FROM tab2 AS cor0
----
-1229
-1229
-1229

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

query I rowsort
SELECT - ( + - col2 ) FROM tab1
----
59
68
96

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col1 - + col2 AS col0 FROM tab0
----
-97
115
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 55 < NULL
----

query I rowsort
SELECT 3 * - - col1 AS col0 FROM tab0 cor0
----
243
3
63

query I rowsort
SELECT DISTINCT - 58 + col2 AS col2 FROM tab0 AS cor0
----
-11
-48
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 * col1 - - - col2 FROM tab1 cor0
----
-2277
-292
-84

query I rowsort
SELECT col1 - - col0 * + 68 FROM tab1 AS cor0
----
3482
5785
6235

query I rowsort
SELECT + + 52 * + col2 - + col2 FROM tab2 AS cor0
----
1173
2040
2958

query I rowsort
SELECT ALL 91 - - col2 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + - COUNT( * ) - + 46 AS col0 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1941
SELECT + - COUNT ( * ) - + 46 AS col0 FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT - + 31 + - col0 FROM tab0 AS cor0
----
-118
-128
-46

query I rowsort
SELECT ALL - col0 + - 77 FROM tab0
----
-164
-174
-92

query I rowsort
SELECT DISTINCT col0 - col0 * + - col0 AS col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT 77 + 0 FROM tab1
----
77
77
77

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

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

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

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT NULL = - - 47
----

query I rowsort
SELECT + 81 + col0 FROM tab2
----
127
145
156

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

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

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

query I rowsort
SELECT - + 75 * + ( - - col2 ) * - + col2 AS col0 FROM tab1 cor0
----
261075
346800
691200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) * + 86 FROM tab1 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT 46 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT 46 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1956
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1956
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col1 AS col2, 74 AS col2 FROM tab0 AS cor0 WHERE ( + col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT col2 * + - 16 + - 42 * CAST( + 10 AS SIGNED ), col1 + - col1 * col0 * col0 AS col2 FROM tab0 cor0
----
-1172
-18144
-2004
-9408
-580
-158928

skipif mysql # not compatible
query II rowsort label-1958
SELECT col2 * + - 16 + - 42 * CAST ( + 10 AS INTEGER ), col1 + - col1 * col0 * col0 AS col2 FROM tab0 cor0
----
-1172
-18144
-2004
-9408
-580
-158928

onlyif mysql # DIV for integer division: 
query II rowsort label-1959
SELECT - - col0 * + col0 + + col0 AS col2, ( + col2 ) * col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
2652
-96
7310
-59
8372
-68

skipif mysql # not compatible
query II rowsort label-1959
SELECT - - col0 * + col0 + + col0 AS col2, ( + col2 ) * col2 / - col2 AS col1 FROM tab1 AS cor0
----
2652
-96
7310
-59
8372
-68

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 * - 10 * - col0 FROM tab2 AS cor0
----
-23460
-49280
-50250

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT col2 / + 97 / + + col1 IS NULL
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT MIN( ALL - - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1964
SELECT MIN ( ALL - - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - col2 * - 28 AS col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + MIN( + - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1966
SELECT + MIN ( + - col0 ) FROM tab0 cor0
----
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - 5 + 73 FROM tab1 AS cor0
----
-222
-267
-407

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - 5 + 73 FROM tab1 AS cor0
----
-222
-267
-407

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL 67 + - 20 AS col0 FROM tab0
----
47
47
47

query I rowsort
SELECT + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 56 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1973
SELECT COUNT( * ) + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( * ) + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
3

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE + + 54 IS NULL
----

query I rowsort
SELECT ALL - + 92 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + + col1 IN ( - col0, col1, 45 )
----

query I rowsort
SELECT - + 96 + - 51 AS col2 FROM tab1 AS cor0
----
-147
-147
-147

query I rowsort
SELECT ALL - col0 * col0 + 64 FROM tab0 AS cor0
----
-161
-7505
-9345

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE 78 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - MIN( col0 ) col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT ALL - MIN ( col0 ) col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1981
SELECT 66 AS col1, CAST( NULL AS SIGNED ) * + - col1 FROM tab1
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-1981
SELECT 66 AS col1, CAST ( NULL AS INTEGER ) * + - col1 FROM tab1
----
66
NULL
66
NULL
66
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + + 21 < NULL
----

query I rowsort
SELECT DISTINCT + 63 * - + col2 AS col0 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + 38 * - - COUNT( * ) AS col2 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-1984
SELECT + 38 * - - COUNT ( * ) AS col2 FROM tab1
----
114

query I rowsort
SELECT - col1 * 53 AS col2 FROM tab2 cor0
----
-2703
-3551
-4081

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT 53 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1987
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT 99 AS col0, COUNT( * ) FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-1988
SELECT 99 AS col0, COUNT ( * ) FROM tab0
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT DISTINCT + CAST( 79 AS SIGNED ) * - col2 FROM tab0
----
-3713
-7821
-790

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + CAST ( 79 AS INTEGER ) * - col2 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT ALL + ( - + col1 ) + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-100
-128
-31

query II rowsort
SELECT ALL + + col2, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + + MIN( ALL - - 78 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + + MIN ( ALL - - 78 ) AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL - col2 + + col0 + - - 22 FROM tab2 AS cor0
----
39
45
46

query I rowsort
SELECT DISTINCT + 24 * col0 FROM tab0 AS cor0
----
2088
2328
360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 96
----

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT 79 DIV + col2 AS col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT 79 / + col2 AS col2 FROM tab2
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + - 54 + + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 WHERE - 18 * + - ( col1 ) IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + - 54 + + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 WHERE - 18 * + - ( col1 ) IS NOT NULL
----
-54

query I rowsort
SELECT ALL - 42 + + 30 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + 53 + + col2 FROM tab2 AS cor0
----
111
76
93

query I rowsort
SELECT + 26 + + 4 + - col2 FROM tab1 AS cor0
----
-29
-38
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 - + 36 AS col1 FROM tab1
----
13

query I rowsort
SELECT 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - COUNT( * ) - + 54 + + 76 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2005
SELECT - COUNT ( * ) - + 54 + + 76 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - ( + COUNT( * ) ) - - 56 AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2006
SELECT - ( + COUNT ( * ) ) - - 56 AS col1 FROM tab1 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - ( 3 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2008
SELECT - ( 3 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + COUNT( * ) - + 77 AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( * ) - + 77 AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + 35 * - ( - + COUNT( * ) ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + 35 * - ( - + COUNT ( * ) ) FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + ( - col1 ) * col0 * - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 90 * col0 AS col2, - col0 FROM tab2
----
4140
-46
5760
-64
6750
-75

query II rowsort
SELECT col1 * - col0 AS col0, - col1 FROM tab2 AS cor0
----
-2346
-51
-4928
-77
-5025
-67

query II rowsort
SELECT - 16 * - + 98 AS col1, 82 AS col1 FROM tab2 AS cor0
----
1568
82
1568
82
1568
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL - - SUM( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2015
SELECT ALL - - SUM ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT - - CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / col0 * col2 / - col1 + + 91 = NULL
----

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / col0 * col2 / - col1 + + 91 = NULL
----

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 WHERE NOT NULL <> - col2 - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT - + 0 * COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - + 0 * COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT + + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2020
SELECT + + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT + - 82 / CAST( NULL AS SIGNED ) / - col2 + - - col0 + col2 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT DISTINCT + - 82 / CAST ( NULL AS INTEGER ) / - col2 + - - col0 + col2 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( + 56 ) * - col1 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - + 80 + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL COUNT( * ) * - - 19 AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL COUNT ( * ) * - - 19 AS col0 FROM tab1
----
57

query I rowsort
SELECT 73 + - + col0 + - col1 AS col1 FROM tab1
----
-17
-65
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2026
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + 45 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2026
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + 45 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, - ( col1 ) - - + 3 + + - col2 FROM tab1
----
14
-107
47
-112
5
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 66 BETWEEN CAST( NULL AS SIGNED ) AND 23 )
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 66 BETWEEN CAST ( NULL AS INTEGER ) AND 23 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT ALL SUM( ALL + + col1 ) - - 27, - COUNT( * ) col2 FROM tab1
----
93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2033
SELECT ALL SUM ( ALL + + col1 ) - - 27, - COUNT ( * ) col2 FROM tab1
----
93
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + + - 24 col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - 2 * + 45 * - col2 AS col0 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 20 + + CAST( NULL AS SIGNED ) * + + col1 / col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 20 + + CAST ( NULL AS INTEGER ) * + + col1 / col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col0 * 24
----

query I rowsort
SELECT ALL + 23 - - col0 + col2 FROM tab1 AS cor0 WHERE - ( + 4 ) IS NOT NULL
----
167
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT col1 DIV - 98 * + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT col1 / - 98 * + + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT MAX( + - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2040
SELECT MAX ( + - col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - - SUM( + 52 ) col1 FROM tab1 WHERE NOT + 18 IS NULL
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT - - SUM ( + 52 ) col1 FROM tab1 WHERE NOT + 18 IS NULL
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT + 54 col2, - CAST( NULL AS SIGNED ) FROM tab2
----
54
NULL
54
NULL
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2043
SELECT + 54 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
54
NULL
54
NULL
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL MIN( DISTINCT + 62 ) col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2044
SELECT ALL MIN ( DISTINCT + 62 ) col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT col0 * + col1 + col0 AS col1 FROM tab1
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( - col1 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL < col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL < col2 * - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT 64 / - ( SUM( col1 ) ) FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 64 / - ( SUM ( col1 ) ) FROM tab2 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT 84 * - col1 AS col1 FROM tab1
----
-1176
-3948
-420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT + CAST( 95 AS SIGNED ) + + col1 DIV + col1 AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + CAST ( 95 AS INTEGER ) + + col1 / + col1 AS col1 FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT col1 + 94 FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) * - 13 IS NULL
----
108
141
99

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT col1 + 94 FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) * - 13 IS NULL
----
108
141
99

query I rowsort
SELECT + col2 * + col0 + col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE 44 * 54 BETWEEN NULL AND ( + col1 / 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - COUNT( * ) * 48 + - ( 19 ) * 96 FROM tab0
----
-1968

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - COUNT ( * ) * 48 + - ( 19 ) * 96 FROM tab0
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + COUNT( * ) * 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + COUNT ( * ) * 87 FROM tab2
----
261

query I rowsort
SELECT 57 + - col1 * - col2 FROM tab0
----
156
267
3864

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 14 * + 29 FROM tab0
----
406

query I rowsort
SELECT - ( 65 ) FROM tab2
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 * + 12 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( col2 ) * col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 89 + - col0 AS col1 FROM tab0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT - CAST( + 51 AS SIGNED ) * - col0 FROM tab2
----
2346
3264
3825

skipif mysql # not compatible
query I rowsort label-2065
SELECT - CAST ( + 51 AS INTEGER ) * - col0 FROM tab2
----
2346
3264
3825

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT DISTINCT 48 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - 70 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-11
-2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( 6 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( 6 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2071
SELECT * FROM tab2 WHERE NOT ( col0 * + 66 ) BETWEEN col0 + + col0 AND ( CAST( + col1 AS SIGNED ) * 76 + + 14 )
----

skipif mysql # not compatible
query III rowsort label-2071
SELECT * FROM tab2 WHERE NOT ( col0 * + 66 ) BETWEEN col0 + + col0 AND ( CAST ( + col1 AS INTEGER ) * 76 + + 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 52 * + 44 + ( col1 + + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT - - col0 DIV 74 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - - col0 / 74 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT ALL - 95 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - 95 / col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * 40 + + col1 * col2 FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
1904
495
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - MAX( col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2077
SELECT - MAX ( col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col0 + + col1 FROM tab2 cor0 WHERE NOT ( + col1 + - col0 ) IS NULL
----
141
142
97

query I rowsort
SELECT + - col1 * - 77 AS col2 FROM tab0 cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT - COUNT( ALL + ( 11 ) ) DIV 74 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT - COUNT ( ALL + ( 11 ) ) / 74 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT DISTINCT - 22 DIV + 41 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - 22 / + 41 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col0 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT col0 DIV 7 FROM tab1
----
12
13
7

skipif mysql # not compatible
query I rowsort label-2083
SELECT col0 / 7 FROM tab1
----
12
13
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT col2 DIV 68 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT col2 / 68 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + MIN( ALL col2 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT + MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab2 WHERE ( 89 + - col2 ) <> + 90 * col0
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 * col0 > NULL
----

query I rowsort
SELECT ALL col1 - col2 * + col2 FROM tab2 WHERE NULL IS NULL OR NULL = NULL
----
-1523
-3297
-478

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + 16 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT ALL + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + + col1 / col0 AS col1 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + ( col2 ) * col0 + 0 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + + MAX( ALL - 73 ) AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + + MAX ( ALL - 73 ) AS col0 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - ( 10 ) + - 55 AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT - 68 AS col1 FROM tab2 AS cor0 WHERE col1 * + 78 + - col1 NOT IN ( 10 + - 15 )
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND ( - 5 * + 37 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2099
SELECT MIN( ALL - col2 ) + - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT MIN ( ALL - col2 ) + - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col0 FROM tab0 cor0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 + 17 ) IS NULL
----

query I rowsort
SELECT 35 AS col1 FROM tab0 WHERE + ( col2 ) * col2 - col0 * col0 IS NOT NULL
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT ALL + col0 DIV - col1 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + col0 / - col1 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 4 ) NOT BETWEEN + col1 + - 6 AND ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * + col2 col1 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ( + 2 ) * - 56 FROM tab0
----
-112
-112
-112

query II rowsort
SELECT col1 * - 20, col2 FROM tab1
----
-100
59
-280
96
-940
68

query I rowsort
SELECT - + 64 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL CAST( NULL AS SIGNED ) * 78 + MAX( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL CAST ( NULL AS INTEGER ) * 78 + MAX ( col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT + 43 * + 95 + - CAST( + ( col0 ) AS SIGNED ) * 7 FROM tab1 AS cor0
----
3448
3490
3728

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + 43 * + 95 + - CAST ( + ( col0 ) AS INTEGER ) * 7 FROM tab1 AS cor0
----
3448
3490
3728

query I rowsort
SELECT DISTINCT - col2 + 67 AS col1 FROM tab1 AS cor0 WHERE + col2 IN ( col2 + - col2 )
----

query I rowsort
SELECT ( + ( col1 ) ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - AVG ( ALL col1 ) / - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT - AVG ( ALL col1 ) / - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2114
SELECT col0, + col2 * 70 * - + col1 DIV - col1 col2 FROM tab2 AS cor0
----
46
1610
64
2800
75
4060

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2114
SELECT col0, + col2 * 70 * - + col1 / - col1 col2 FROM tab2 AS cor0
----
46
1610
64
2800
75
4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT - 26 - + col2 * 37 FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + 38 + 5 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 26 - + col2 * 37 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + 38 + 5 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT DISTINCT - 77 DIV col1 AS col0 FROM tab0 cor0
----
-3
-77
0

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - 77 / col1 AS col0 FROM tab0 cor0
----
-3
-77
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT 39 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 - 96
----

query I rowsort
SELECT ALL - ( col1 ) * - ( - col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT + 18 * CAST( NULL AS SIGNED ) / - - 31 * - col2 * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + 18 * CAST ( NULL AS INTEGER ) / - - 31 * - col2 * + - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL 54 * + COUNT( * ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 54 * + COUNT ( * ) AS col2 FROM tab1
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 22 col0 FROM tab0
----
1
22
21
22
81
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2123
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) > - col2 + - + 61 + - col0 * + 4
----

skipif mysql # not compatible
query III rowsort label-2123
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) > - col2 + - + 61 + - col0 * + 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT 78 DIV + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif mysql # not compatible
query I rowsort label-2124
SELECT 78 / + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT DISTINCT 48 AS col1, COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-2125
SELECT DISTINCT 48 AS col1, COUNT ( * ) AS col1 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col0 col0 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + 72 FROM tab0
----
-15
72
-87
72
-97
72

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL COUNT( + 25 ) * 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL COUNT ( + 25 ) * 23 FROM tab2
----
69

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col1 + + - 21 col2 FROM tab0
----
1
-22
21
-42
81
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE + col1 + + + col0 + + - col2 - - CAST( NULL AS SIGNED ) NOT BETWEEN 31 + + 62 AND 53 / 25
----

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE + col1 + + + col0 + + - col2 - - CAST ( NULL AS INTEGER ) NOT BETWEEN 31 + + 62 AND 53 / 25
----

query I rowsort
SELECT 69 FROM tab0 WHERE NOT + 79 / - 55 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 93 * + ( + 31 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + + col1 AND ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - - COUNT( col0 ) + - MAX( ALL - 54 ) + + COUNT( * ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - - COUNT ( col0 ) + - MAX ( ALL - 54 ) + + COUNT ( * ) FROM tab0 cor0
----
60

query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( 52 + col0 )
----

query I rowsort
SELECT - - col1 * - col0 + - 92 FROM tab1 AS cor0
----
-4369
-517
-806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT 48 DIV 56 + COUNT( * ) DIV - MIN( - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT 48 / 56 + COUNT ( * ) / - MIN ( - col2 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - 96 / - 76 * + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT - 54 * + COUNT( col2 ) + + - 63 + - 51 AS col0 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - 54 * + COUNT ( col2 ) + + - 63 + - 51 AS col0 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT - - ( + 17 ) AS col0 FROM tab1 cor0
----
17
17
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 * + + 52 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - 1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 62 * + - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 62 * + - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - + 76 - + ( MAX( + 92 ) ) + 47 - - + 0 AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2147
SELECT - + 76 - + ( MAX ( + 92 ) ) + 47 - - + 0 AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT col1 - + col2 * - ( 23 ) FROM tab0
----
1162
2278
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * + col2 col2 FROM tab2
----
-1334
-2320
-3364

query II rowsort
SELECT ALL 50, 19 AS col0 FROM tab2
----
50
19
50
19
50
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + 29 DIV 48 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 29 / 48 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col0 * + col0 * col0 - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-262208
-421950
-97382

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE ( ( NULL >= 90 * - - col2 * col1 ) )
----

query I rowsort
SELECT - - ( col0 ) AS col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - 68 * + col1 + + 76 AS col0 FROM tab2 AS cor0
----
-3392
-4480
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2157
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> - col2
----

skipif mysql # not compatible
query III rowsort label-2157
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 WHERE - - col1 IS NULL
----

query I rowsort
SELECT ALL 51 * - ( - col1 ) FROM tab0
----
1071
4131
51

query I rowsort
SELECT ALL + - 9 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2163
SELECT col2 + + col2 AS col2 FROM tab1 WHERE NOT ( + ( + 19 ) + - col2 + - ( col0 ) ) NOT IN ( + CAST( NULL AS DECIMAL ) * - + CAST( + - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2163
SELECT col2 + + col2 AS col2 FROM tab1 WHERE NOT ( + ( + 19 ) + - col2 + - ( col0 ) ) NOT IN ( + CAST ( NULL AS REAL ) * - + CAST ( + - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT DISTINCT + 62 * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + 62 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 36 + - 38 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT col1 AS col1, 49 FROM tab0
----
1
49
21
49
81
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 98 ) col2 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT DISTINCT - - ( - + 47 ) + - - col1 + - col0 DIV + 15 + - + 14 FROM tab2 AS cor0
----
-13
1
12

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - - ( - + 47 ) + - - col1 + - col0 / + 15 + - + 14 FROM tab2 AS cor0
----
-13
1
12

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab2 cor0 WHERE - col0 / - col1 >= ( + 99 * - + 49 + + col0 * col0 + - + 24 )
----
-46
-64

query I rowsort
SELECT 35 + col1 AS col2 FROM tab0
----
116
36
56

query II rowsort
SELECT DISTINCT + 43 AS col0, col0 AS col0 FROM tab0 AS cor0
----
43
15
43
87
43
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT SUM( DISTINCT - 26 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT SUM ( DISTINCT - 26 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

query I rowsort
SELECT + 38 + col1 + - + col1 * + - ( + col2 ) * 74 FROM tab2 AS cor0
----
228035
287669
86891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT - 76 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 76 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2175
SELECT * FROM tab1 AS cor0 WHERE col0 <= col1 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2175
SELECT * FROM tab1 AS cor0 WHERE col0 <= col1 - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + 47 + - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 47 + - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 * + 38 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2178
SELECT DISTINCT col0 * ( CAST( col1 AS SIGNED ) ) - + col1 * 81 + - 7 AS col2, - ( - col0 ) * + + col2 FROM tab2
----
-1316
2560
-1792
1058
-409
4350

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT col0 * ( CAST ( col1 AS INTEGER ) ) - + col1 * 81 + - 7 AS col2, - ( - col0 ) * + + col2 FROM tab2
----
-1316
2560
-1792
1058
-409
4350

query II rowsort
SELECT + col2 * - col0, + col0 FROM tab2
----
-1058
46
-2560
64
-4350
75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - - + col0, + col1 col2 FROM tab1
----
138
47
65
14
90
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62 - - + 93 col0, + col1 AS col0 FROM tab1
----
155
14
155
47
155
5

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ( 1 ) - + - MAX( DISTINCT - - col2 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( 1 ) - + - MAX ( DISTINCT - - col2 ) FROM tab1
----
97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT DISTINCT + ( COUNT( * ) ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2187
SELECT DISTINCT + ( COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + 49 * - 39 + - col1 <> col0
----

query I rowsort
SELECT ALL 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT DISTINCT + - 55 AS col0, col1 AS col0 FROM tab0 cor0
----
-55
1
-55
21
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL MIN( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 BETWEEN + 79 AND NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 BETWEEN + 79 AND NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2195
SELECT DISTINCT + MIN( ALL + 20 ) * + ( CAST( NULL AS DECIMAL ) ) * + 78 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT + MIN ( ALL + 20 ) * + ( CAST ( NULL AS REAL ) ) * + 78 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 54 * + 83 + - MIN( col2 ) FROM tab1 AS cor0
----
4423

skipif mysql # not compatible
query I rowsort label-2196
SELECT 54 * + 83 + - MIN ( col2 ) FROM tab1 AS cor0
----
4423

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT - ( - - 15 ) DIV col2 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2197
SELECT - ( - - 15 ) / col2 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col2 * + 19 AS col1 FROM tab2
----
1102
437
760

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col0 NOT IN ( + + col2 )
----

query I rowsort
SELECT + 89 + + ( - AVG ( + + 24 ) ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 69 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + MAX( ALL - col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL + MAX ( ALL - col2 ) col2 FROM tab2
----
-23

query I rowsort
SELECT 40 + + ( + 28 ) * - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT + col0 * - CAST( col2 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2204
SELECT + col0 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL MIN( ALL + ( + col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL MIN ( ALL + ( + col0 ) ) AS col0 FROM tab2
----
46

query II rowsort
SELECT DISTINCT col0 + 25, ( col2 ) * 96 - - 41 + - col1 + + ( - 12 ) * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
110
6779
116
7682
76
9951

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT 11 + + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2207
SELECT 11 + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT col2 + + col0 * + col0 AS col0, - col0 + 38 + - 25 AS col0 FROM tab2
----
2139
-33
4136
-51
5683
-62

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query I rowsort
SELECT DISTINCT - col1 * + - 0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + 11 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2211
SELECT + 11 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT + ( + col0 ) + + col1 + - col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
100
96
98

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT + ( + col0 ) + + col1 + - col0 / - - col2 AS col1 FROM tab0 AS cor0
----
100
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 39 + - + 42 col0 FROM tab1 cor0
----
-34
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2214
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2214
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 - + + 50 col2 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT col2 - 37 - - 45 * + - col1 AS col0 FROM tab2 AS cor0
----
-2309
-2994
-3462

query I rowsort
SELECT + - 37 - + col0 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT + - col2 - - col0 AS col1 FROM tab1 cor0 WHERE col2 * ( 2 ) IS NOT NULL
----
-45
23
26

query I rowsort
SELECT - - col2 - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col1 + + col0 * + col0 * + - 30 col1 FROM tab0
----
-227028
-282268
-6588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 - + 82 col0 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT + - ( + 87 ) * + col2 + 29 AS col0 FROM tab0 AS cor0
----
-4060
-841
-8584

query I rowsort
SELECT DISTINCT + col0 * + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col1 * + 19 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - ( COUNT( * ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT - ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT MIN( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT MIN ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - ( 56 ) FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT - + AVG ( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - - col2 * - - 2 AS col2 FROM tab0 AS cor0 WHERE NOT - 58 IS NULL
----
198
20
94

query I rowsort
SELECT DISTINCT - - ( - + 29 ) AS col0 FROM tab0 AS cor0
----
-29

query II rowsort
SELECT - + col0 + 23 AS col0, + col2 * - + col1 * - + 56 * col1 AS col2 FROM tab2 AS cor0
----
-23
3350088
-41
13280960
-52
14580272

query II rowsort
SELECT ALL col1 AS col2, + 81 FROM tab2
----
51
81
67
81
77
81

query I rowsort
SELECT + ( + col1 ) FROM tab2 WHERE - + 9 IS NULL
----

query I rowsort
SELECT ( + + 45 ) AS col0 FROM tab2
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + - 86 ) NOT BETWEEN - - col0 AND + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 AS col1 FROM tab1
----
-4345
-484
-810

query II rowsort
SELECT - col2 + + col0, + col1 AS col2 FROM tab2
----
17
67
23
51
24
77

query I rowsort
SELECT ALL - col1 * 70 + col0 FROM tab1 AS cor0
----
-265
-3199
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT DISTINCT + 69 DIV col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + 69 / col0 FROM tab1 cor0
----
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + + ( 43 ) ) * + + ( ( - col2 ) ) + - - 98 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 79 + + col2 AS col1 FROM tab1 AS cor0
----
-11
-20
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2243
SELECT - CAST( NULL AS DECIMAL ) * + MAX( 36 ) + - 62 * + SUM( DISTINCT - 86 ) + + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT - CAST ( NULL AS REAL ) * + MAX ( 36 ) + - 62 * + SUM ( DISTINCT - 86 ) + + + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + - 85 NOT BETWEEN + + 18 * - col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT + 57 AS col1, 12 + COUNT( * ) AS col0 FROM tab1
----
57
15

skipif mysql # not compatible
query II rowsort label-2246
SELECT + 57 AS col1, 12 + COUNT ( * ) AS col0 FROM tab1
----
57
15

query II rowsort
SELECT + 74 AS col2, + col2 * - + col2 * - 72 AS col1 FROM tab1
----
74
250632
74
332928
74
663552

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col0 + - 51 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2249
SELECT DISTINCT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) - + MIN( DISTINCT - - col2 ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT - - col2 ) AS col1 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + MIN( DISTINCT - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + MIN ( DISTINCT - 86 ) FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + MIN( 24 ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2251
SELECT + MIN ( 24 ) AS col1 FROM tab1
----
24

query I rowsort
SELECT DISTINCT 61 * - 33 AS col1 FROM tab0
----
-2013

query I rowsort
SELECT + 1 * col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col0 * 37 FROM tab1
----
1887
3145
3367

query II rowsort
SELECT col0, + 76 * + - col1 * - col2 * + col0 AS col0 FROM tab1
----
51
5209344
85
1905700
91
22103536

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL - SUM( ALL - col2 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - SUM ( ALL - col2 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL + 78 * - + SUM( col1 ) FROM tab0
----
-8034

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 78 * - + SUM ( col1 ) FROM tab0
----
-8034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT - CAST( - + 48 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2258
SELECT - CAST ( - + 48 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - + ( - COUNT( * ) ) * - SUM( + col2 ) FROM tab1 cor0
----
-669

skipif mysql # not compatible
query I rowsort label-2259
SELECT - + ( - COUNT ( * ) ) * - SUM ( + col2 ) FROM tab1 cor0
----
-669

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 - + col2 AND - col0 * col0 + - 93 / 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 45 col1, - 43 AS col2 FROM tab0 AS cor0
----
-45
-43

query I rowsort
SELECT DISTINCT ( ( col0 ) ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + - 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 < NULL
----

query I rowsort
SELECT col1 - + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + col2 + + col0 AS col1 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT + col0 AS col0, 31 + + + ( - col0 ) FROM tab1 AS cor0
----
51
-20
85
-54
91
-60

query II rowsort
SELECT ALL + col1, ( col2 ) FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - 11, col0 FROM tab2 AS cor0
----
-11
46
-11
64
-11
75

query I rowsort
SELECT + - ( + 59 ) FROM tab0 AS cor0
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > ( + col2 )
----

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, - ( + col0 ) FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + - ( - MAX( col2 ) ) FROM tab2 WHERE NOT - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + - ( - MAX ( col2 ) ) FROM tab2 WHERE NOT - col1 = NULL
----
NULL

query I rowsort
SELECT ALL - 50 + + + col1 + + col2 + - col0 FROM tab1 AS cor0
----
-26
-71
9

query II rowsort
SELECT ALL - col0 AS col1, ( ( col2 ) ) AS col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT COUNT( * ) * - 11 col0 FROM tab2
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT DISTINCT COUNT ( * ) * - 11 col0 FROM tab2
----
-33

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT - CAST( NULL AS SIGNED ) * SUM( DISTINCT - - 39 ) - + CAST( NULL AS SIGNED ) / - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - - 39 ) - + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * 52 + + - col0 AS col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT col1 - - - 0 DIV 88 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2282
SELECT col1 - - - 0 / 88 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT - - COUNT( ALL - 52 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - - COUNT ( ALL - 52 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT COUNT( * ) * - SUM( 72 ) AS col1 FROM tab1 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) * - SUM ( 72 ) AS col1 FROM tab1 AS cor0
----
-648

query I rowsort
SELECT ALL + + ( 51 ) FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT SUM( - + 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-2287
SELECT SUM ( - + 61 ) FROM tab0
----
-183

query II rowsort
SELECT DISTINCT 90 * + - col2, + col1 FROM tab0
----
-4230
81
-8910
1
-900
21

query II rowsort
SELECT col2 * col2 AS col1, col1 FROM tab0 cor0
----
100
21
2209
81
9801
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * col1, 26 col0 FROM tab2 AS cor0
----
-2601
26
-4489
26
-5929
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - 23 * COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - 23 * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT ALL + col0 + + + col2 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + col0 + + + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 32 AS col2 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT DISTINCT + 13 * + 95 AS col2 FROM tab1 AS cor0
----
1235

query I rowsort
SELECT + ( - - 42 ) + + col0 + col1 FROM tab1 AS cor0
----
107
132
180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - MAX( - col1 ) FROM tab0 AS cor0 WHERE NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NULL <> col2
----
NULL

query I rowsort
SELECT + + col2 FROM tab1 WHERE - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 - - col2 <= - ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT DISTINCT MIN( + - col1 ), + 81 AS col1 FROM tab1
----
-47
81

skipif mysql # not compatible
query II rowsort label-2301
SELECT DISTINCT MIN ( + - col1 ), + 81 AS col1 FROM tab1
----
-47
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT 53 DIV - MIN( + + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT 53 / - MIN ( + + col2 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2303
SELECT DISTINCT 63 DIV - 6 AS col2, col2 * col0 FROM tab0
----
-10
705
-10
870
-10
9603

skipif mysql # not compatible
query II rowsort label-2303
SELECT DISTINCT 63 / - 6 AS col2, col2 * col0 FROM tab0
----
-10
705
-10
870
-10
9603

query I rowsort
SELECT DISTINCT - + 85 AS col2 FROM tab0 WHERE NOT + + col0 * + 57 * + col1 NOT BETWEEN ( - col2 ) AND col0
----

query II rowsort
SELECT ALL + col0 AS col1, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + 92 * + 84 + - 61 AS col0 FROM tab1
----
7667
7667
7667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - CAST( - 96 AS SIGNED ) * - col1 FROM tab2
----
-4896
-6432
-7392

skipif mysql # not compatible
query I rowsort label-2307
SELECT - CAST ( - 96 AS INTEGER ) * - col1 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - 82 * - COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 82 * - COUNT ( * ) FROM tab1
----
246

query I rowsort
SELECT DISTINCT 9 + + + 9 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT col0 * + + col2 + - col0 * + - col2 - col1 FROM tab1 AS cor0
----
10025
12329
9778

query I rowsort
SELECT DISTINCT + col2 - + + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT 83 * + col2 * 73 AS col2 FROM tab0
----
284773
599841
60590

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 60 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2314
SELECT ( - COUNT( * ) ) * + - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + + 3 AS SIGNED ) * + col0 + + + col0 + col2 + + col2 = 71
----
3

skipif mysql # not compatible
query I rowsort label-2314
SELECT ( - COUNT ( * ) ) * + - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + + 3 AS INTEGER ) * + col0 + + + col0 + col2 + + col2 = 71
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2315
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) >= col0 * - 21 * - col2 + 14 + + + col2
----

skipif mysql # not compatible
query III rowsort label-2315
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) >= col0 * - 21 * - col2 + 14 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + - ( + MAX( + col0 ) ) col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2316
SELECT ALL + - ( + MAX ( + col0 ) ) col2 FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + COUNT( * ) * - 24 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + COUNT ( * ) * - 24 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - 91 * col0 AS col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

query II rowsort
SELECT col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + + 34 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL MIN ( - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT MIN( col0 ) * COUNT( * ) * - ( - 19 ) AS col0 FROM tab2
----
2622

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT MIN ( col0 ) * COUNT ( * ) * - ( - 19 ) AS col0 FROM tab2
----
2622

query I rowsort
SELECT - ( - - 58 ) FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT - COUNT( * ) AS col2, + MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
-3
58

skipif mysql # not compatible
query II rowsort label-2325
SELECT - COUNT ( * ) AS col2, + MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
-3
58

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - + 29 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - + 29 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT 67 DIV + - col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT 67 / + - col0 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 <= ( col0 )
----
51
14
96

query II rowsort
SELECT ALL - col1, ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - - COUNT( ALL - 12 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - - COUNT ( ALL - 12 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 + + - 20 + + col0 AS col2 FROM tab0 AS cor0
----
-86
46
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT MIN( DISTINCT - col1 ) DIV 11 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT MIN ( DISTINCT - col1 ) / 11 FROM tab1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT DISTINCT - col2 DIV + + col2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - col2 / + + col2 AS col0 FROM tab1
----
-1

query I rowsort
SELECT col2 + + - col2 - - col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 + - - 71 + + col1 FROM tab2
----
173
205
225

query I rowsort
SELECT ALL ( - col2 ) + col1 + col1 + + + col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0, 69 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0, 69 * - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - - col0 ) ) <> 88 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + 60 - - col2 FROM tab2 AS cor0
----
129
164
193

query I rowsort
SELECT ALL - 47 - - 53 AS col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT + COUNT( * ) FROM tab0 cor0 WHERE - ( col2 ) / - + CAST( NULL AS SIGNED ) < 13
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE - ( col2 ) / - + CAST ( NULL AS INTEGER ) < 13
----
0

query I rowsort
SELECT ( col2 ) - - 92 AS col2 FROM tab2
----
115
132
150

query II rowsort
SELECT ALL + 92 + - - col0 + 59 + - col0 * - col0 * - 96, + col1 + - + 17 + ( - 14 ) * - col2 AS col0 FROM tab1 AS cor0
----
-249494
1341
-693364
814
-794734
982

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 95 = ( + col1 ) + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT col2 DIV + col1 + + 99 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-2346
SELECT col2 / + col1 + + 99 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 34 + + col1 AS col2 FROM tab1
----
30
76
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT SUM( ALL + 48 ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT SUM ( ALL + 48 ) FROM tab0 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, col0 col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + col1 + 88 IS NOT NULL )
----
-75

query II rowsort
SELECT col2 AS col2, 49 AS col2 FROM tab2 AS cor0
----
23
49
40
49
58
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2355
SELECT ALL + col1 AS col1, col2 + - 67 + + - col2 + - CAST( - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
-16
47
24
5
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2355
SELECT ALL + col1 AS col1, col2 + - 67 + + - col2 + - CAST ( - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
-16
47
24
5
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT ALL + col1 AS col0, + col2 + - ( + 73 ) * col0 DIV - + 52 + ( 67 ) * + + 53 * + ( + col2 ) FROM tab0 AS cor0
----
1
351784
21
35642
81
166965

skipif mysql # not compatible
query II rowsort label-2356
SELECT ALL + col1 AS col0, + col2 + - ( + 73 ) * col0 / - + 52 + ( 67 ) * + + 53 * + ( + col2 ) FROM tab0 AS cor0
----
1
351784
21
35642
81
166965

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT + 13 - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + 13 - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 32
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col1 * + + ( col1 ), + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT DISTINCT + 18, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT + 18, COUNT ( * ) AS col0 FROM tab1
----
18
3

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT ALL col0, 30 * 12 FROM tab0 AS cor0
----
15
360
87
360
97
360

query I rowsort
SELECT DISTINCT 24 + + - 58 AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 73 AS col2 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT DISTINCT - + 8 * - + col0 FROM tab0 AS cor0 WHERE col1 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * - - col2 * + - 23 col2 FROM tab1
----
-103776
-63779
-73508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT col0 * - CAST( 26 AS SIGNED ) * col1 FROM tab0
----
-2522
-31590
-47502

skipif mysql # not compatible
query I rowsort label-2374
SELECT col0 * - CAST ( 26 AS INTEGER ) * col1 FROM tab0
----
-2522
-31590
-47502

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT MAX( DISTINCT col2 ) - + - 45 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT MAX ( DISTINCT col2 ) - + - 45 FROM tab2
----
103

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col0 AS col1 FROM tab1 WHERE NOT - 24 IS NULL
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT CAST( NULL AS SIGNED ) - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT CAST ( NULL AS INTEGER ) - + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - 99 * + 10 + col2 IN ( + col2 )
----

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT 43 AS col0 FROM tab0 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - MAX( ALL - + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2383
SELECT - MAX ( ALL - + col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT + col1 * - ( + 51 ) AS col2 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 WHERE 57 >= + col0
----
11

query I rowsort
SELECT DISTINCT + - 30 AS col0 FROM tab0 cor0
----
-30

query II rowsort
SELECT DISTINCT + col0 AS col2, 97 * + col2 FROM tab0 AS cor0
----
15
4559
87
970
97
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 99, - col2, + + ( + - ( col2 ) ) / - col1 - - col2, 60 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 77 / + col0 + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT - CAST( + - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2390
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - ( - - col1 ) col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - ( + COUNT( * ) ) * 15 AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2392
SELECT - ( + COUNT ( * ) ) * 15 AS col1 FROM tab2
----
-45

query II rowsort
SELECT ALL - col0 AS col0, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 31 * - + ( - MAX( DISTINCT 13 ) ) + 93 FROM tab0
----
496

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 31 * - + ( - MAX ( DISTINCT 13 ) ) + 93 FROM tab0
----
496

query II rowsort
SELECT - col2 AS col1, + col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col2 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT MAX( 54 ) + + SUM( + 88 ) AS col2 FROM tab2 cor0
----
318

skipif mysql # not compatible
query I rowsort label-2397
SELECT MAX ( 54 ) + + SUM ( + 88 ) AS col2 FROM tab2 cor0
----
318

query I rowsort
SELECT + 48 * + - col1 AS col1 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT col0 * - 83 FROM tab1 cor0
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL + COUNT( * ) * 91 - + COUNT( * ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + COUNT ( * ) * 91 - + COUNT ( * ) FROM tab0 AS cor0
----
270

query II rowsort
SELECT ( + + col1 ), col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + + 88 + + + col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT - 69 * + - col1 * col2 + - col2 - CAST( col2 AS SIGNED ) - col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
14471
262590
6634

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 69 * + - col1 * col2 + - col2 - CAST ( col2 AS INTEGER ) - col2 / - + col2 AS col0 FROM tab0 AS cor0
----
14471
262590
6634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT ALL ( + - COUNT( * ) ) DIV - 10 + + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL ( + - COUNT ( * ) ) / - 10 + + - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 - ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT + ( + col0 ) - CAST( NULL AS SIGNED ) * col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT + ( + col0 ) - CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + ( COUNT( * ) ) - + 81 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2407
SELECT + ( COUNT ( * ) ) - + 81 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT col0 * - col1 + - - 25 + 26 FROM tab1 AS cor0
----
-374
-4226
-663

query II rowsort
SELECT DISTINCT col2 - - col2 AS col2, col2 * + 1 AS col2 FROM tab0 AS cor0
----
198
99
20
10
94
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) * + col1 + + 3 + + col2 + 6 > NULL
----

query II rowsort
SELECT ALL col0, col1 * + - col0 + 78 FROM tab0
----
15
-1137
87
-1749
97
-19

query I rowsort
SELECT col0 * - + 79 AS col1 FROM tab2
----
-3634
-5056
-5925

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) + - + col0 IN ( + 19, col2, - + col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + COUNT( ALL - 13 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2414
SELECT + COUNT ( ALL - 13 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( 57 ) AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL ( + 60 ) AS col2 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT ALL - COUNT( col0 ) DIV + 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - COUNT ( col0 ) / + 66 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT 91 * + 20 / + CAST( NULL AS SIGNED ) + - + 52 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT 91 * + 20 / + CAST ( NULL AS INTEGER ) + - + 52 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT + + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT col2 >= + - 75 * + 27
----

query II rowsort
SELECT ALL col1 * + col0 AS col1, - 32 FROM tab1
----
425
-32
4277
-32
714
-32

query II rowsort
SELECT ALL - col1 * - + 2 AS col0, col2 * - col2 + 56 AS col1 FROM tab1
----
10
-3425
28
-9160
94
-4568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ( - + 16 ) AS col0 FROM tab0 AS cor0
----
-16
-16
-16

query II rowsort
SELECT + + 93 * 69 AS col1, - 91 + + + 30 AS col1 FROM tab1 AS cor0
----
6417
-61
6417
-61
6417
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT COUNT( * ) DIV - - 37 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT COUNT ( * ) / - - 37 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL + 93 * CAST( NULL AS SIGNED ) + - + col2 + + col2 / - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + 93 * CAST ( NULL AS INTEGER ) + - + col2 + + col2 / - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col1 * 62, - 13 AS col2 FROM tab2 AS cor0
----
3162
-13
4154
-13
4774
-13

query I rowsort
SELECT + 82 * + 13 + + - col0 FROM tab1 AS cor0
----
1015
975
981

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 + + + 87 < + + 37
----
-2

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 + + + 87 < + + 37
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 * 65 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 15 ) * + col0 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT CAST( col1 AS SIGNED ) * + + 38 + + col0 * col2 FROM tab0
----
1668
3783
9641

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + + 38 + + col0 * col2 FROM tab0
----
1668
3783
9641

query I rowsort
SELECT - 6 * + col1 AS col0 FROM tab1
----
-282
-30
-84

query II rowsort
SELECT + - col1 AS col0, 72 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

query I rowsort
SELECT ALL + - col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - col0 / - + col0 * + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + COUNT( * ) + - 25 AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( * ) + - 25 AS col2 FROM tab1
----
-22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 - 89 BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2440
SELECT 0 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT 0 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 98 * - + 59 col1 FROM tab1
----
-5841
-5850
-5878

query I rowsort
SELECT - col0 + col1 - + + 90 AS col2 FROM tab2 AS cor0
----
-77
-85
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT 68 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 68 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col0 / + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 * - 60 - + col1 AS col2 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT + - ( - 88 ) AS col1 FROM tab0 cor0
----
88
88
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT - MAX( DISTINCT - col1 ) + - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - MAX ( DISTINCT - col1 ) + - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2448
SELECT * FROM tab0 WHERE + 1 BETWEEN NULL AND CAST( NULL AS SIGNED ) * col0 * - + 66
----

skipif mysql # not compatible
query III rowsort label-2448
SELECT * FROM tab0 WHERE + 1 BETWEEN NULL AND CAST ( NULL AS INTEGER ) * col0 * - + 66
----

query II rowsort
SELECT + col1 - + 25 AS col0, col2 + + col0 FROM tab0
----
-24
196
-4
97
56
62

query I rowsort
SELECT DISTINCT 50 + - col1 - + col0 * - + 84 FROM tab0
----
1229
7337
8197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2451
SELECT * FROM tab0 WHERE NOT + + col1 / CAST( col2 AS SIGNED ) * col0 + - - 3 + + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2451
SELECT * FROM tab0 WHERE NOT + + col1 / CAST ( col2 AS INTEGER ) * col0 + - - 3 + + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * 51 AS col0 FROM tab0
----
-4437
-4947
-765

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 2 - + + col2 + - + col2 + ( + ( - col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2454
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 BETWEEN - col2 AND ( col1 + - CAST( - 54 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 BETWEEN - col2 AND ( col1 + - CAST ( - 54 AS REAL ) )
----

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab2 WHERE NULL = - col0
----

query I rowsort
SELECT ALL 69 * + + col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL - - 60 * + col0 AS col2 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT DISTINCT - + 61 FROM tab0 cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ALL + CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - MIN( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2460
SELECT - MIN ( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL - col1 * + ( - CAST( NULL AS SIGNED ) ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - col1 * + ( - CAST ( NULL AS INTEGER ) ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col2 FROM tab1 WHERE NOT + col2 IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT MAX( ALL - + ( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2464
SELECT MAX ( ALL - + ( - col1 ) ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT 86 DIV - + col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT 86 / - + col2 FROM tab0
----
-1
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab0 WHERE NOT + + col2 IS NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + MIN( + - 52 ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-2467
SELECT + MIN ( + - 52 ) AS col0 FROM tab0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT DISTINCT col1 DIV - + 88 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT col1 / - + 88 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2469
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) = + - col0 + + - col2 + - + col1
----

skipif mysql # not compatible
query III rowsort label-2469
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) = + - col0 + + - col2 + - + col1
----

query I rowsort
SELECT ALL 91 + col1 AS col0 FROM tab0 cor0
----
112
172
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT DISTINCT - + 94 DIV + COUNT( * ) + + ( + 71 ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - + 94 / + COUNT ( * ) + + ( + 71 ) AS col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT - + MIN( - + 1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - + MIN ( - + 1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL + + 70 AS col0 FROM tab2 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - 74 + - col1 - + col1 col0 FROM tab1 AS cor0
----
-153
-169
-259

query I rowsort
SELECT DISTINCT 42 + 9 * + 69 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-54072
-60292
-9288

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + 61
----

query I rowsort
SELECT 91 + + 66 FROM tab0 AS cor0
----
157
157
157

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 BETWEEN NULL AND - ( + col0 ) + - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2480
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col2, col0, - + col0, + col2 - - col1 + + + 99 / - + col2 * - CAST( NULL AS SIGNED ) * 30 / - col0 * + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2480
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col2, col0, - + col0, + col2 - - col1 + + + 99 / - + col2 * - CAST ( NULL AS INTEGER ) * 30 / - col0 * + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT DISTINCT - COUNT( * ), - 77 AS col2 FROM tab1
----
-3
-77

skipif mysql # not compatible
query II rowsort label-2481
SELECT DISTINCT - COUNT ( * ), - 77 AS col2 FROM tab1
----
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL - MAX( ALL + + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - MAX ( ALL + + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT col1 * + col2 DIV - + col2 col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2483
SELECT DISTINCT col1 * + col2 / - + col2 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT AVG ( ALL - col0 ) + - + AVG ( - + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + ( - col0 ) * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT MAX( + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT MAX ( + col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT DISTINCT 54 AS col0, + 48 + + COUNT( * ) FROM tab1 AS cor0
----
54
51

skipif mysql # not compatible
query II rowsort label-2487
SELECT DISTINCT 54 AS col0, + 48 + + COUNT ( * ) FROM tab1 AS cor0
----
54
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col0 * + - col2 + - + col1 * - col2 * - - col2 * + col0
----

query II rowsort
SELECT ALL - col0, + col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-51
-700
-85
-420
-91
-4230

query I rowsort
SELECT - col0 * - - 82 AS col2 FROM tab2 AS cor0
----
-3772
-5248
-6150

query II rowsort
SELECT - + 25, + 43 AS col1 FROM tab1 AS cor0
----
-25
43
-25
43
-25
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT 77 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT 77 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ) + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL + col2 * + + CAST ( NULL AS INTEGER ) + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + + 78 AS col1 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT - + 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + MIN( - - 82 ) AS col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2498
SELECT + MIN ( - - 82 ) AS col1 FROM tab0 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 43 col2 FROM tab1 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2500
SELECT DISTINCT col1 + 74 col0, + col1 + CAST( NULL AS SIGNED ) + col0, + col2 + col1 - + + col0 * col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6fc249e121784cff94207e1a084e97e6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2500
SELECT DISTINCT col1 + 74 col0, + col1 + CAST ( NULL AS INTEGER ) + col0, + col2 + col1 - + + col0 * col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6fc249e121784cff94207e1a084e97e6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT ALL + - COUNT( - col1 ) + + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL + - COUNT ( - col1 ) + + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT ALL 20 AS col1, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - 48 FROM tab2 AS cor0
----
-112
-123
-94

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT ( + + col0 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + COUNT( * ) + + 37 FROM tab2 WHERE ( NOT + 5 IS NOT NULL )
----
37

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( * ) + + 37 FROM tab2 WHERE ( NOT + 5 IS NOT NULL )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - col1 DIV col2 * + - col1 AS col1 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - col1 / col2 * + - col1 AS col1 FROM tab2
----
102
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 49 col2 FROM tab1
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + MAX( - + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2508
SELECT + MAX ( - + col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT + 32 DIV + - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 32 / + - col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + MAX( ALL - col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT + MAX ( ALL - col1 ) col0 FROM tab2
----
-51

query I rowsort
SELECT 69 * - + 94 AS col1 FROM tab1 AS cor0
----
-6486
-6486
-6486

query I rowsort
SELECT DISTINCT col0 + - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 + 88 * 7 col2 FROM tab1 AS cor0
----
668
668
668

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT + + 57 + + MIN( ALL - ( - - col0 ) ) col1 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT DISTINCT + + 57 + + MIN ( ALL - ( - - col0 ) ) col1 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT DISTINCT - ( + 2 ) + - + 31 DIV 67 AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - ( + 2 ) + - + 31 / 67 AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - col0 * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT 59 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT 59 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + + col0 col1 FROM tab2
----
142
160
171

query I rowsort
SELECT ALL + col2 + col2 * 70 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT 2 * + col0 AS col1 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab0 WHERE - 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 84 - col0 AS col0 FROM tab2 WHERE 57 IN ( 81 )
----

query I rowsort
SELECT ALL + 80 * 26 FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT + COUNT( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT + COUNT ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col1 NOT BETWEEN col1 AND + ( - 69 ) / 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - COUNT( * ) + 35 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - COUNT ( * ) + 35 FROM tab0
----
32

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + col1 ) IN ( - 39 * 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + 14 + - COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 14 + - COUNT ( * ) FROM tab0
----
11

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 58 NOT IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT * FROM tab0 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2532
SELECT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL COUNT( DISTINCT ( - col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL COUNT ( DISTINCT ( - col2 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col2 * col2 = NULL
----

query I rowsort
SELECT col1 * + col1 + - col1 * - col1 FROM tab1 WHERE ( 18 + col1 ) > + 42
----
4418

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 BETWEEN - col2 * col0 + - col2 * + 82 AND - ( - col1 )
----
-99

query I rowsort
SELECT 74 AS col1 FROM tab2 WHERE - 10 * col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL MIN( col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL MIN ( col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL + COUNT( * ) - - 12 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + COUNT ( * ) - - 12 FROM tab2
----
15

query I rowsort
SELECT DISTINCT - 86 + 15 FROM tab1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT + 36 * - col2 - - 43 DIV col0 FROM tab0
----
-1690
-3564
-360

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 36 * - col2 - - 43 / col0 FROM tab0
----
-1690
-3564
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT SUM( - 1 ) col2 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND - col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2544
SELECT SUM ( - 1 ) col2 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND - col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - COUNT( * ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2545
SELECT - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 90 * + 41 FROM tab1 AS cor0
----
3690

query I rowsort
SELECT col1 - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 72 )
----

query I rowsort
SELECT ALL + 54 * col2 AS col2 FROM tab2 cor0
----
1242
2160
3132

query I rowsort
SELECT DISTINCT 56 * ( col0 ) AS col2 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT - col0 + col2 * - col2 AS col0 FROM tab1
----
-3566
-4715
-9267

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 49 * col0 ) > NULL
----

query I rowsort
SELECT ALL + 20 + + col1 FROM tab0
----
101
21
41

query I rowsort
SELECT DISTINCT ( + ( - ( 11 ) ) ) + col1 AS col1 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT - 95 DIV COUNT( * ) + 96 AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - 95 / COUNT ( * ) + 96 AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - col2 - - col0 * 85 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT ALL - 2 DIV col1 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - 2 / col1 AS col1 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT col1 / - col1 FROM tab2 AS cor0 WHERE + 59 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 2 * + 89 + - col0 FROM tab0 AS cor0
----
163
81
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - + COUNT( - 76 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2562
SELECT - + COUNT ( - 76 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 + + + col2 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL col2 * - col2 + + 53 AS col1 FROM tab1 WHERE NULL IS NULL
----
-3428
-4571
-9163

query I rowsort
SELECT 95 * + col0 * col1 + - col1 AS col2 FROM tab0
----
115344
173544
9214

query I rowsort
SELECT + col1 + + + 45 AS col1 FROM tab0
----
126
46
66

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col1 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1 - ( + col1 ) * 26
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL - 37 + + + MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - 37 + + + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - + 80 + col0 + col2 FROM tab2 AS cor0
----
-11
24
53

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 94 * + ( + 41 ) * - col1 FROM tab1 AS cor0
----
181138
19270
53956

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL OR - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT SUM( + + 69 ) col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT SUM ( + + 69 ) col0 FROM tab2 AS cor0
----
207

query I rowsort
SELECT + + ( - + 47 ) FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 + col0 ) <> ( NULL )
----

query I rowsort
SELECT - ( col2 ) * ( + col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT - 84 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-84
23
-84
40
-84
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT - col2 DIV + 70 * + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT - col2 / + 70 * + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT SUM( - 25 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT SUM ( - 25 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT DISTINCT 53 + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT 53 + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 88 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 20 FROM tab2 WHERE 65 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2587
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - + 82 ) < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - + 82 ) < CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 * 11 FROM tab1
----
1056
649
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( col0 + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( col0 + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT ALL - 8 DIV - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 8 / - 73 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2592
SELECT MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + ( + 36 ) * - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( + 36 ) * - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
324

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + + + ( - + col0 ) * col0 AND ( + ( 83 ) + + col1 )
----

query I rowsort
SELECT + 38 * - + 65 FROM tab2
----
-2470
-2470
-2470

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) AND 64
----

query I rowsort
SELECT ALL - + 90 + + - col2 FROM tab0 AS cor0
----
-100
-137
-189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT DISTINCT + col2 DIV + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( - 72 ) >= ( + CAST( - col0 AS SIGNED ) )
----
0
99

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + col2 / + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( - 72 ) >= ( + CAST ( - col0 AS INTEGER ) )
----
0
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT + - CAST( + ( - - 6 ) AS SIGNED ) + + - col0 AS col1 FROM tab2 AS cor0
----
-52
-70
-81

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + - CAST ( + ( - - 6 ) AS INTEGER ) + + - col0 AS col1 FROM tab2 AS cor0
----
-52
-70
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 59 )
----
-9

skipif mysql # not compatible
query I rowsort label-2601
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 59 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT - CAST( NULL AS SIGNED ) * CAST( + col0 AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2602
SELECT - CAST ( NULL AS INTEGER ) * CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1 WHERE NOT - + 11 * + - 58 NOT BETWEEN + col1 AND - + col0 * col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + 69 + - 93 col0 FROM tab0
----
15
-24
87
-24
97
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 36 DIV + - 66 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2605
SELECT 36 / + - 66 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ( - COUNT( col2 ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2606
SELECT ( - COUNT ( col2 ) ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + MIN( ALL 58 ) - + COUNT( DISTINCT + 44 ) AS col0 FROM tab2 WHERE NULL IN ( col2 * + 51 + + 25 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT + MIN ( ALL 58 ) - + COUNT ( DISTINCT + 44 ) AS col0 FROM tab2 WHERE NULL IN ( col2 * + 51 + + 25 - - col1 )
----
NULL

query I rowsort
SELECT ( col2 ) - + col2 + - + col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT NULL < 88
----

query I rowsort
SELECT ALL + 30 + + 82 AS col0 FROM tab0 cor0
----
112
112
112

query I rowsort
SELECT DISTINCT + - 9 + col1 FROM tab2 cor0
----
42
58
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * + + 80 col0 FROM tab2
----
5120

query III rowsort
SELECT * FROM tab1 WHERE NOT 79 * - - 29 < ( - 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 22 = - col2 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT COUNT( + 14 ) AS col1, - ( - + 48 ) AS col0 FROM tab1 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-2615
SELECT COUNT ( + 14 ) AS col1, - ( - + 48 ) AS col0 FROM tab1 AS cor0
----
3
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT + COUNT( * ) DIV - 68 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2617
SELECT + COUNT ( * ) / - 68 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT 12 DIV - + col1 AS col1 FROM tab0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT 12 / - + col1 AS col1 FROM tab0
----
-12
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * 45 col1 FROM tab0
----
3330
3330
3330

query II rowsort
SELECT col2 AS col2, - 43 FROM tab0
----
10
-43
47
-43
99
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2622
SELECT CAST( + ( + - col1 ) AS SIGNED ) col2, + 66 AS col1 FROM tab0
----
-1
66
-21
66
-81
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2622
SELECT CAST ( + ( + - col1 ) AS INTEGER ) col2, + 66 AS col1 FROM tab0
----
-1
66
-21
66
-81
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT 60 DIV - COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2623
SELECT 60 / - COUNT ( * ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT DISTINCT + 80 * + + col2 * - 70 FROM tab2
----
-128800
-224000
-324800

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col1 ) + + col0 + col1 - + ( + + col0 ) * - 45 ) IN ( 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT ALL - 47 DIV + 94 * + SUM( ALL + + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 47 / + 94 * + SUM ( ALL + + col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 + - 87 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + - 74 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 99 ) >= + col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * col0 + + col0 + + 17 AS col0 FROM tab0 AS cor0
----
-1183
-1723
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT 92 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + - col1 col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT 5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2636
SELECT + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 + - + 75 * col0 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-4804
-6704
-7274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 56 + + - 23 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - col1 + col1 + - col1 + + - 89 * - + col1 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT 18 + COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2641
SELECT 18 + COUNT ( * ) AS col2 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + + col0 col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col2 - + - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT col2 - + + ( + - col0 ) + + col1 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT - col1 * col2 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT SUM( - CAST( + 86 AS SIGNED ) ) + + + COUNT( * ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-2646
SELECT SUM ( - CAST ( + 86 AS INTEGER ) ) + + + COUNT ( * ) AS col1 FROM tab2
----
-255

query I rowsort
SELECT DISTINCT 87 + - - col2 AS col0 FROM tab1 AS cor0
----
146
155
183

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2648
SELECT - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 / + + 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 12 * + + col2 * 99 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + - CAST( + 5 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif mysql # not compatible
query I rowsort label-2651
SELECT + - CAST ( + 5 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT - ( col2 ) * + - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + MAX( - 48 ) AS col0 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MAX ( - 48 ) AS col0 FROM tab2 cor0
----
-48

query I rowsort
SELECT + col2 * 79 - + 30 FROM tab2 AS cor0
----
1787
3130
4552

query II rowsort
SELECT DISTINCT col0 AS col2, 86 FROM tab2 AS cor0
----
46
86
64
86
75
86

query I rowsort
SELECT ALL + col1 * + - col0 * - col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2657
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) / col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-2657
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) / col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL - col0 DIV + 67 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - col0 / + 67 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 72, col2 / + col0, - - col1 )
----

query I rowsort
SELECT DISTINCT - 57 FROM tab2 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL + 31 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 44 IS NULL
----

query I rowsort
SELECT ALL 84 + + 52 AS col0 FROM tab1 AS cor0
----
136
136
136

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 * + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 + col2 AS col2, 53 FROM tab0 AS cor0
----
196
53
62
53
97
53

query I rowsort
SELECT ALL - col2 + + ( - + col1 ) FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + + SUM( + col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + + SUM ( + col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT + 70 FROM tab2 WHERE NULL NOT IN ( col0, col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL MAX( + - 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL MAX ( + - 85 ) FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT - MIN( - + 46 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - MIN ( - + 46 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT COUNT( * ) + + - MAX( ALL 32 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( * ) + + - MAX ( ALL 32 ) FROM tab1
----
-29

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE + col2 NOT IN ( + 58 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 54 - + col1 + - col0 + - ( + 84 ) * col0 * + + col0 = NULL
----

query I rowsort
SELECT + + col1 + - - 80 + + 77 * + - 16 AS col1 FROM tab2 AS cor0
----
-1075
-1085
-1101

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > + + 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT - 39 + - col1 DIV + 93 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 39 + - col1 / + 93 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0 * + col2
----

query I rowsort
SELECT 72 * - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
4248
4896
6912

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + 31, 40 + + col2 )
----

query I rowsort
SELECT ALL 47 - col2 FROM tab2
----
-11
24
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL MIN ( ALL col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COUNT( * ) - - SUM( + col1 ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COUNT ( * ) - - SUM ( + col1 ) AS col0 FROM tab0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + 98 DIV - col0 - - - col2 - - col2 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 98 / - col0 - - - col2 - - col2 FROM tab0
----
-1
-1
-6

query I rowsort
SELECT ALL - col2 - - col0 * + col0 FROM tab0
----
178
7559
9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - - ( - + COUNT( * ) ) DIV ( 35 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - - ( - + COUNT ( * ) ) / ( 35 ) AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT col2 * + + col0 * + + 35 < col2
----
51
67
77

query I rowsort
SELECT + col1 + - 71 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 70 * 54, + 92, + col0 / + 7, + 75, + col2 )
----

query I rowsort
SELECT col2 * - 54 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT + ( CAST( + + 80 AS SIGNED ) ) FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2692
SELECT + ( CAST ( + + 80 AS INTEGER ) ) FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT - 22 + + 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2694
SELECT SUM( ALL - col2 ) * 9 AS col0, - 27 + + COUNT( ALL + col2 ) AS col0 FROM tab0
----
-1404
-24

skipif mysql # not compatible
query II rowsort label-2694
SELECT SUM ( ALL - col2 ) * 9 AS col0, - 27 + + COUNT ( ALL + col2 ) AS col0 FROM tab0
----
-1404
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - MIN( ALL + 51 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - MIN ( ALL + 51 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - ( + 27 ) FROM tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL - + 4 * - COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - + 4 * - COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + COUNT( * ) * + MIN( ALL - col0 ) AS col0 FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL + MAX( + col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT ALL + MAX ( + col2 ) col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 97 * + col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT ( MAX( DISTINCT + - col2 ) ) * + 20 FROM tab1
----
-1180

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT ( MAX ( DISTINCT + - col2 ) ) * + 20 FROM tab1
----
-1180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 35 * col0 / - col1 * + col1 + + + ( - col2 ) - + - col1 - + col2 + + 52 + - - 75 * + + col0 * 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - ( col0 ) col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - ( - col2 ) * + 26 - CAST( + ( + + col0 ) AS SIGNED ) FROM tab0
----
1207
173
2477

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - ( - col2 ) * + 26 - CAST ( + ( + + col0 ) AS INTEGER ) FROM tab0
----
1207
173
2477

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL SUM( ALL - col2 ) + MIN( DISTINCT col1 ) AS col1 FROM tab1
----
-218

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL SUM ( ALL - col2 ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + MAX( + - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + MAX ( + - 91 ) FROM tab1
----
-91

query I rowsort
SELECT - + col1 + - col2 * + col2 - - 95 AS col1 FROM tab2 AS cor0
----
-1582
-3336
-485

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 98 * - 3 * + ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT COUNT( * ) DIV - + 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT COUNT ( * ) / - + 79 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT - - CAST( - 78 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-101
-118
-136

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - CAST ( - 78 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT 76 - + col2 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + - COUNT( * ) + - 64 AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + - COUNT ( * ) + - 64 AS col0 FROM tab2 AS cor0
----
-67

query II rowsort
SELECT - col0 + col1, col1 * col0 AS col0 FROM tab0 AS cor0
----
-66
1827
-96
97
66
1215

query I rowsort
SELECT - col0 + + ( + - col0 ) + + 30 FROM tab1 AS cor0
----
-140
-152
-72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL AND - 28 > - + col2
----

query I rowsort
SELECT ALL - col2 + 76 AS col0 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT 90 * - + CAST( NULL AS SIGNED ) + + MIN( ALL col2 ) * 86 AS col1 FROM tab0 AS cor0 WHERE + col0 < col0 * col2 / + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT 90 * - + CAST ( NULL AS INTEGER ) + + MIN ( ALL col2 ) * 86 AS col1 FROM tab0 AS cor0 WHERE + col0 < col0 * col2 / + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT 93 + + - COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT 93 + + - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
90
3

query I rowsort
SELECT + 56 + + - 47 * - + 3 AS col0 FROM tab1
----
197
197
197

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT - 74 + - col2 + col0 DIV + col0 - - 44 FROM tab1
----
-125
-88
-97

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 74 + - col2 + col0 / + col0 - - 44 FROM tab1
----
-125
-88
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 13 * - col1 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL 30 * COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL 30 * COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-270

query I rowsort
SELECT DISTINCT 48 * + col0 * - + 36 FROM tab2
----
-110592
-129600
-79488

query II rowsort
SELECT ALL 18, + 57 * - + col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN - - col1 * + 42 - + col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2727
SELECT ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - SUM( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 98 * - 99 + col1 FROM tab1 AS cor0
----
-9655
-9688
-9697

query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - + col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2731
SELECT - + col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT - + SUM( - CAST( + - 47 AS SIGNED ) ) FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2733
SELECT - + SUM ( - CAST ( + - 47 AS INTEGER ) ) FROM tab1 cor0
----
-141

query I rowsort
SELECT - col0 * + col0 * 48 AS col0 FROM tab2 AS cor0
----
-101568
-196608
-270000

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + + SUM( - 63 ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2735
SELECT + + SUM ( - 63 ) AS col2 FROM tab0 AS cor0
----
-189

query II rowsort
SELECT ( 70 ) AS col2, - col2 FROM tab1 AS cor0
----
70
-59
70
-68
70
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 90 + + ( + col1 ) FROM tab1 AS cor0
----
104
137
95

query I rowsort
SELECT - 83 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-182
-293
-3890

query I rowsort
SELECT - - col2 + 41 + + col1 AS col2 FROM tab1 AS cor0
----
105
151
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + ( - - COUNT( * ) ) + + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2741
SELECT + ( - - COUNT ( * ) ) + + + COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - + col2 / + - col0 >= - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 + - 54 IS NULL
----

query I rowsort
SELECT ALL col1 * - ( 43 ) FROM tab2
----
-2193
-2881
-3311

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + 1 * - 16 FROM tab1
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col0 col0 FROM tab2
----
3128
4352
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT + 86 DIV 70 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2748
SELECT + 86 / 70 FROM tab1
----
1
1
1

query I rowsort
SELECT ( + 80 ) AS col2 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2751
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( 90 ) AS col2, MAX( DISTINCT - ( + 69 ) ) FROM tab1, tab2 AS cor0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL - CAST ( NULL AS INTEGER ) * + MIN ( 90 ) AS col2, MAX ( DISTINCT - ( + 69 ) ) FROM tab1, tab2 AS cor0
----
NULL
-69

query I rowsort
SELECT - col1 + + 10 FROM tab1
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + ( + - COUNT( * ) ) + 20 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-2753
SELECT + ( + - COUNT ( * ) ) + 20 FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT - col0 + + - col0 DIV + col1 FROM tab2 AS cor0
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-2754
SELECT - col0 + + - col0 / + col1 FROM tab2 AS cor0
----
-46
-64
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - - COUNT( * ) * - COUNT( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-38

query II rowsort
SELECT DISTINCT - + col2 AS col1, + 74 AS col0 FROM tab2 AS cor0
----
-23
74
-40
74
-58
74

query II rowsort
SELECT DISTINCT + + col1, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * - 4 col1 FROM tab0
----
-364
-364
-364

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( 17 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + MAX( - col0 ) * 36 FROM tab2
----
-1656

skipif mysql # not compatible
query I rowsort label-2760
SELECT + MAX ( - col0 ) * 36 FROM tab2
----
-1656

query I rowsort
SELECT ALL col2 * - ( - 44 ) FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT - 62 + - 33 <> - - 22
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT - 62 + - 33 <> - - 22
----
0

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 57 + + col2 - - 53 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - 78 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 * - 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL 89 + + col2 FROM tab1
----
148
157
185

query I rowsort
SELECT DISTINCT + 92 + - 97 - - col1 * + col1 + - col2 FROM tab1 AS cor0
----
-39
2136
95

query I rowsort
SELECT ALL - col1 * - col1 - - col0 + col1 AS col2 FROM tab2 AS cor0
----
2698
4631
6070

query II rowsort
SELECT ALL col2, 5 AS col0 FROM tab1 cor0
----
59
5
68
5
96
5

query I rowsort
SELECT DISTINCT + + col0 + + 80 FROM tab2 AS cor0
----
126
144
155

onlyif mysql # DIV for integer division: 
query II rowsort label-2772
SELECT + col2 AS col2, - col2 DIV + 91 + - + 43 FROM tab0 AS cor0
----
10
-43
47
-43
99
-44

skipif mysql # not compatible
query II rowsort label-2772
SELECT + col2 AS col2, - col2 / + 91 + - + 43 FROM tab0 AS cor0
----
10
-43
47
-43
99
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 * col1 - - col0 col1, - col2 col2 FROM tab2 AS cor0
----
-3065
-23
-4012
-58
-4633
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - col1 DIV + + 65 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT - col1 / + + 65 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT COUNT ( + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2776
SELECT * FROM tab1 WHERE ( NOT ( 35 / + col0 * CAST( col2 AS SIGNED ) + + 41 ) <= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2776
SELECT * FROM tab1 WHERE ( NOT ( 35 / + col0 * CAST ( col2 AS INTEGER ) + + 41 ) <= + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2777
SELECT ALL 97, - col1 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND CAST( col2 AS SIGNED ) + + CAST( - + ( - col1 ) AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL 97, - col1 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND CAST ( col2 AS INTEGER ) + + CAST ( - + ( - col1 ) AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - 77 + - COUNT( * ) * + - 54 * + COUNT( ALL - col1 ) AS col0 FROM tab0
----
409

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 77 + - COUNT ( * ) * + - 54 * + COUNT ( ALL - col1 ) AS col0 FROM tab0
----
409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + ( + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 - - + col1 + - + col2 * + 84 + + col0 AS col0 FROM tab2 AS cor0
----
-139
-662
-844

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT - col1 - - - col0 + + ( col1 ) DIV - + col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - col1 - - - col0 + + ( col1 ) / - + col0 FROM tab1 AS cor0
----
-138
-65
-90

query II rowsort
SELECT 69 AS col2, + 23 * - 35 * - - col0 AS col1 FROM tab1
----
69
-41055
69
-68425
69
-73255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT - col0 * + + CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-2784
SELECT - col0 * + + CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
-2208
-3072
-3600

query I rowsort
SELECT DISTINCT 73 * col1 * - 91 + - col1 FROM tab2 AS cor0
----
-338844
-445148
-511588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2786
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT - 53 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

query II rowsort
SELECT + 49 * + col1, + 0 AS col0 FROM tab0
----
1029
0
3969
0
49
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col0 / 70 col1 FROM tab2 WHERE NOT + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col0 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - - col1 * + col1 * - col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL - SUM( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - SUM ( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL + 86 * MIN( ALL - + col0 ) + - - 8 + + + 43 FROM tab0 AS cor0
----
-8291

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + 86 * MIN ( ALL - + col0 ) + - - 8 + + + 43 FROM tab0 AS cor0
----
-8291

query III rowsort
SELECT ALL * FROM tab0 WHERE + 65 / col0 + - 50 IN ( + - col1, + 84, + col2 - + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT DISTINCT + - COUNT( * ) + - 1 col2, MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-4
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2797
SELECT DISTINCT + - COUNT ( * ) + - 1 col2, MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-4
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT + 75 + + ( COUNT( + + col0 ) ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + 75 + + ( COUNT ( + + col0 ) ) FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT - col0 + - 40 * + 71 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-247167
-275577
-42615

skipif mysql # not compatible
query I rowsort label-2799
SELECT - col0 + - 40 * + 71 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-247167
-275577
-42615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT + - col2 DIV col0 + - col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT + - col2 / col0 + - col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * col0 + + 83 + + col0 * + - 26 * col2 col0 FROM tab2 AS cor0
----
-110017
-25585
-63917

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2804
SELECT COUNT( * ) / CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2804
SELECT COUNT ( * ) / CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT COUNT( DISTINCT col1 ) + - 54 FROM tab0 WHERE + col1 >= col1 * col0
----
-54

skipif mysql # not compatible
query I rowsort label-2805
SELECT COUNT ( DISTINCT col1 ) + - 54 FROM tab0 WHERE + col1 >= col1 * col0
----
-54

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 * - - col2 AS col2 FROM tab2
----
-23
-1173
-40
-3080
-58
-3886

query I rowsort
SELECT col2 * - + 72 AS col2 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2808
SELECT CAST( NULL AS DECIMAL ) * + ( + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT CAST ( NULL AS REAL ) * + ( + COUNT ( * ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * + - 58 * ( + 25 ) + + col2 AS col0 FROM tab0
----
117497
1549
30460

query I rowsort
SELECT 82 - col2 AS col0 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL - 18 * - + 79 + - COUNT( * ) FROM tab0 AS cor0
----
1419

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - 18 * - + 79 + - COUNT ( * ) FROM tab0 AS cor0
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL - - SUM( DISTINCT 30 ) AS col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - - SUM ( DISTINCT 30 ) AS col1 FROM tab2 cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2 WHERE + + col2 BETWEEN NULL AND + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2 WHERE + + col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 63 * - 82 FROM tab0 AS cor0
----
5166
5166
5166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 + ( + 36 ) col2 FROM tab0
----
10
57
47
117
99
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - col0 AS col0, - col0 FROM tab0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query II rowsort label-2818
SELECT - col0 AS col0, - col0 FROM tab0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT col0 / 41 * ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT col0 / 41 * ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL COUNT( - 11 ) * + 24 - + COUNT( * ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL COUNT ( - 11 ) * + 24 - + COUNT ( * ) AS col2 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + + 87 AS col0 FROM tab1 cor0
----
87

query I rowsort
SELECT ALL 92 * + col1 AS col0 FROM tab0 AS cor0
----
1932
7452
92

query I rowsort
SELECT 26 + ( col2 ) AS col1 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + MAX( ALL 33 ) FROM tab1 WHERE + col0 / - + col1 + - 48 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT + MAX ( ALL 33 ) FROM tab1 WHERE + col0 / - + col1 + - 48 <= NULL
----
NULL

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2827
SELECT + - 33, - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT + - 33, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

query I rowsort
SELECT ALL + col0 * - 51 + - + 8 + col0 FROM tab0 cor0
----
-4358
-4858
-758

query I rowsort
SELECT ALL - + col1 + col1 + + col1 * + ( - - 50 ) * + 24 FROM tab1 AS cor0
----
16800
56400
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( + col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( + col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT + - col1 * col1 + - col0 FROM tab1 cor0
----
-110
-2300
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT + - CAST( + + COUNT( - 50 ) AS SIGNED ) - - + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2832
SELECT + - CAST ( + + COUNT ( - 50 ) AS INTEGER ) - - + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT ALL 26 DIV col2 col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ALL 26 / col2 col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT 91 + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-2834
SELECT 91 + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT - 56 * 96 - - col0 AS col0 FROM tab1
----
-5285
-5291
-5325

query II rowsort
SELECT - col1 AS col2, + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - - ( - - col2 ) + + + col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - + 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT DISTINCT SUM( + CAST( + ( + 19 ) AS SIGNED ) ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT SUM ( + CAST ( + ( + 19 ) AS INTEGER ) ) FROM tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN + 57 - - col0 - 18 * - col1 AND - col2 )
----

query I rowsort
SELECT ALL + 14 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT 59 * - col0 * - + col0 FROM tab1 AS cor0
----
153459
426275
488579

query I rowsort
SELECT DISTINCT - + 19 * col1 FROM tab0 AS cor0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 26 ) AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 93 * - col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 76 * ( - col1 ) FROM tab1
----
-1064
-3572
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL - CAST( - + col1 AS SIGNED ) * - + col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - CAST ( - + col1 AS INTEGER ) * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) + - SUM( col1 ) AS col2 FROM tab0 WHERE NOT - - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) + - SUM ( col1 ) AS col2 FROM tab0 WHERE NOT - - col1 < NULL
----
NULL

query I rowsort
SELECT DISTINCT - 94 * ( + col1 ) FROM tab0
----
-1974
-7614
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + COUNT( * ) - + 36 * - 54 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
1944

skipif mysql # not compatible
query I rowsort label-2854
SELECT + COUNT ( * ) - + 36 * - 54 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
1944

query I rowsort
SELECT ALL col0 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - 63 - + col1 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - 99 FROM tab0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL - 14 + + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2858
SELECT ALL - 14 + + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + 71 ) col1 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT col2 + - 38 FROM tab1
----
21
30
58

query I rowsort
SELECT - 48 + + - 65 AS col2 FROM tab2
----
-113
-113
-113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2862
SELECT - CAST( NULL AS DECIMAL ) * - + 94 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT - CAST ( NULL AS REAL ) * - + 94 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 4 AS col2 FROM tab1 AS cor0
----
-1
-10
-43

query I rowsort
SELECT DISTINCT - 82 * - 17 + + + 33 FROM tab1 AS cor0
----
1427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + + 93 + + + 27 * + 65 col0 FROM tab1 AS cor0
----
1947
1947
1947

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 * + col0 > NULL
----

query I rowsort
SELECT - col0 + + - 22 FROM tab0 AS cor0
----
-109
-119
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( ALL + 76 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( ALL + 76 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 38 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + col0 * + ( - 33 ) FROM tab1 cor0 WHERE col2 * + - col1 + - col1 + CAST( NULL AS SIGNED ) * + 2 NOT IN ( + col1 / col2 )
----

skipif mysql # not compatible
query I rowsort label-2870
SELECT + col0 * + ( - 33 ) FROM tab1 cor0 WHERE col2 * + - col1 + - col1 + CAST ( NULL AS INTEGER ) * + 2 NOT IN ( + col1 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - 68 * - CAST( - + 68 AS SIGNED ) + + COUNT( ALL - col1 ) FROM tab1
----
-4621

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - 68 * - CAST ( - + 68 AS INTEGER ) + + COUNT ( ALL - col1 ) FROM tab1
----
-4621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - - col2 * 95 * + col1, - 21 col1 FROM tab0
----
1735650
-21
5424975
-21
912285
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 >= 30 + - + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COUNT( + 72 ) - 96 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COUNT ( + 72 ) - 96 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT MIN( + ( + col2 ) ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT MIN ( + ( + col2 ) ) AS col2 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT MIN( - col2 ) - 68 FROM tab1
----
-164

skipif mysql # not compatible
query I rowsort label-2877
SELECT MIN ( - col2 ) - 68 FROM tab1
----
-164

query II rowsort
SELECT DISTINCT col0 * 83 AS col2, + 73 FROM tab0
----
1245
73
7221
73
8051
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT COUNT( + 63 ) FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT COUNT ( + 63 ) FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, 47 AS col1 FROM tab0 cor0
----
1
47
21
47
81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 = - col1 / ( + col0 ) / - + 71
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 64 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT MAX( DISTINCT + - col2 ) * + 23 + + + 35 FROM tab2 cor0
----
-494

skipif mysql # not compatible
query I rowsort label-2884
SELECT MAX ( DISTINCT + - col2 ) * + 23 + + + 35 FROM tab2 cor0
----
-494

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT - COUNT( * ), + 25 AS col1 FROM tab0
----
-3
25

skipif mysql # not compatible
query II rowsort label-2885
SELECT - COUNT ( * ), + 25 AS col1 FROM tab0
----
-3
25

query I rowsort
SELECT DISTINCT - col0 * 30 AS col2 FROM tab0
----
-2610
-2910
-450

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col2 * - - 5 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT 92 * - - COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2888
SELECT 92 * - - COUNT ( * ) FROM tab0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT - col2 DIV 21 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2889
SELECT - col2 / 21 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2891
SELECT - 4 AS col1, + col1 DIV + col0 + - 21 AS col1 FROM tab2
----
-4
-20
-4
-20
-4
-21

skipif mysql # not compatible
query II rowsort label-2891
SELECT - 4 AS col1, + col1 / + col0 + - 21 AS col1 FROM tab2
----
-4
-20
-4
-20
-4
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 + col0 - - 89 col1 FROM tab2
----
48
73
89

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN - col2 + + col0 + - col0 * + col2 * col0 - + 84 * + 79 AND + + ( - 66 )
----

query I rowsort
SELECT + 32 AS col2 FROM tab2 AS cor0 WHERE col0 / + 69 + 64 <= + - col2
----

query I rowsort
SELECT ALL 0 * 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col1
----

query I rowsort
SELECT ALL - col2 + + - col1 * - col0 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT - + 90 + - 87 * + col0 FROM tab1 cor0
----
-4527
-7485
-8007

query I rowsort
SELECT - col0 + - col0 * + + col2 AS col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT + 69 * - col0 + + 57 FROM tab0 AS cor0
----
-5946
-6636
-978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL - SUM( ALL col2 ) + + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - SUM ( ALL col2 ) + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 69 FROM tab2 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( * ) + - ( + + 23 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( * ) + - ( + + 23 ) FROM tab1
----
-20

query I rowsort
SELECT - col2 + - col2 + + - col2 + + + 23 FROM tab2
----
-151
-46
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2906
SELECT ALL 29 - 23 DIV - col0, col2 + - 66 * + col2 col2 FROM tab1
----
29
-3835
29
-4420
29
-6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2906
SELECT ALL 29 - 23 / - col0, col2 + - 66 * + col2 col2 FROM tab1
----
29
-3835
29
-4420
29
-6240

query II rowsort
SELECT ALL + - col2, col1 - - + col0 AS col2 FROM tab2 AS cor0
----
-23
97
-40
141
-58
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 28 col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - - MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - - MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT COUNT( * ), 12 AS col2 FROM tab0 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-2913
SELECT COUNT ( * ), 12 AS col2 FROM tab0 AS cor0
----
3
12

query II rowsort
SELECT + 50 AS col0, + 18 AS col1 FROM tab2 AS cor0
----
50
18
50
18
50
18

query I rowsort
SELECT - 75 * 84 + + col1 AS col2 FROM tab2 AS cor0
----
-6223
-6233
-6249

query I rowsort
SELECT ALL + - 75 AS col2 FROM tab1 cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT DISTINCT + 38 AS col1, COUNT( * ) FROM tab1 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-2917
SELECT DISTINCT + 38 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
38
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col1 NOT BETWEEN + 60 * ( - - col1 ) AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 61 / - col1 + - - col2 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT CAST( - 40 AS SIGNED ) FROM tab0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2920
SELECT CAST ( - 40 AS INTEGER ) FROM tab0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2921
SELECT ALL - col1 + + col2 * CAST( NULL AS SIGNED ) col2, 24 FROM tab1 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2921
SELECT ALL - col1 + + col2 * CAST ( NULL AS INTEGER ) col2, 24 FROM tab1 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 72 AS col1, col2 col2 FROM tab1
----
72
59
72
68
72
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT COUNT( * ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
756

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT COUNT ( * ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT ALL 62, - col0 AS col2 FROM tab1
----
62
-51
62
-85
62
-91

query I rowsort
SELECT - 6 FROM tab0 WHERE col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT + 36 + - col0 + + col1 / col0 * + - CAST( NULL AS SIGNED ) * + 13 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 36 + - col0 + + col1 / col0 * + - CAST ( NULL AS INTEGER ) * + 13 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT - ( + 67 ) * + col2 * - col1 - col1 AS col0 FROM tab0 cor0 WHERE ( NOT col1 * + 5 * - + 84 / - - 79 * + col1 >= - col0 * - col1 * - 81 + 19 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2928
SELECT - ( + 67 ) * + col2 * - col1 - col1 AS col0 FROM tab0 cor0 WHERE ( NOT col1 * + 5 * - + 84 / - - 79 * + col1 >= - col0 * - col1 * - 81 + 19 * - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + + 52 AS col0 FROM tab1 AS cor0
----
103
137
143

query I rowsort
SELECT + col1 * - 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT col1 + + - 58 FROM tab0
----
-37
-57
23

query II rowsort
SELECT ALL - col2 * + 20 AS col0, + ( - 0 ) * + - col2 AS col2 FROM tab0
----
-1980
0
-200
0
-940
0

query I rowsort
SELECT DISTINCT col1 * ( + - col2 ) AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT + col2 * + col0, - 9 AS col0 FROM tab2
----
1058
-9
2560
-9
4350
-9

query I rowsort
SELECT + 36 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL 95 + - + COUNT( * ) * - 91 * - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77710

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 95 + - + COUNT ( * ) * - 91 * - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77710

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT + 41 DIV - - col2 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 41 / - - col2 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col2 FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL - 74 * col1 + 65 AS col1, + col2 + - col2 + - 1 AS col0 FROM tab0 AS cor0
----
-1489
-1
-5929
-1
-9
-1

query I rowsort
SELECT DISTINCT - 68 + - + col1 AS col2 FROM tab2 cor0
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT 42 * + ( + COUNT( DISTINCT + col0 ) ) FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 42 * + ( + COUNT ( DISTINCT + col0 ) ) FROM tab1 cor0
----
126

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL + COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL 5 * col0 + col1 + - col2 + col0 AS col2, - col0 FROM tab0 AS cor0
----
124
-15
484
-97
533
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - col2 FROM tab1 WHERE NOT ( NULL ) = CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - col2 FROM tab1 WHERE NOT ( NULL ) = CAST ( col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + - col2 col0 FROM tab2
----
-26
-8
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT CAST( - 80 AS SIGNED ) + col2 + - col1 * 47 * - col1 AS col0 FROM tab0
----
20657
308334
66

skipif mysql # not compatible
query I rowsort label-2947
SELECT CAST ( - 80 AS INTEGER ) + col2 + - col1 * 47 * - col1 AS col0 FROM tab0
----
20657
308334
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 51 col0 FROM tab2 cor0
----
-13
-24
5

query I rowsort
SELECT ALL + + col0 + 66 FROM tab1 AS cor0
----
117
151
157

query II rowsort
SELECT DISTINCT - ( - 78 ), 88 AS col1 FROM tab0 AS cor0
----
78
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 81
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT + CAST( - 69 AS SIGNED ) - - col2 - col2 * - col1 FROM tab0 AS cor0
----
129
151
3785

skipif mysql # not compatible
query I rowsort label-2953
SELECT + CAST ( - 69 AS INTEGER ) - - col2 - col2 * - col1 FROM tab0 AS cor0
----
129
151
3785

query I rowsort
SELECT - ( - col2 ) - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT - COUNT( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2956
SELECT DISTINCT - COUNT ( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL + CAST( - - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT ALL + CAST ( - - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT ( - col1 ) ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT ( - col1 ) ) FROM tab0
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL + 23 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + 23 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 57 * - - COUNT( * ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2961
SELECT 57 * - - COUNT ( * ) FROM tab2 AS cor0
----
171

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT COUNT( 10 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT COUNT ( 10 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT + 23 DIV 43 + 79 * - COUNT( * ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 23 / 43 + 79 * - COUNT ( * ) AS col1 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + 90 DIV 23 + + 12 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 90 / 23 + + 12 FROM tab0
----
15
15
15

query I rowsort
SELECT - 53 + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( 99 * - 43 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT SUM( + 41 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2968
SELECT SUM ( + 41 ) AS col0 FROM tab2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - col1 + - 92 DIV - col1 AS col0 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2969
SELECT - col1 + - 92 / - col1 AS col0 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT - col2 + + ( + col0 ) AS col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 >= ( 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 55 * - col0 FROM tab0
----
-4775
-5236
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT MIN( ALL - 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2973
SELECT MIN ( ALL - 22 ) AS col2 FROM tab2
----
-22

query I rowsort
SELECT ALL 74 * col0 AS col2 FROM tab1
----
3774
6290
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT 45 + COUNT( * ) FROM tab1 WHERE ( 23 ) IN ( col1 / + col2 )
----
45

skipif mysql # not compatible
query I rowsort label-2975
SELECT 45 + COUNT ( * ) FROM tab1 WHERE ( 23 ) IN ( col1 / + col2 )
----
45

query I rowsort
SELECT DISTINCT 80 * + ( 78 ) AS col2 FROM tab1
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT MAX( + 14 ) FROM tab2 WHERE 32 IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-2977
SELECT MAX ( + 14 ) FROM tab2 WHERE 32 IS NOT NULL
----
14

query I rowsort
SELECT DISTINCT col0 + ( col2 ) AS col1 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 14 IN ( - col0 )
----

query I rowsort
SELECT ALL 70 - - col1 FROM tab0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2981
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col1 * 86 FROM tab0
----
1806
6966
86

query I rowsort
SELECT ( - ( col2 ) ) + + 65 FROM tab1
----
-3
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL CAST( + 84 AS SIGNED ) col1 FROM tab2 WHERE ( + col2 ) = 88 + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT ALL CAST ( + 84 AS INTEGER ) col1 FROM tab2 WHERE ( + col2 ) = 88 + col0
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2986
SELECT * FROM tab0 WHERE NOT - CAST( + 59 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2986
SELECT * FROM tab0 WHERE NOT - CAST ( + 59 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - 99 * + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - 99 * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) NOT IN ( 67 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2989
SELECT col2 * CAST( NULL AS DECIMAL ) + col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT col2 * CAST ( NULL AS REAL ) + col0 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT col1 + + CAST( ( col1 ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col1 + + CAST ( ( col1 ) AS INTEGER ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + 21 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 21 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0 WHERE 22 + - col0 < ( col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0 WHERE 22 + - col0 < ( col0 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 - 36 col1 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT + 96 + col2 FROM tab2 AS cor0
----
119
136
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + 22 col2 FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT col0 + ( + 85 ) AS col2 FROM tab2
----
131
149
160

query I rowsort
SELECT + 48 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + 25 * MAX( DISTINCT - col1 - + 46 ) AS col1 FROM tab1 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-2999
SELECT + 25 * MAX ( DISTINCT - col1 - + 46 ) AS col1 FROM tab1 AS cor0
----
-1275

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT ALL - 4 AS col2 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT - 66 AS col0 FROM tab2 cor0 WHERE NOT ( 30 ) BETWEEN NULL AND - col2
----
-66
-66
-66

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE + col1 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3004
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= ( 19 )
----

skipif mysql # not compatible
query III rowsort label-3004
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= ( 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + MIN( - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT ALL + MIN ( - col1 ) col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 71 / col0 ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT 34 FROM tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab0 AS cor0 WHERE NOT 46 * - col2 IN ( col2 )
----
196
62
97

query I rowsort
SELECT 2 FROM tab0 AS cor0 WHERE NOT - col2 * col0 + - ( col2 ) NOT IN ( - 49 * ( - col1 ) + - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - ( - MIN( + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - ( - MIN ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT col1 DIV - - 55 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT col1 / - - 55 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT 66 * - col1 FROM tab1
----
-3102
-330
-924

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT SUM( - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT SUM ( - - col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) NOT BETWEEN + col1 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - SUM( - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3017
SELECT - SUM ( - - col1 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT 1 - + 17 AS col0 FROM tab0 WHERE ( col2 + col2 * + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT DISTINCT ( + + 98 ) FROM tab2
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + col2 ) >= ( + col1 - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT + MAX( ALL + 15 ) DIV 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT + MAX ( ALL + 15 ) / 40 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 30 ) <= 73 + col2
----

query I rowsort
SELECT ALL - col1 + + 50 * 99 FROM tab2 AS cor0
----
4873
4883
4899

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 > + col2 + col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 84 BETWEEN ( + + 46 ) AND + 6 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 78 + + + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
125
177
88

query I rowsort
SELECT DISTINCT - + col1 + col0 + 40 + - 32 * 59 FROM tab0 AS cor0
----
-1752
-1782
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT MIN( col1 ) * + 44 AS col1 FROM tab2 AS cor0
----
2244

skipif mysql # not compatible
query I rowsort label-3032
SELECT MIN ( col1 ) * + 44 AS col1 FROM tab2 AS cor0
----
2244

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 62 * + col1 BETWEEN - col1 * + col1 AND col2
----

query I rowsort
SELECT ( - col0 ) * - col1 * + 27 + + col0 FROM tab2 AS cor0
----
133120
135750
63388

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * col1 + - col1 AS col2 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT col2 * + col2 + - 78 * + + ( + 55 ) AS col0 FROM tab1
----
-809
334
4926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - col1 ) + + col1 col2 FROM tab0 WHERE NOT - col1 + + - col2 NOT BETWEEN col0 - col2 AND - col0 AND NULL > - 27
----

query I rowsort
SELECT DISTINCT 88 FROM tab1 WHERE NOT NULL <> ( - + col0 + - + col2 + - 36 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col0 * + col0 + 79 * + 53 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3041
SELECT + ( - - col2 ), ( + - 60 ) DIV + 30 col1 FROM tab2 AS cor0
----
23
-2
40
-2
58
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3041
SELECT + ( - - col2 ), ( + - 60 ) / + 30 col1 FROM tab2 AS cor0
----
23
-2
40
-2
58
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - + COUNT( * ) + - COUNT( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3042
SELECT - + COUNT ( * ) + - COUNT ( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-6

query I rowsort
SELECT + - 56 * + ( - col1 ) FROM tab1 cor0
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3044
SELECT + + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT - 39 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - 39 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT + SUM( + + 62 ) * - - COUNT( * ) FROM tab0
----
558

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + SUM ( + + 62 ) * - - COUNT ( * ) FROM tab0
----
558

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3047
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col0 col0 FROM tab2 WHERE 19 + + col2 NOT BETWEEN + col0 / CAST( NULL AS SIGNED ) AND ( NULL ) OR NOT 28 / + col1 <= ( + col1 / + 80 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3047
SELECT DISTINCT CAST ( NULL AS REAL ) - + col0 col0 FROM tab2 WHERE 19 + + col2 NOT BETWEEN + col0 / CAST ( NULL AS INTEGER ) AND ( NULL ) OR NOT 28 / + col1 <= ( + col1 / + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL ( - MAX( + + 49 ) ) col2 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3048
SELECT ALL ( - MAX ( + + 49 ) ) col2 FROM tab1
----
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 76
----

query I rowsort
SELECT DISTINCT col1 - + ( col2 ) FROM tab1 AS cor0 WHERE NOT + col2 / - col2 = ( + col0 * + + 12 )
----
-21
-54
-82

query II rowsort
SELECT - col1 AS col1, col1 + - - col2 * - 14 FROM tab0 AS cor0
----
-1
-1385
-21
-119
-81
-577

query I rowsort
SELECT col2 - col1 + - 56 FROM tab0 AS cor0 WHERE NOT ( + 2 ) <= col2
----

query II rowsort
SELECT DISTINCT + 65 * - col0 * + + col2, 97 AS col1 FROM tab1 AS cor0
----
-318240
97
-325975
97
-402220
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3054
SELECT + col0 DIV col0 DIV - 64, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-3054
SELECT + col0 / col0 / - 64, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL + COUNT( * ) * + 18 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + COUNT ( * ) * + 18 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 AS col0, 65 col2 FROM tab0 AS cor0
----
75
65
75
65
75
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - + CAST( - 50 AS SIGNED ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3058
SELECT - + CAST ( - 50 AS INTEGER ) FROM tab1 AS cor0
----
50
50
50

query II rowsort
SELECT ALL + + col2 AS col0, col0 * + - col0 FROM tab1 AS cor0
----
59
-7225
68
-8281
96
-2601

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - col2 * 45 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - - col2
----

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE - col0 * - 46 IS NOT NULL
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL + 80, + CAST( - - ( col0 ) AS SIGNED ) * col2 * + - col2 + + col2 AS col1 FROM tab2
----
80
-102360
80
-24311
80
-252242

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL + 80, + CAST ( - - ( col0 ) AS INTEGER ) * col2 * + - col2 + + col2 AS col1 FROM tab2
----
80
-102360
80
-24311
80
-252242

query II rowsort
SELECT ALL col1, - ( - col1 ) * col0 AS col2 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT - - 60 + - 81 AS col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col1 ) AND 12
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT + COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT - + CAST( NULL AS SIGNED ) * - - 17 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT - + CAST ( NULL AS INTEGER ) * - - 17 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col2 + + col0 FROM tab2
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT 76 + - ( + + col0 ) - col1 DIV + - col1 AS col2 FROM tab1
----
-14
-8
26

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 76 + - ( + + col0 ) - col1 / + - col1 AS col2 FROM tab1
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE + col0 NOT IN ( + - 12 )
----
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE + col0 NOT IN ( + - 12 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - - col0 + col0 + + - col2 + - 89 * + col1 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-108152
-162439
-8538

skipif mysql # not compatible
query I rowsort label-3071
SELECT - - col0 + col0 + + - col2 + - 89 * + col1 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-108152
-162439
-8538

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 55 / - 33 + - + 32 + + col0 - 25 AND 35
----
51
14
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 21 * - 67 ) > ( - col0 * + 18 )
----

query I rowsort
SELECT - + col2 + + + 39 AS col1 FROM tab1 AS cor0
----
-20
-29
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 75 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE 71 * 5 * + col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT col1 * 59 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT + 48 - - col0 AS col1 FROM tab0
----
135
145
63

query I rowsort
SELECT DISTINCT + 45 * - col1 AS col1 FROM tab2
----
-2295
-3015
-3465

query I rowsort
SELECT - 68 * col0 - - col0 AS col2 FROM tab0 AS cor0
----
-1005
-5829
-6499

query I rowsort
SELECT ALL - col2 + - - col0 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT + + MAX( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - MAX( - 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3085
SELECT - MAX ( - 30 ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT + - 17 FROM tab2 WHERE + ( col2 ) * 19 + + col0 + col2 * - 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 >= ( col1 )
----
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL - - col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT COUNT( * ) * + + MIN( DISTINCT + col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT COUNT ( * ) * + + MIN ( DISTINCT + col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - + col1 * - col0 - + col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT ALL - 32 * 95 * 95 * - col0 FROM tab1
----
14728800
24548000
26280800

query I rowsort
SELECT - 53 * + col0 * - col1 AS col2 FROM tab2
----
124338
261184
266325

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col1 + - - ( - col1 ) / - col1
----

query I rowsort
SELECT ALL 1 * + col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT SUM( + - col0 ) * + + SUM( ALL + 37 ) FROM tab2
----
-20535

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT SUM ( + - col0 ) * + + SUM ( ALL + 37 ) FROM tab2
----
-20535

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * 51 + col2 * - col2 / + col0 * - - col1 NOT BETWEEN 92 * - col2 AND NULL
----

query I rowsort
SELECT - 72 + + col0 AS col0 FROM tab0 WHERE NOT ( 22 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 5 AS col0 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE - col0 > - col2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col0 AS col2, - 86 col1 FROM tab1
----
4896
-86
5015
-86
6188
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3103
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT ALL + 76 AS col0, + col1 FROM tab2 cor0
----
76
51
76
67
76
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT + COUNT( * ) col2, - 65 FROM tab2 AS cor0
----
3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT DISTINCT + COUNT ( * ) col2, - 65 FROM tab2 AS cor0
----
3
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT - 56 AS col2, - 18 * - + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-56
-180

skipif mysql # not compatible
query II rowsort label-3106
SELECT - 56 AS col2, - 18 * - + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-56
-180

query II rowsort
SELECT DISTINCT - col1 + + - col1, col2 FROM tab1 AS cor0
----
-10
59
-28
96
-94
68

query I rowsort
SELECT + ( - + 46 ) - + + ( + + col1 ) - - col2 + - col2 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT ALL - + ( - col2 ) * ( + col2 ) * 6 + col0 + - - 57 FROM tab0 AS cor0
----
13326
58960
744

query I rowsort
SELECT DISTINCT - + 0 - 91 * - col1 AS col2 FROM tab1 AS cor0
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 44 col2 FROM tab0 cor0
----
-34
3
55

query I rowsort
SELECT - col0 FROM tab0 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL 59 - - 97 * 95 AS col2 FROM tab2
----
9274
9274
9274

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3114
SELECT DISTINCT + col0 * - CAST( + + col0 AS SIGNED ) - + 52 + + CAST( - - col0 AS SIGNED ) * - col0 / - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + col0 * - CAST ( + + col0 AS INTEGER ) - + 52 + + CAST ( - - col0 AS INTEGER ) * - col0 / - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT ALL - MAX( DISTINCT - - 87 ) AS col0, + 98 col1 FROM tab1 AS cor0
----
-87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT ALL - MAX ( DISTINCT - - 87 ) AS col0, + 98 col1 FROM tab1 AS cor0
----
-87
98

query II rowsort
SELECT ALL - col2 AS col2, - 92 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + + ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + + ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 71 * + - col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT + + ( + - MAX( 15 ) ) col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT DISTINCT + + ( + - MAX ( 15 ) ) col1 FROM tab2 AS cor0
----
-15

query II rowsort
SELECT - 40 * col2 * + + col2 AS col0, 75 * - + ( - - col0 ) - - - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-134560
-5692
-21160
-3501
-64000
-4877

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + - 92 * + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - 92 * + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-279

query II rowsort
SELECT - col2 AS col0, - col1 + + - 52 * + - col2 AS col1 FROM tab1 AS cor0
----
-59
3063
-68
3489
-96
4978

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( - ( + - 86 ) - + + col0, col1 - + - col1 + - - col2 + + 86 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3125
SELECT - + CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3125
SELECT - + CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT + col1 * - col2 + - col1 DIV - col2 FROM tab0 AS cor0
----
-208
-3806
-99

skipif mysql # not compatible
query I rowsort label-3126
SELECT + col1 * - col2 + - col1 / - col2 FROM tab0 AS cor0
----
-208
-3806
-99

query I rowsort
SELECT ALL + ( - col1 ) FROM tab2 WHERE NOT ( - - col0 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL + 78 * + ( - - COUNT( * ) ) * + 40 AS col0 FROM tab2
----
9360

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + 78 * + ( - - COUNT ( * ) ) * + 40 AS col0 FROM tab2
----
9360

query I rowsort
SELECT DISTINCT + - col0 * - ( + col1 ) + + - col2 FROM tab1 WHERE 23 IS NOT NULL
----
366
4209
618

query I rowsort
SELECT + ( ( - + col0 ) ) * + col1 - ( + 1 ) FROM tab0
----
-1216
-1828
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL col2 DIV col1 DIV - col1 AS col2 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL col2 / col1 / - col1 AS col2 FROM tab1
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT ALL + MAX( DISTINCT - col0 ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + MAX ( DISTINCT - col0 ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - col1 col1 FROM tab2 WHERE NOT - col2 BETWEEN ( + col1 + + + ( - 48 ) ) AND 8 + - CAST( + col2 AS SIGNED )
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT - col1 col1 FROM tab2 WHERE NOT - col2 BETWEEN ( + col1 + + + ( - 48 ) ) AND 8 + - CAST ( + col2 AS INTEGER )
----
-51
-67
-77

query I rowsort
SELECT ALL - + col2 * + col2 + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT + col0 * - ( + + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col0 AND - col2 / - + col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col0 AND - col2 / - + col1 * - col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + - COUNT( * ) + + MAX( DISTINCT 55 ) FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + - COUNT ( * ) + + MAX ( DISTINCT 55 ) FROM tab1 cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT col2 + - + 31 DIV + - col1 + - col1 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3139
SELECT col2 + - + 31 / + - col1 + - col1 AS col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + MAX( ALL 6 ) + + + COUNT( * ) col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3140
SELECT + MAX ( ALL 6 ) + + + COUNT ( * ) col0 FROM tab2 cor0
----
9

query I rowsort
SELECT ALL - - 7 + - + col0 * + + 62 + + 99 FROM tab2 AS cor0
----
-2746
-3862
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + SUM( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + SUM ( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + 48 + - col0 FROM tab1 AS cor0
----
-3
-37
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3144
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 59 ) FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT 75 * + col1 + + 46 * + col0 FROM tab0 AS cor0
----
4537
5577
6765

query II rowsort
SELECT ALL 96 - - col1 + + 71 AS col1, + col2 FROM tab1 cor0
----
172
59
181
96
214
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + 45 - SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + 45 - SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT COUNT( * ) - + + 19 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT COUNT ( * ) - + + 19 FROM tab0
----
-16

query I rowsort
SELECT + 6 * - col1 - + + col2 AS col0 FROM tab2
----
-329
-460
-502

query I rowsort
SELECT 58 - + ( + col0 ) AS col1 FROM tab2
----
-17
-6
12

query I rowsort
SELECT ALL col0 - col2 - col0 * 5 FROM tab0
----
-107
-358
-487

query I rowsort
SELECT + 65 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 12 AS col0 FROM tab2
----
612
804
924

query I rowsort
SELECT + ( 14 ) * - - 89 FROM tab1
----
1246
1246
1246

query II rowsort
SELECT - - 54 AS col2, + 46 FROM tab0 AS cor0
----
54
46
54
46
54
46

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL - + CAST( - - COUNT( * ) AS SIGNED ) * + 52 AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - + CAST ( - - COUNT ( * ) AS INTEGER ) * + 52 AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT - CAST( - MIN( ALL - - 44 ) AS SIGNED ) - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-3162
SELECT - CAST ( - MIN ( ALL - - 44 ) AS INTEGER ) - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( col0 AS SIGNED ) + + col1 * + - col2 AND 39
----

skipif mysql # not compatible
query III rowsort label-3163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) + + col1 * + - col2 AND 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT + CAST( 48 AS SIGNED ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + CAST ( 48 AS INTEGER ) FROM tab2 cor0
----
48

query I rowsort
SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - SUM( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3166
SELECT - SUM ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - - col1 * - - ( - 85 ) * col1 * + col2 * + + 52 AS col0 FROM tab1 AS cor0
----
-6519500
-663937040
-83166720

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT MIN( 0 ) * MIN( DISTINCT col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT MIN ( 0 ) * MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * + 98 AS col0 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT ALL - 36 AS col2 FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT DISTINCT - ( - - 51 ) + - col1 FROM tab2 AS cor0
----
-102
-118
-128

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> + 53
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + col0 * - col2 / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( - col2 * - 58 * - col2 ) IN ( col1, col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( - col2 * - 58 * - col2 ) IN ( col1, col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT ALL + MAX( col1 ) AS col2, - COUNT( * ) * + - 52 FROM tab1
----
47
156

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL + MAX ( col1 ) AS col2, - COUNT ( * ) * + - 52 FROM tab1
----
47
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 99 NOT IN ( col2, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 99 NOT IN ( col2, CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 15 + - col2 * - col0 AS col2 FROM tab0 cor0
----
720
885
9618

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT - 86 DIV - - col1 + + + 43 - 63 + + + col0 FROM tab2 AS cor0
----
25
43
54

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 86 / - - col1 + + + 43 - 63 + + + col0 FROM tab2 AS cor0
----
25
43
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 + - col0 * + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT + col0 FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) * - col0 <> + + col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3180
SELECT + col0 FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) * - col0 <> + + col1
----
51
85
91

query I rowsort
SELECT + 93 + - 72 AS col0 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
66

query I rowsort
SELECT ALL 54 + - + 54 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3185
SELECT ALL + 47 + - col1 AS col0 FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + 47 + - col1 AS col0 FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT - + ( COUNT( * ) ) * COUNT( - - 35 ) * + COUNT( * ) + COUNT( * ) * + 98 * + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT - + ( COUNT ( * ) ) * COUNT ( - - 35 ) * + COUNT ( * ) + COUNT ( * ) * + 98 * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT 38 DIV + col0 * - - col0 * + 38 * + - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT 38 / + col0 * - - col0 * + 38 * + - col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, - 9 - col1 AS col0 FROM tab0
----
15
-90
87
-30
97
-10

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT + SUM( ALL - 76 ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + SUM ( ALL - 76 ) FROM tab1 AS cor0
----
-228

query I rowsort
SELECT DISTINCT - col2 + + 5 * + col2 AS col0 FROM tab1 AS cor0
----
236
272
384

query I rowsort
SELECT - col2 + - 95 AS col2 FROM tab2 AS cor0
----
-118
-135
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - COUNT( * ) + - 78 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3193
SELECT - COUNT ( * ) + - 78 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 64 * col1 / + col0 - + + ( - - col2 ) + col0 - - + col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - ( - - CAST( - col1 AS SIGNED ) ) * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - ( - - CAST ( - col1 AS INTEGER ) ) * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * - 96 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 2 * + col1 >= - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3198
SELECT CAST( NULL AS DECIMAL ) / + AVG ( DISTINCT col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT CAST ( NULL AS REAL ) / + AVG ( DISTINCT col0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 + - + col2 - - 29 * + - col2 AS col1 FROM tab2
----
-1264
-1815
-736

query I rowsort
SELECT col1 + 34 + - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 4 + col1 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT DISTINCT + - ( - COUNT( - col1 ) ) AS col2, + COUNT( * ) + - - COUNT( * ) col1 FROM tab1 AS cor0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3203
SELECT DISTINCT + - ( - COUNT ( - col1 ) ) AS col2, + COUNT ( * ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
3
6

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT col0 * + col0 - - col2 + - + 35 FROM tab1 AS cor0
----
2662
7249
8314

query II rowsort
SELECT ALL - 90, col0 * + - col0 FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT - 30 + col0 FROM tab0
----
-15
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + 60 * - 28 + COUNT( * ) AS col1 FROM tab0
----
-1677

skipif mysql # not compatible
query I rowsort label-3208
SELECT + 60 * - 28 + COUNT ( * ) AS col1 FROM tab0
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - 28 + + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - 28 + + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ( + + 83 ) FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT ALL + COUNT( + 68 ) DIV 13 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + COUNT ( + 68 ) / 13 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( * ) * - 37 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( * ) * - 37 FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT ALL COUNT( * ) DIV 2 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL COUNT ( * ) / 2 AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT + + 55 AS col1 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL - CAST( NULL AS SIGNED ) / AVG ( ALL + - 99 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - CAST ( NULL AS INTEGER ) / AVG ( ALL + - 99 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2 cor0
----
82
82
82

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - - col2 + + - col2 + - + col0 BETWEEN 37 AND + - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * col2 + col0 - - - col0 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT + 1 * + 94 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query I rowsort
SELECT ALL col0 + - + 71 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3223
SELECT ALL 10 AS col2, col1 DIV 76 - - col2 FROM tab1 cor0
----
10
59
10
68
10
96

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL 10 AS col2, col1 / 76 - - col2 FROM tab1 cor0
----
10
59
10
68
10
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3224
SELECT - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + + ( 81 ) FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL COUNT( * ) + SUM( + col0 ) AS col1 FROM tab1 cor0
----
230

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL COUNT ( * ) + SUM ( + col0 ) AS col1 FROM tab1 cor0
----
230

query II rowsort
SELECT ALL col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - COUNT( + 90 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - COUNT ( + 90 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT - 67 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 67 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + col2 - + - 99 * - col1 AS col0 FROM tab2
----
-5021
-6624
-7586

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 86 * - col2 + - - col2 AS col2 FROM tab2
----
-1955
-3400
-4930

query I rowsort
SELECT DISTINCT col2 + - 49 FROM tab0
----
-2
-39
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT - col1 DIV - col0 + - col0 * - col0 + + col1 col0 FROM tab2 AS cor0
----
2168
4174
5692

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3234
SELECT DISTINCT - col1 / - col0 + - col0 * - col0 + + col1 col0 FROM tab2 AS cor0
----
2168
4174
5692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT + AVG ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT + AVG ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3236
SELECT * FROM tab1 AS cor0 WHERE 24 + + CAST( NULL AS SIGNED ) + + - 29 * + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3236
SELECT * FROM tab1 AS cor0 WHERE 24 + + CAST ( NULL AS INTEGER ) + + - 29 * + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 52 - + 71 + + col0 AS col2 FROM tab0
----
-108
-26
-36

query III rowsort
SELECT * FROM tab1 WHERE ( ( - 13 ) ) <> + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( + + 40 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT DISTINCT - COUNT( * ) * 52 AS col1, + 22 col0 FROM tab0 AS cor0
----
-156
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3242
SELECT DISTINCT - COUNT ( * ) * 52 AS col1, + 22 col0 FROM tab0 AS cor0
----
-156
22

query I rowsort
SELECT + 69 * - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

query I rowsort
SELECT - + 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3245
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + - 46 * + SUM( - + 57 ) FROM tab0 AS cor0
----
7866

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + - 46 * + SUM ( - + 57 ) FROM tab0 AS cor0
----
7866

query I rowsort
SELECT col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT ALL + col0 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL + col0 / - + col2 AS col0 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT ALL + col1 AS col1, 76 * - col0 FROM tab1
----
14
-3876
47
-6916
5
-6460

query I rowsort
SELECT 67 * - 12 FROM tab0 AS cor0
----
-804
-804
-804

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - 93 * + + col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - 91 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3255
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - 91 ) IS NOT NULL
----
0

query II rowsort
SELECT - col0 AS col0, + 29 + + - ( - + col0 ) * + - col2 AS col2 FROM tab0 AS cor0
----
-15
-676
-87
-841
-97
-9574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3257
SELECT col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT - 59 + - col1 AS col2, col2 DIV 9 FROM tab2 AS cor0
----
-110
2
-126
6
-136
4

skipif mysql # not compatible
query II rowsort label-3258
SELECT - 59 + - col1 AS col2, col2 / 9 FROM tab2 AS cor0
----
-110
2
-126
6
-136
4

query I rowsort
SELECT - 27 + - 22 * 24 FROM tab1 AS cor0
----
-555
-555
-555

query I rowsort
SELECT col2 + + 11 + + col2 * + col1 FROM tab2 AS cor0
----
1207
3131
3955

query I rowsort
SELECT ALL + 59 + 82 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT ALL - 44 + + col1 AS col0 FROM tab2 AS cor0
----
23
33
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 / - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + + 46 ) + - - col2 - - + col1 * ( + + col0 ) AS col0 FROM tab2 AS cor0
----
2415
5014
5129

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ( - COUNT( * ) ) FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3266
SELECT ( - COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT + 17 * + ( - col2 ) FROM tab2
----
-391
-680
-986

query I rowsort
SELECT col2 - - col2 * + col0 * - - 59 FROM tab2
----
151080
256708
62445

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( * ) - COUNT( * ) + - COUNT( * ) * - COUNT( * ) * + 77 + 32 FROM tab0 AS cor0
----
719

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) * + 77 + 32 FROM tab0 AS cor0
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL 81 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL 81 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL - COUNT( * ) * - + MAX( + col0 ) * MAX( ALL + col2 ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
13053

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - COUNT ( * ) * - + MAX ( + col0 ) * MAX ( ALL + col2 ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
13053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT + ( - 58 ) - - CAST( NULL AS SIGNED ) - 90 * - ( - + col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + ( - 58 ) - - CAST ( NULL AS INTEGER ) - 90 * - ( - + col2 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query II rowsort
SELECT + + ( + + 27 ) + + col1 AS col2, + col2 + + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 - col0 IS NULL
----
32
144
41
147
74
159

query I rowsort
SELECT + col1 * - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + - col2 * - + col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query II rowsort
SELECT ALL - col0 AS col1, + 1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT + + 46 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 31 * - 11 = + 95 + col1 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT + + 46 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 31 * - 11 = + 95 + col1 + + col2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 = - col2 - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + - 41 * CAST( - col1 AS SIGNED ) + + col0 AS col0 FROM tab2 cor0
----
2137
2822
3221

skipif mysql # not compatible
query I rowsort label-3281
SELECT + - 41 * CAST ( - col1 AS INTEGER ) + + col0 AS col0 FROM tab2 cor0
----
2137
2822
3221

query I rowsort
SELECT ALL - col0 * 97 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col1 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3284
SELECT ALL + CAST( - 88 AS SIGNED ) DIV 41 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + CAST ( - 88 AS INTEGER ) / 41 AS col2 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT DISTINCT col1 * - col0 AS col1, col0 FROM tab1
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT COUNT( ALL + + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( ALL + + col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col2 * - - col0 * - 81 * - 18 + col2, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1027843
15
-1268450
87
-14001075
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col2 FROM tab0 WHERE + + 7 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col2 FROM tab0 WHERE + + 7 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3290
SELECT DISTINCT * FROM tab2 WHERE + CAST( - - col1 AS SIGNED ) * + col2 + - col2 * + + ( + - 85 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3290
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - - col1 AS INTEGER ) * + col2 + - col2 * + + ( + - 85 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL + col2 + - col2 DIV col0 + - + col1 AS col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col2 + - col2 / col0 + - + col1 AS col0 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT DISTINCT 42 * col1, 72 AS col0 FROM tab2 AS cor0
----
2142
72
2814
72
3234
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( * ) * ( - - ( + 69 ) ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( * ) * ( - - ( + 69 ) ) FROM tab2
----
207

query I rowsort
SELECT ALL col2 * + + 43 FROM tab0
----
2021
4257
430

query I rowsort
SELECT + 5 AS col1 FROM tab1 WHERE NULL IS NULL
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3296
SELECT DISTINCT - col2 - - CAST( NULL AS DECIMAL ) + col2 + - - col2 * + 0 FROM tab1 WHERE 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - col2 - - CAST ( NULL AS REAL ) + col2 + - - col2 * + 0 FROM tab1 WHERE 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT ALL - col0 DIV + + 86 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - col0 / + + 86 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 8 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + 76 + SUM( ALL - col2 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + 76 + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - + COUNT( DISTINCT - col1 ) + + - 33 + - MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - + COUNT ( DISTINCT - col1 ) + + - 33 + - MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-132

query I rowsort
SELECT + 88 + + 89 + col2 AS col1 FROM tab1 AS cor0
----
236
245
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + MAX( DISTINCT - col2 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3303
SELECT + MAX ( DISTINCT - col2 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ALL - + 87 - - + col0 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT - col1 + - col0 - 93 * - + col0 - + CAST( NULL AS SIGNED ) * - 62 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-3305
SELECT - col1 + - col0 - 93 * - + col0 - + CAST ( NULL AS INTEGER ) * - 62 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3306
SELECT DISTINCT + col0, CAST( + col0 AS SIGNED ) - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3306
SELECT DISTINCT + col0, CAST ( + col0 AS INTEGER ) - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT - col1 + - 72 * - 4 AS col0 FROM tab0
----
207
267
287

query I rowsort
SELECT ALL + col1 - - 16 * col0 AS col1 FROM tab1
----
1365
1503
830

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( col0 + + col2 * col2 / - col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 82 * + - col2 * - col2 FROM tab1
----
285442
379168
755712

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT DISTINCT + ( - 12 ), ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-3312
SELECT DISTINCT + ( - 12 ), ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-12
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + 47 * + - MIN( + col0 ) AS col2 FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 47 * + - MIN ( + col0 ) AS col2 FROM tab1
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3315
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3315
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT col1 col2 FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3316
SELECT col1 col2 FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - + ( - - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + MIN( ALL 62 ) + + COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3319
SELECT + MIN ( ALL 62 ) + + COUNT ( * ) FROM tab0 AS cor0
----
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - MAX( + - col0 ) * + + COUNT( * ) + - + 39 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - MAX ( + - col0 ) * + + COUNT ( * ) + - + 39 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT SUM( + col1 ) + + COUNT( * ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-3322
SELECT SUM ( + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
69

query I rowsort
SELECT ALL - + col0 * + col0 * + col2 + + 78 * col2 FROM tab0 AS cor0
----
-6909
-74910
-923769

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 11 AND col2 * + col0 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT DISTINCT + - col1 DIV - col0 - + 77 * - + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + - col1 / - col0 - + 77 * - + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT 4 * + SUM( - col0 ) + - COUNT( * ) + 82 * COUNT( * ) AS col1 FROM tab0
----
-553

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 4 * + SUM ( - col0 ) + - COUNT ( * ) + 82 * COUNT ( * ) AS col1 FROM tab0
----
-553

query III rowsort
SELECT * FROM tab1 WHERE + + 79 - col0 * 49 * + - col1 + - 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT DISTINCT COUNT( * ) DIV - + COUNT( ( col1 ) ) - COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT COUNT ( * ) / - + COUNT ( ( col1 ) ) - COUNT ( * ) FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT COUNT( * ) - + - COUNT( * ) - 98 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3329
SELECT COUNT ( * ) - + - COUNT ( * ) - 98 FROM tab2
----
-92

query I rowsort
SELECT - - 44 AS col1 FROM tab2 WHERE + + 54 * col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ( COUNT( * ) ) + + MIN( + - col1 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3331
SELECT ( COUNT ( * ) ) + + MIN ( + - col1 ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + 95 >= NULL
----

query I rowsort
SELECT DISTINCT + + 72 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT + - 23 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / col1 * 11 * col2 * - 52 BETWEEN + + col1 AND + 16 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3337
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - CAST( + ( - ( - col2 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3337
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - CAST ( + ( - ( - col2 ) ) AS INTEGER )
----

query I rowsort
SELECT - col1 * - + 59 AS col2 FROM tab1
----
2773
295
826

query I rowsort
SELECT ( - 66 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col1 FROM tab1
----
2277
292
84

query I rowsort
SELECT ALL - 85 + - col1 FROM tab1 AS cor0
----
-132
-90
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 IS NULL
----

query I rowsort
SELECT + col1 * - - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL + + 25 + + - col2 FROM tab1 cor0
----
-34
-43
-71

query I rowsort
SELECT - 4 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
47
63
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT MIN( + col1 ), MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3347
SELECT MIN ( + col1 ), MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + 29 * - 92 FROM tab2
----
-2668
-2668
-2668

query II rowsort
SELECT DISTINCT 3 AS col2, 68 AS col0 FROM tab2
----
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL 96 * + + COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL 96 * + + COUNT ( * ) AS col1 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col1 * + + 23 * - 93, - col0, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col1 * + + 23 * - 93, - col0, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - ( + + COUNT( - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3354
SELECT - ( + + COUNT ( - col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 + - col2 * + 53 FROM tab0
----
-2476
-443
-5150

query I rowsort
SELECT ALL ( + col1 ) + + - col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - - col1 * ( 37 ) + - col1, + col2 FROM tab1 AS cor0
----
1692
68
180
59
504
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 IS NULL AND ( NULL ) = - 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 - - col2 col2, - 29 FROM tab2 AS cor0
----
-17
-29
-23
-29
-24
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 71 * col2 * - col2 + col0 col1, col1 AS col2 FROM tab1 AS cor0
----
-247066
5
-328213
47
-654285
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT + 41 DIV 90 + + 6 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 41 / 90 + + 6 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL 21 - + + col2 FROM tab1
----
-38
-47
-75

query I rowsort
SELECT + 57 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 28 - + col1 FROM tab1
----
-33
-42
-75

query I rowsort
SELECT DISTINCT col2 * + 37 * + + 78 FROM tab2
----
115440
167388
66378

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + 1 - MIN( + 42 ) AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + 1 - MIN ( + 42 ) AS col0 FROM tab2
----
-41

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE - 71 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 32 AS col1 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 68
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + COUNT( 27 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + COUNT ( 27 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT 40 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 40 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT + SUM( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3373
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

query II rowsort
SELECT 87 AS col2, - ( + 52 ) + + col1 + - col2 * - 98 FROM tab2 AS cor0
----
87
2253
87
3945
87
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - SUM( - + 83 ) AS col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - SUM ( - + 83 ) AS col0 FROM tab0 AS cor0
----
249

query I rowsort
SELECT - + col1 + - 64 FROM tab0 AS cor0
----
-145
-65
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + 54 + + + MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 54 + + + MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - MIN( - - col0 ) + - 55 AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3378
SELECT - MIN ( - - col0 ) + - 55 AS col1 FROM tab0 AS cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - 52 ) + - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT - CAST( - col0 AS SIGNED ) + - ( + 59 ) FROM tab0 cor0
----
-44
28
38

skipif mysql # not compatible
query I rowsort label-3380
SELECT - CAST ( - col0 AS INTEGER ) + - ( + 59 ) FROM tab0 cor0
----
-44
28
38

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ( + MIN( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( + MIN ( + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT COUNT( * ) * 72 + - 10 AS col0 FROM tab1 AS cor0
----
206

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT COUNT ( * ) * 72 + - 10 AS col0 FROM tab1 AS cor0
----
206

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT 54 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT 54 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3386
SELECT - ( + col2 ) DIV - 27 + ( - col0 ), - CAST( - + 96 AS SIGNED ) + 91 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-14
1402
-87
2014
-94
284

skipif mysql # not compatible
query II rowsort label-3386
SELECT - ( + col2 ) / - 27 + ( - col0 ), - CAST ( - + 96 AS INTEGER ) + 91 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-14
1402
-87
2014
-94
284

query I rowsort
SELECT + col2 * - 93 AS col2 FROM tab1 cor0
----
-5487
-6324
-8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + COUNT( * ) + 80 + + MIN( ALL - CAST( NULL AS SIGNED ) ) * 72 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + COUNT ( * ) + 80 + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 72 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - 48 - col0 + - 99 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-102
-96
-136
-59
-142
-68

query I rowsort
SELECT DISTINCT + 41 + - ( - 76 ) FROM tab1 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL COUNT( ALL col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL COUNT ( ALL col2 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 54 FROM tab2
----
51
54
67
54
77
54

query II rowsort
SELECT + col1, - 42 FROM tab1
----
14
-42
47
-42
5
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - 68 * + + COUNT( + ( col2 ) ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - 68 * + + COUNT ( + ( col2 ) ) FROM tab1
----
-204

query I rowsort
SELECT DISTINCT + col1 * 42 AS col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL 33 * - 88 * - col2 AS col1 FROM tab0
----
136488
287496
29040

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + 41 * - - COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + 41 * - - COUNT ( * ) FROM tab0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 45 * + col1 col1 FROM tab2
----
117045
202005
266805

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL - 8 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - 8 / 63 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 56 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT + + 98 * + - col2 * + CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
341138
453152
903168

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + + 98 * + - col2 * + CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
341138
453152
903168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT CAST( - 1 AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3402
SELECT CAST ( - 1 AS INTEGER ) FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 56 + - 37 AS col1, - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
19
-46
19
-64
19
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT - 18 * + - 43 AS col1, - COUNT( * ) AS col0 FROM tab0 cor0
----
774
-3

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 18 * + - 43 AS col1, - COUNT ( * ) AS col0 FROM tab0 cor0
----
774
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 23 * col2 AS col1 FROM tab0 AS cor0
----
1081
2277
230

query II rowsort
SELECT + col1 * + 96 AS col2, col0 * - col1 FROM tab0 AS cor0
----
2016
-1827
7776
-1215
96
-97

query I rowsort
SELECT ALL 70 * - + col2 AS col1 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT + ( - 87 ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT - col2 + col2 + + col1 + + col0 * - + 98 AS col0 FROM tab0
----
-1389
-8505
-9505

query II rowsort
SELECT ALL 52 AS col1, col1 + + - col0 AS col2 FROM tab1
----
52
-37
52
-44
52
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT CAST( + - 63 AS SIGNED ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT CAST ( + - 63 AS INTEGER ) AS col2 FROM tab2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT + + col0 DIV col0 AS col0 FROM tab1 WHERE + + 61 NOT BETWEEN NULL AND + - col0 + + col2
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + + col0 / col0 AS col0 FROM tab1 WHERE + + 61 NOT BETWEEN NULL AND + - col0 + + col2
----
1

query I rowsort
SELECT - 83 + - col1 AS col2 FROM tab2
----
-134
-150
-160

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT DISTINCT 49 DIV col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT 49 / col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + MAX( + 82 ) + + 29 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3420
SELECT + MAX ( + 82 ) + + 29 FROM tab2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > ( 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 38 ) AS col0 FROM tab0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL 84 DIV col1 + - 59 * col2 FROM tab0
----
-2772
-5757
-586

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL 84 / col1 + - 59 * col2 FROM tab0
----
-2772
-5757
-586

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-3426
SELECT - SUM( - col1 ) FROM tab0 WHERE - col1 + 85 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT - SUM ( - col1 ) FROM tab0 WHERE - col1 + 85 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT col1 DIV - 19 col0 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3427
SELECT col1 / - 19 col0 FROM tab0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT MIN( col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT DISTINCT MIN ( col0 ) col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + MIN( - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + MIN ( - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 59 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IN ( col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3434
SELECT 56 + 78 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) <= ( - CAST( NULL AS DECIMAL ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-3434
SELECT 56 + 78 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) <= ( - CAST ( NULL AS REAL ) * col1 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE 48 + col1 * + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ( + 8 ) * 44 + + col0 FROM tab1
----
403
437
443

query I rowsort
SELECT col2 + - ( - 49 + + 88 ) * 96 AS col0 FROM tab0
----
-3645
-3697
-3734

query I rowsort
SELECT - col2 FROM tab0 WHERE - col0 * col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - ( - col0 ) )
----

query I rowsort
SELECT - col1 * 86 FROM tab1 AS cor0
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) * + 60 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) * + 60 FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 NOT BETWEEN col2 * + col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT - 97 * - MAX( ALL + 67 ) AS col2 FROM tab2 AS cor0
----
6499

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - 97 * - MAX ( ALL + 67 ) AS col2 FROM tab2 AS cor0
----
6499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT DISTINCT * FROM tab1 WHERE + CAST( - col0 AS SIGNED ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3446
SELECT DISTINCT * FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT ALL - 59 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - 59 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3452
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * CAST( NULL AS DECIMAL ) ) > ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3452
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * CAST ( NULL AS REAL ) ) > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - - COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - - COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3455
SELECT - COUNT( 69 ) * CAST( NULL AS SIGNED ) + - 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT - COUNT ( 69 ) * CAST ( NULL AS INTEGER ) + - 94 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

query I rowsort
SELECT - col1 + 44 AS col2 FROM tab0 AS cor0
----
-37
23
43

query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab2 cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL ( col1 ) * 51 FROM tab0 cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT - 41 DIV - col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - 41 / - col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL + col0 * col1 + + 99 AS col0 FROM tab2
----
2445
5027
5124

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + 3 FROM tab2 WHERE NULL IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT 63 * MIN( ALL ( - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-6111

skipif mysql # not compatible
query I rowsort label-3465
SELECT 63 * MIN ( ALL ( - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-6111

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + col2 DIV - 69 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + col2 / - 69 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT col2 DIV - 16 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3467
SELECT col2 / - 16 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT MAX( 20 ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT MAX ( 20 ) AS col1 FROM tab0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3469
SELECT MAX( ALL col1 ) DIV COUNT( col1 ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3469
SELECT MAX ( ALL col1 ) / COUNT ( col1 ) AS col2 FROM tab0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3470
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 56 AS col1 FROM tab2 WHERE ( NULL ) <= ( ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT CAST ( NULL AS REAL ) - + 56 AS col1 FROM tab2 WHERE ( NULL ) <= ( ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT - col1 DIV - + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3471
SELECT - col1 / - + col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT - col1 * + + 29 * - col2 + - col0 FROM tab0 cor0
----
110388
2774
6003

query I rowsort
SELECT ALL + - col2 + - col0 * - col0 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + MIN( + col0 ) + + 25 AS col0 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + MIN ( + col0 ) + + 25 AS col0 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL > ( col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL > ( col2 )
----
0

query I rowsort
SELECT col0 * + 51 + - col1 FROM tab1
----
2587
4330
4594

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + 25 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 61 AS col1 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT ALL col0 * - - col0 + 12 * - col2 AS col0 FROM tab2 AS cor0
----
1840
3616
4929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT + + 85 DIV MAX( + col0 ) - MIN( DISTINCT col2 - 58 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3482
SELECT + + 85 / MAX ( + col0 ) - MIN ( DISTINCT col2 - 58 ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT ( 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT 44 FROM tab0 cor0 WHERE NOT + col2 * - col1 >= + col1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 IS NULL OR NOT + col1 BETWEEN col2 AND col0
----
15
81
47
97
1
99

query II rowsort
SELECT ALL + 20 AS col2, col2 AS col0 FROM tab2 AS cor0
----
20
23
20
40
20
58

query II rowsort
SELECT ALL - col2, ( 4 ) * col0 AS col2 FROM tab0 cor0
----
-10
348
-47
60
-99
388

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 75 FROM tab1 WHERE NOT + + col1 < + - col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + MAX( 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3491
SELECT + MAX ( 91 ) FROM tab0
----
91

query I rowsort
SELECT col0 + + 89 AS col2 FROM tab1 WHERE NOT ( col0 * - + col0 ) IS NULL
----
140
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col2 AS col0, - col1 col2 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + MAX( - + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3494
SELECT + MAX ( - + col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3495
SELECT DISTINCT * FROM tab2 WHERE - + ( + + col1 ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) * + ( col2 * - 84 ) ) AND ( - 47 )
----

skipif mysql # not compatible
query III rowsort label-3495
SELECT DISTINCT * FROM tab2 WHERE - + ( + + col1 ) NOT BETWEEN ( CAST ( NULL AS REAL ) * + ( col2 * - 84 ) ) AND ( - 47 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 * - 86 * 89 + col0 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + ( + + col1 ) AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - + ( + 51 ) * - 78 FROM tab0 AS cor0
----
3978
3978
3978

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + + col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + MIN( col1 ) + - 95 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3501
SELECT + MIN ( col1 ) + - 95 FROM tab1 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT - 72 DIV col1 DIV 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT - 72 / col1 / 96 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = ( col2 * col2 - - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 90 ), col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE 33 * - col1 BETWEEN - col2 AND 21
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT ALL - - ( - col1 ) + - - col1 DIV - col2 + + 28 FROM tab1 cor0
----
-19
14
23

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - - ( - col1 ) + - - col1 / - col2 + + 28 FROM tab1 cor0
----
-19
14
23

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 * + col2 BETWEEN ( - + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + - 68 + - col0 * + - col2 + ( - col2 ) FROM tab0 AS cor0
----
-1035
-625
9339

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT - col0 * col2 * col1 DIV + 49 FROM tab0 AS cor0
----
-1165
-195
-372

skipif mysql # not compatible
query I rowsort label-3509
SELECT - col0 * col2 * col1 / + 49 FROM tab0 AS cor0
----
-1165
-195
-372

query I rowsort
SELECT + 9 AS col2 FROM tab2 AS cor0 WHERE 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL + col0 DIV + col0 + + col2 * + col2 FROM tab1 cor0
----
3482
4625
9217

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + col0 / + col0 + + col2 * + col2 FROM tab1 cor0
----
3482
4625
9217

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN col1 AND 85 - + 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( * ) + - ( - - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( * ) + - ( - - COUNT ( * ) ) FROM tab2
----
0

query II rowsort
SELECT ALL - col1 AS col1, + 87 * - - 37 FROM tab2
----
-51
3219
-67
3219
-77
3219

query II rowsort
SELECT DISTINCT col0, col2 - + col1 * col1 * + col0 * - col1 FROM tab2
----
46
6101969
64
29218152
75
22557283

query I rowsort
SELECT - col0 * + 19 * + col1 + + - col0 AS col1 FROM tab0
----
-1940
-23100
-34800

query I rowsort
SELECT col0 * 60 AS col0 FROM tab1 WHERE ( ( + col0 * - col1 ) IS NOT NULL )
----
3060
5100
5460

query II rowsort
SELECT DISTINCT - col0 AS col1, 52 * - - 65 AS col0 FROM tab1
----
-51
3380
-85
3380
-91
3380

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 47 * - 72 + + col0 + - - col0, col0 FROM tab0 AS cor0
----
-3190
97
-3210
87
-3354
15

query I rowsort
SELECT DISTINCT - col2 + + col1 - col0 AS col1 FROM tab1 cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - 69 * col2 * - 88 + + col1 AS col1 FROM tab2 AS cor0
----
139707
242957
352243

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - SUM( + col0 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT - SUM ( + col0 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 > - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( - - 31 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( - - 31 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT COUNT( * ) * + + 61 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3527
SELECT COUNT ( * ) * + + 61 FROM tab0 AS cor0
----
183

query I rowsort
SELECT - col1 * ( + 71 ) AS col0 FROM tab2 AS cor0
----
-3621
-4757
-5467

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col2 ) * - - 54 * 26 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - MAX( DISTINCT + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - MAX ( DISTINCT + 8 ) FROM tab2
----
-8

query II rowsort
SELECT ALL + col0 AS col2, - 54 + col1 AS col2 FROM tab0
----
15
27
87
-33
97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT ( + 43 ) <> 52
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT ( + 43 ) <> 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT + col0 + - CAST( 61 AS SIGNED ) FROM tab1 AS cor0
----
-10
24
30

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT + col0 + - CAST ( 61 AS INTEGER ) FROM tab1 AS cor0
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT 25 * + SUM( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3025

skipif mysql # not compatible
query I rowsort label-3534
SELECT 25 * + SUM ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3025

query I rowsort
SELECT ALL - ( + 70 ) + col0 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT + - 64 + + + col0 AS col2 FROM tab2 AS cor0
----
-18
0
11

query II rowsort
SELECT ALL col0 + + col1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
141
77
142
67
97
51

query I rowsort
SELECT - 70 + + - col0 AS col2 FROM tab0 AS cor0
----
-157
-167
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT DISTINCT - 81 DIV col1 + - col1 * - - col2 FROM tab1 AS cor0
----
-1349
-311
-3197

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - 81 / col1 + - col1 * - - col2 FROM tab1 AS cor0
----
-1349
-311
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL + MIN( ALL + col2 ) col0 FROM tab2 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT ALL + MIN ( ALL + col2 ) col0 FROM tab2 WHERE NULL >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT SUM( 94 ) AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT SUM ( 94 ) AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL + COUNT( * ) * 83 - + 75 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + COUNT ( * ) * 83 - + 75 FROM tab1
----
174

query I rowsort
SELECT 75 * - 55 AS col1 FROM tab2
----
-4125
-4125
-4125

query I rowsort
SELECT DISTINCT - col0 * + - ( - - 6 ) - 34 FROM tab0
----
488
548
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT DISTINCT CAST( - - col2 AS SIGNED ) * + col1 * - + ( + - 26 ) AS col0, col2 FROM tab2
----
101036
58
30498
23
80080
40

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) * + col1 * - + ( + - 26 ) AS col0, col2 FROM tab2
----
101036
58
30498
23
80080
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT 83 - - MIN( DISTINCT - + col1 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3546
SELECT 83 - - MIN ( DISTINCT - + col1 ) FROM tab1
----
36

query I rowsort
SELECT - col2 - - 28 AS col2 FROM tab2
----
-12
-30
5

query I rowsort
SELECT col2 - - - col0 * + + col0 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( + col0 + + 39 + - + col2 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT - col1 DIV - col1 FROM tab0 AS cor0 WHERE + 6 + + 39 + + + 26 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - col1 / - col1 FROM tab0 AS cor0 WHERE + 6 + + 39 + + + 26 IS NOT NULL
----
1

query II rowsort
SELECT DISTINCT + col1 AS col2, 7 AS col1 FROM tab0
----
1
7
21
7
81
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT DISTINCT 84 AS col1, COUNT( * ) AS col0 FROM tab2
----
84
3

skipif mysql # not compatible
query II rowsort label-3553
SELECT DISTINCT 84 AS col1, COUNT ( * ) AS col0 FROM tab2
----
84
3

query I rowsort
SELECT ALL + + 88 * - 24 AS col1 FROM tab2 cor0
----
-2112
-2112
-2112

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 * - + 71 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 81 AS col0, 3 FROM tab2 AS cor0
----
-81
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

query I rowsort
SELECT + 53 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - 58 AS col1, - col1 AS col1 FROM tab2 cor0
----
-58
-51
-58
-67
-58
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT DISTINCT 63 + + COUNT( * ), + 22 DIV + COUNT( * ) AS col1 FROM tab0
----
66
7

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT 63 + + COUNT ( * ), + 22 / + COUNT ( * ) AS col1 FROM tab0
----
66
7

query I rowsort
SELECT + col0 * + + 32 FROM tab0 AS cor0 WHERE NOT col1 + + col0 * + col2 IS NULL
----
2784
3104
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + - + col1 col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT ALL 63 * col0 + + 70 AS col1 FROM tab0 AS cor0
----
1015
5551
6181

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - - col1 BETWEEN NULL AND + + col0
----

query I rowsort
SELECT DISTINCT - col1 * - col1 * ( - + col0 ) * - col1 + col0 FROM tab1
----
10710
139995
9447984

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( + - 14 ) * 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + MAX( DISTINCT col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3567
SELECT + MAX ( DISTINCT col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - COUNT( ALL + 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3568
SELECT - COUNT ( ALL + 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 86 * - col1 + + col1 + 40 + + col0 FROM tab0
----
-1658
-6830
52

query I rowsort
SELECT - + 3 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT 36 - - col2 AS col2 FROM tab1 cor0
----
104
132
95

query I rowsort
SELECT ALL + ( + 72 ) + - col0 + - + col1 FROM tab2 AS cor0
----
-25
-69
-70

query I rowsort
SELECT DISTINCT - - col0 + + 55 FROM tab2 AS cor0
----
101
119
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - 74 - - + COUNT( * ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 74 - - + COUNT ( * ) FROM tab1 AS cor0
----
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + SUM( DISTINCT + col0 ) + - 58 AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + SUM ( DISTINCT + col0 ) + - 58 AS col2 FROM tab0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3577
SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3577
SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
85
NULL

query I rowsort
SELECT ALL 51 - + 89 AS col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL - 30 * 56 FROM tab1
----
-1680
-1680
-1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col2 - + - col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT + - 14 * 32 FROM tab2 AS cor0
----
-448
-448
-448

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND - col0 NOT BETWEEN - - col1 AND - - 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT + + MAX( ALL - col1 ), + 63 AS col1 FROM tab1 AS cor0
----
-5
63

skipif mysql # not compatible
query II rowsort label-3584
SELECT + + MAX ( ALL - col1 ), + 63 AS col1 FROM tab1 AS cor0
----
-5
63

query I rowsort
SELECT ALL + col2 * + 87 AS col1 FROM tab1 AS cor0
----
5133
5916
8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col2 FROM tab0 AS cor0
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3588
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 3 * - - col2 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + - MIN( 42 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-3590
SELECT + - MIN ( 42 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

query I rowsort
SELECT + - 34 * - col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + SUM( + 88 ) col0 FROM tab2 cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT DISTINCT + SUM ( + 88 ) col0 FROM tab2 cor0
----
264

query I rowsort
SELECT - col0 * + - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT MIN( ALL - 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT MIN ( ALL - 29 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - col0, - 34 * + + col2, 26 * col1 + 36 )
----

query I rowsort
SELECT DISTINCT - 59 * col2 * - 15 * + col2 FROM tab2 AS cor0 WHERE + col2 + 16 IS NOT NULL
----
1416000
2977140
468165

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT 3 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT 3 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 42 * + col1 FROM tab2
----
2142
2814
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ( - 44 ) DIV + 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ( - 44 ) / + 87 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT SUM( DISTINCT - + col0 ) * - COUNT( * ) * + 81 FROM tab1
----
55161

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT SUM ( DISTINCT - + col0 ) * - COUNT ( * ) * + 81 FROM tab1
----
55161

query I rowsort
SELECT DISTINCT ( - 96 ) AS col2 FROM tab1 WHERE NOT + 81 IS NOT NULL
----

query I rowsort
SELECT + ( + - ( 55 ) ) FROM tab1
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL + col1 DIV - col1 + - col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + col1 / - col1 + - col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE - 84 <= NULL
----

query I rowsort
SELECT 81 + + - col1 FROM tab1
----
34
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + + 30 * MIN( ALL col1 ) * - - COUNT( * ) + + MAX( - col0 ) FROM tab2 AS cor0
----
4544

skipif mysql # not compatible
query I rowsort label-3606
SELECT + + 30 * MIN ( ALL col1 ) * - - COUNT ( * ) + + MAX ( - col0 ) FROM tab2 AS cor0
----
4544

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + + SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3608
SELECT + + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT + 2 DIV col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + 2 / col0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT 77 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT 77 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT DISTINCT - 37 * - CAST( + col0 AS SIGNED ) - + col1 * + + 73 + - + col2 AS col1 FROM tab2 cor0
----
-2044
-2174
-3293

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 37 * - CAST ( + col0 AS INTEGER ) - + col1 * + + 73 + - + col2 AS col1 FROM tab2 cor0
----
-2044
-2174
-3293

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + col2 ) <= - col0 * - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NULL > - - 47 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NULL > - - 47 + - col2
----
0

query I rowsort
SELECT - col1 - 74 + + ( 86 ) + col2 * col2 FROM tab0
----
2140
91
9812

query I rowsort
SELECT ALL - col1 * + 37 - + col2 - - - 89 + - + 57 + - col0 + - + 66 * 36 FROM tab2
----
-4478
-5134
-5475

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT + + 49 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 35, col2 + - col2 AS col0 FROM tab2
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - ( SUM( DISTINCT + 6 ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3619
SELECT - ( SUM ( DISTINCT + 6 ) ) FROM tab1
----
-6

query I rowsort
SELECT 83 * + 7 AS col2 FROM tab2
----
581
581
581

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 79 + - MIN( ALL + + 99 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 79 + - MIN ( ALL + + 99 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3623
SELECT SUM ( + col0 ) AS col0 FROM tab2
----
185

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 43 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - col2 / - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + - col2 * - 6 AS col1, - col1 FROM tab2 AS cor0
----
138
-51
240
-77
348
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT + 93 DIV - col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3627
SELECT + 93 / - col0 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + - col0 * + - 42 FROM tab1 AS cor0
----
2142
3570
3822

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + MIN( DISTINCT + 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3631
SELECT + MIN ( DISTINCT + 93 ) FROM tab0
----
93

query I rowsort
SELECT ALL + 68 * - 97 FROM tab2
----
-6596
-6596
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - + col2 + + + 75 col0, col0 AS col0 FROM tab2
----
-1098
46
-3005
64
-3811
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT + 19 + CAST( - + col1 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-75
-9
9

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 19 + CAST ( - + col1 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-75
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL + COUNT( * ) * - 16 AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + COUNT ( * ) * - 16 AS col0 FROM tab1
----
-48

query I rowsort
SELECT + 50 + + col2 FROM tab2
----
108
73
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT DISTINCT CAST( + 64 AS SIGNED ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT CAST ( + 64 AS INTEGER ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT ( + 35 ) + - + ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 97 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 97 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col2, - col1 * col1 * - col2 AS col2 FROM tab0
----
-15
308367
-87
4410
-97
99

query I rowsort
SELECT 87 + + ( - 82 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 + col0 BETWEEN + - 36 AND + col2 * - 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT ALL COUNT( * ), - 42 + + 90 AS col0 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL COUNT ( * ), - 42 + + 90 AS col0 FROM tab2 AS cor0
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( * ) + + MIN( ALL - 5 ) AS col0 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( * ) + + MIN ( ALL - 5 ) AS col0 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - col2 + - - 4 AS col1 FROM tab2 cor0
----
-19
-36
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT - + CAST( - col1 AS SIGNED ) + - - 2 - - 93 AS col1 FROM tab2 AS cor0
----
146
162
172

skipif mysql # not compatible
query I rowsort label-3647
SELECT - + CAST ( - col1 AS INTEGER ) + - - 2 - - 93 AS col1 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + COUNT( DISTINCT ( col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3648
SELECT + COUNT ( DISTINCT ( col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT + 36, COUNT( * ) * + + 8 * + 13 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
36
936

skipif mysql # not compatible
query II rowsort label-3649
SELECT + 36, COUNT ( * ) * + + 8 * + 13 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
36
936

query II rowsort
SELECT + ( col2 ), col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3651
SELECT + CAST( NULL AS DECIMAL ) * + - 30, + ( + 60 ) * - col1 AS col0 FROM tab0
----
NULL
-1260
NULL
-4860
NULL
-60

skipif mysql # not compatible
query II rowsort label-3651
SELECT + CAST ( NULL AS REAL ) * + - 30, + ( + 60 ) * - col1 AS col0 FROM tab0
----
NULL
-1260
NULL
-4860
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT DISTINCT 43 DIV 2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT 43 / 2 FROM tab2
----
21

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT - col0 IN ( + 39 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3654
SELECT ALL COUNT( col2 ), + ( - + 21 ) DIV + + 52 col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3654
SELECT ALL COUNT ( col2 ), + ( - + 21 ) / + + 52 col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
0
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT DISTINCT + 24 / + CAST( 49 AS DECIMAL ) col1 FROM tab0 WHERE NULL = - ( col1 ) + + 88
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3655
SELECT DISTINCT + 24 / + CAST ( 49 AS REAL ) col1 FROM tab0 WHERE NULL = - ( col1 ) + + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT + + ( COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT + + ( COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - + 15 + + - MAX( ALL + + 31 ) AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3659
SELECT - + 15 + + - MAX ( ALL + + 31 ) AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT + col1 + - - col1 AS col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT ALL + col0 + + - 69 AS col0 FROM tab1 AS cor0
----
-18
16
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 7 IN ( - - 33 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT - - 91 + + 96 DIV 43 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-3663
SELECT - - 91 + + 96 / 43 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3664
SELECT - 67 * + CAST( NULL AS SIGNED ) AS col0, col0 col1 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-3664
SELECT - 67 * + CAST ( NULL AS INTEGER ) AS col0, col0 col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 56 ) + - 77 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 98 + + 67 AS col0 FROM tab0
----
-1991
-31
-7871

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT DISTINCT - 85 + COUNT( * ) AS col0, + COUNT( * ) + + COUNT( * ) * + + MAX( DISTINCT + 47 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-82
147

skipif mysql # not compatible
query II rowsort label-3667
SELECT DISTINCT - 85 + COUNT ( * ) AS col0, + COUNT ( * ) + + COUNT ( * ) * + + MAX ( DISTINCT + 47 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-82
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT - col0 DIV + 34 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT - col0 / + 34 FROM tab0 AS cor0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT + 21 - - 72 * + col0 AS col0 FROM tab0 AS cor0
----
1101
6285
7005

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + 38 * - 0 - - COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + 38 * - 0 - - COUNT ( * ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col1 - 7 AS col0 FROM tab2
----
44
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + COUNT( * ) * COUNT( * ) + 21 AS col1 FROM tab0 WHERE - col2 <= - 34 / - 28 + + col1
----
30

skipif mysql # not compatible
query I rowsort label-3673
SELECT + COUNT ( * ) * COUNT ( * ) + 21 AS col1 FROM tab0 WHERE - col2 <= - 34 / - 28 + + col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 71 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3674
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 71 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + - 77 * + 80 FROM tab0 AS cor0
----
535920
597520
92400

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col2 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT ( 90 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 46 * - col2 + + 78 + - + col2 * + col0 AS col2 FROM tab1 cor0
----
-2223
-2982
-402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3680
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
-3
-3

query II rowsort
SELECT DISTINCT + col2 AS col2, + ( - + 83 ) AS col1 FROM tab1
----
59
-83
68
-83
96
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT COUNT( * ), MAX( - - col2 ) AS col1 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-3682
SELECT COUNT ( * ), MAX ( - - col2 ) AS col1 FROM tab0
----
3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT SUM( DISTINCT + + ( 78 ) ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT SUM ( DISTINCT + + ( 78 ) ) AS col2 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( - + 60 ) AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( - + 60 ) AS col0 FROM tab0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - ( - CAST( NULL AS SIGNED ) ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - ( - CAST ( NULL AS INTEGER ) ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - + ( - COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - + ( - COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT - - SUM( + 86 ) DIV - COUNT( * ) - - 86 AS col0 FROM tab0 WHERE NOT + - 16 = - - col2 DIV - - 12 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT - - SUM ( + 86 ) / - COUNT ( * ) - - 86 AS col0 FROM tab0 WHERE NOT + - 16 = - - col2 / - - 12 + - - col1
----
0

query I rowsort
SELECT ALL + - ( - + 34 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 89 > NULL
----

query II rowsort
SELECT DISTINCT + + 39 + 26 + + col0 AS col2, - 90 AS col2 FROM tab0 AS cor0
----
152
-90
162
-90
80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + - 69 FROM tab1 AS cor0
----
-1
-10
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3692
SELECT - CAST( - 81 AS SIGNED ) * 78 - - - col1 DIV + - col1 AS col2 FROM tab0 AS cor0 WHERE - 14 DIV CAST( NULL AS DECIMAL ) * - col2 IS NULL
----
6319
6319
6319

skipif mysql # not compatible
query I rowsort label-3692
SELECT - CAST ( - 81 AS INTEGER ) * 78 - - - col1 / + - col1 AS col2 FROM tab0 AS cor0 WHERE - 14 / CAST ( NULL AS REAL ) * - col2 IS NULL
----
6319
6319
6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col1 * col1 + - 50 col2 FROM tab1 AS cor0
----
103773
2694
75

query I rowsort
SELECT 34 * col0 + 71 AS col2 FROM tab2 cor0
----
1635
2247
2621

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0 + + 72 - - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - - 45 + 12 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3696
SELECT - - 45 + 12 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
60

query II rowsort
SELECT ALL + 89, + 23 AS col0 FROM tab1
----
89
23
89
23
89
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3698
SELECT - 45 + + col0 + - - CAST( NULL AS SIGNED ), col1 * + 26 AS col2 FROM tab2
----
NULL
1326
NULL
1742
NULL
2002

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 45 + + col0 + - - CAST ( NULL AS INTEGER ), col1 * + 26 AS col2 FROM tab2
----
NULL
1326
NULL
1742
NULL
2002

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3699
SELECT * FROM tab0 WHERE + col1 > - CAST( NULL AS SIGNED ) * - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-3699
SELECT * FROM tab0 WHERE + col1 > - CAST ( NULL AS INTEGER ) * - col1 + - col1
----

query II rowsort
SELECT DISTINCT + 30, + 91 AS col1 FROM tab0
----
30
91

query I rowsort
SELECT - 85 * - col1 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3702
SELECT - col1 * 20 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2
----
9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58

skipif mysql # not compatible
query III rowsort label-3702
SELECT - col1 * 20 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2
----
9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL ( 77 ) - - CAST( NULL AS SIGNED ) * - ( col0 ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL ( 77 ) - - CAST ( NULL AS INTEGER ) * - ( col0 ) * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 56 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + - 91 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col2 * + 62 - - col1 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col2 * + 62 - - col1 < + col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 * + - 95 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT - ( - - 95 ) * - SUM( - col2 ), 56 AS col2 FROM tab0 AS cor0
----
-14820
56

skipif mysql # not compatible
query II rowsort label-3709
SELECT - ( - - 95 ) * - SUM ( - col2 ), 56 AS col2 FROM tab0 AS cor0
----
-14820
56

onlyif mysql # DIV for integer division: 
query II rowsort label-3710
SELECT ALL + 34 DIV col1 + - col0 * col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL + 34 / col1 + - col0 * col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query II rowsort
SELECT + col1 + - + col2 * - + col0, col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 58 ) col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - 25 * + - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
122400
125375
154700

query I rowsort
SELECT ALL - ( ( - 19 ) ) AS col1 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + COUNT( * ) * - + 75 DIV COUNT( * ) AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3716
SELECT + COUNT ( * ) * - + 75 / COUNT ( * ) AS col2 FROM tab0
----
-75

query I rowsort
SELECT DISTINCT - col1 * + 73 FROM tab2
----
-3723
-4891
-5621

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - ( - 45 ) / - + col1 - - 81
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> col1 + - ( col2 ) + col1 + - - 74
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NOT NULL AND NOT ( NULL ) NOT BETWEEN ( + - col2 ) AND col2
----

query II rowsort
SELECT ALL col1 AS col2, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + - 90 + - 73 FROM tab2 AS cor0
----
-163
-163
-163

query III rowsort
SELECT * FROM tab2 cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT 65 * col0 + - + col0 * + + 38 * - col1 * 23 FROM tab0 AS cor0
----
1062885
1602453
91083

query I rowsort
SELECT + col2 * + col2 + col0 * - + 31 * col0 FROM tab2 AS cor0
----
-125376
-171011
-65067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT DISTINCT + CAST( + 55 AS SIGNED ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + CAST ( + 55 AS INTEGER ) FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - + COUNT( + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3727
SELECT - + COUNT ( + + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + - - 69 FROM tab0
----
-30
22
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT ( + - COUNT( * ) ) DIV + MAX( col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT ( + - COUNT ( * ) ) / + MAX ( col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 94 * + 13 * + 0 * - + col0 * - col1 * - col2 * + + 74 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 - + + col0 * col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE - col0 * 55 IS NOT NULL
----
89
89
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 * + - 14 * + 39 NOT IN ( - 88 + - - col1, - 54 + + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT + col0 - - + col0 + + 87 DIV + col2 FROM tab0 AS cor0
----
182
194
31

skipif mysql # not compatible
query I rowsort label-3735
SELECT + col0 - - + col0 + + 87 / + col2 FROM tab0 AS cor0
----
182
194
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT - COUNT( - + CAST( - col0 AS SIGNED ) ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT - COUNT ( - + CAST ( - col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE col0 - CAST( NULL AS SIGNED ) + - 75 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE col0 - CAST ( NULL AS INTEGER ) + - 75 IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND - 19
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT + ( + COUNT( DISTINCT - - col1 ) ) AS col2 FROM tab1 WHERE CAST( 80 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT + ( + COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab1 WHERE CAST ( 80 AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 WHERE + col2 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3741
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT ALL col1 DIV - col2 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-3742
SELECT ALL col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
51
85
91

query I rowsort
SELECT + 98 * 60 FROM tab2 AS cor0
----
5880
5880
5880

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, col2 * + col1 * - 62 FROM tab2 cor0
----
NULL
-190960
NULL
-240932
NULL
-72726

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, col2 * + col1 * - 62 FROM tab2 cor0
----
NULL
-190960
NULL
-240932
NULL
-72726

query I rowsort
SELECT ALL - + 84 AS col2 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - ( + COUNT( ( col2 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3749
SELECT - ( + COUNT ( ( col2 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT ( + + MIN( ALL col0 ) ) * 85 AS col1 FROM tab0 AS cor0
----
1275

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT ( + + MIN ( ALL col0 ) ) * 85 AS col1 FROM tab0 AS cor0
----
1275

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 <> + + 93 * + + 29
----

query I rowsort
SELECT DISTINCT - col1 * 53 AS col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT COUNT( * ) * - 89 AS col1 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3753
SELECT COUNT ( * ) * - 89 AS col1 FROM tab0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL MIN( col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL MIN ( col1 ) AS col1 FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 87, - 8, + 14 )
----

query I rowsort
SELECT ALL col2 + - ( - col2 ) + ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-67
101
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 66 col1 FROM tab0
----
1386
5346
66

query I rowsort
SELECT ALL - - 79 + - col2 - + col1 * - - col0 AS col1 FROM tab1 cor0
----
-405
-4266
-731

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT + - col1 * 52 AS col2, col2 + - - ( + CAST( NULL AS SIGNED ) ) + + col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NULL
----
-2652
NULL
-3484
NULL
-4004
NULL

skipif mysql # not compatible
query II rowsort label-3759
SELECT + - col1 * 52 AS col2, col2 + - - ( + CAST ( NULL AS INTEGER ) ) + + col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NULL
----
-2652
NULL
-3484
NULL
-4004
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3760
SELECT ALL col1 * + 37 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL col1 * + 37 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 / 48
----

query I rowsort
SELECT + ( + - col1 ) + col0 * - col2 * 89 AS col1 FROM tab2 AS cor0
----
-227917
-387217
-94213

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query II rowsort
SELECT DISTINCT 31, col1 * + col0 AS col2 FROM tab0
----
31
1215
31
1827
31
97

query I rowsort
SELECT ALL - col2 + - - 92 + - col1 - - col2 FROM tab1 cor0
----
45
78
87

query I rowsort
SELECT DISTINCT + - ( + 12 ) + - + col1 + + + col0 AS col0 FROM tab0 AS cor0
----
-78
54
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + 30 + - - COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 30 + - - COUNT ( * ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT - 60 + col2 * - col2 * - - 50 AS col2 FROM tab2 AS cor0
----
-168260
-26510
-80060

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT col1 + + 91 AS col1 FROM tab1
----
105
138
96

query I rowsort
SELECT ALL col0 - + - col1 FROM tab1
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT col1 + col2 DIV - col2 col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3772
SELECT col1 + col2 / - col2 col2 FROM tab2
----
50
66
76

query I rowsort
SELECT - col0 * + 79 + - 97 AS col2 FROM tab0
----
-1282
-6970
-7760

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab2 WHERE NOT - col2 NOT BETWEEN - - col1 AND - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab2 WHERE NOT - col2 NOT BETWEEN - - col1 AND - ( 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + SUM( DISTINCT + - ( - 62 ) ) col1 FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT + SUM ( DISTINCT + - ( - 62 ) ) col1 FROM tab2 WHERE + col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col1 + + + 4 * - col2 FROM tab2 AS cor0
----
-165
-41
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - + 0 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT - + 0 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3780
SELECT ALL - - MAX( col1 ), COUNT( * ) / - - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL - - MAX ( col1 ), COUNT ( * ) / - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
81
NULL

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT col1 * - 89 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / - + col1 BETWEEN - col0 AND 13
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 7 + 90 AND - - 2
----

query I rowsort
SELECT col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ( - 75 ) DIV col0 * + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3786
SELECT ( - 75 ) / col0 * + col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT + 77 DIV ( + - COUNT( * ) ) + - - 27 + - 39 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 77 / ( + - COUNT ( * ) ) + - - 27 + - 39 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL col1 * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + col0 <= - - col2
----
15
81
47

query I rowsort
SELECT ALL + + col0 * - 75 * ( + col1 ) FROM tab1 AS cor0
----
-31875
-320775
-53550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 72 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 72 col2 FROM tab2
----
NULL

query II rowsort
SELECT + col2 AS col0, ( - + 91 ) - + col0 AS col2 FROM tab1
----
59
-176
68
-182
96
-142

query I rowsort
SELECT ALL + 9 * - 37 FROM tab1
----
-333
-333
-333

query I rowsort
SELECT + + col1 * + + col0 AS col0 FROM tab0 WHERE NOT + + col0 * + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( 59 ) + + - col1 + - 5 * - + col0 FROM tab0
----
134
494
544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN - col0 - - - col1 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3797
SELECT - CAST( NULL AS DECIMAL ) AS col2, 89 * + 64 FROM tab1 AS cor0
----
NULL
5696
NULL
5696
NULL
5696

skipif mysql # not compatible
query II rowsort label-3797
SELECT - CAST ( NULL AS REAL ) AS col2, 89 * + 64 FROM tab1 AS cor0
----
NULL
5696
NULL
5696
NULL
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + SUM( ALL - + 66 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3798
SELECT + SUM ( ALL - + 66 ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - ( + - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - ( + - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT col0 + 86 FROM tab2
----
132
150
161

query I rowsort
SELECT DISTINCT + - 4 + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT + 42 + - 71 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 * + + col1 + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - COUNT( * ) * COUNT( * ) + - - MAX( + col0 ) - - 30 AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - - MAX ( + col0 ) - - 30 AS col1 FROM tab2 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - ( - col2 )
----

query I rowsort
SELECT col1 / + 36 / 64 AS col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, + 0 AS col2 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT 49 - + - 60 AS col0 FROM tab0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT - 53 * - 65 + + - col0 AS col1 FROM tab2 WHERE NOT - - col2 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 53 * - 65 + + - col0 AS col1 FROM tab2 WHERE NOT - - col2 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT - col2 FROM tab2 WHERE CAST( + + col1 AS SIGNED ) * - - col1 IN ( - ( - col0 ), + col2 )
----

skipif mysql # not compatible
query I rowsort label-3811
SELECT - col2 FROM tab2 WHERE CAST ( + + col1 AS INTEGER ) * - - col1 IN ( - ( - col0 ), + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - col0 + - - col1 * + col0 * col1, 45 col0 FROM tab0
----
-1
45
38259
45
98319
45

query I rowsort
SELECT - 82 - col2 FROM tab1
----
-141
-150
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 51, col1 col1 FROM tab0
----
51
1
51
21
51
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT col1 + - 10 * col2 DIV + + col2 FROM tab1
----
-5
37
4

skipif mysql # not compatible
query I rowsort label-3815
SELECT col1 + - 10 * col2 / + + col2 FROM tab1
----
-5
37
4

query I rowsort
SELECT - 49 * col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + MAX( ALL + 92 ) * + + 97 AS col0 FROM tab0 AS cor0
----
8924

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + MAX ( ALL + 92 ) * + + 97 AS col0 FROM tab0 AS cor0
----
8924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + - MAX( - + 66 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + - MAX ( - + 66 ) FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL SUM( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3821
SELECT ALL - 53 AS col1, col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL - 53 AS col1, col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT COUNT( * ) + + 40 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col1 * - - 18
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT COUNT ( * ) + + 40 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col1 * - - 18
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - 82 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT DISTINCT + MAX( - 3 ) AS col2, - 31 AS col1 FROM tab2 AS cor0
----
-3
-31

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT + MAX ( - 3 ) AS col2, - 31 AS col1 FROM tab2 AS cor0
----
-3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - + MIN( + - col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3828
SELECT - + MIN ( + - col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT col1 DIV - col2 * 7 DIV 46 * + col0 * col2 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT col1 / - col2 * 7 / 46 * + col0 * col2 col1 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 88 + + 99 AS col1, + ( - col1 ) AS col2 FROM tab2
----
187
-51
187
-67
187
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT ( - 38 ) + + COUNT( + 68 ) FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT ( - 38 ) + + COUNT ( + 68 ) FROM tab2 cor0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3832
SELECT CAST( COUNT( * ) AS SIGNED ) * - - ( COUNT( * ) ) DIV + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3832
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - ( COUNT ( * ) ) / + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3834
SELECT - 40 + - + col1 DIV + + col0, + 74 AS col2 FROM tab0 AS cor0
----
-40
74
-40
74
-45
74

skipif mysql # not compatible
query II rowsort label-3834
SELECT - 40 + - + col1 / + + col0, + 74 AS col2 FROM tab0 AS cor0
----
-40
74
-40
74
-45
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT + + COUNT( - CAST( NULL AS SIGNED ) ) + - SUM( ALL - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3835
SELECT + + COUNT ( - CAST ( NULL AS INTEGER ) ) + - SUM ( ALL - col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) + - 16 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) + - 16 > + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 24 IS NULL
----
0

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE 33 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + 21 - + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + 21 - + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + + col1 + - + ( - col2 ) * + - 11 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT + + col1 + - + ( - col2 ) * + - 11 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 42 + - col2 + - 27 FROM tab1
----
-44
-53
-81

query I rowsort
SELECT - ( + + 55 ) FROM tab2
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - ( MAX( + col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3843
SELECT - ( MAX ( + col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT ( col2 ) * + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3845
SELECT + CAST( NULL AS SIGNED ) * col2 col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3845
SELECT + CAST ( NULL AS INTEGER ) * col2 col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT - - 44 * - col0 * + - col1 FROM tab0 cor0
----
4268
53460
80388

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= + col0 + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT COUNT( - + 94 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3848
SELECT COUNT ( - + 94 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + MIN( + + ( + + 18 ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-3849
SELECT + MIN ( + + ( + + 18 ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - - 12 * + - COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3850
SELECT - - 12 * + - COUNT ( * ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT DISTINCT col0, ( + col1 ) FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT - 11 AS col2, col1 FROM tab1
----
-11
14
-11
47
-11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL - COUNT( * ) + + 63 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - COUNT ( * ) + + 63 AS col0 FROM tab0
----
60

query II rowsort
SELECT 22 AS col2, ( + col0 ) FROM tab1
----
22
51
22
85
22
91

query III rowsort
SELECT * FROM tab0 WHERE + col2 = - 8
----

query I rowsort
SELECT ALL - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT ALL 11 DIV + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 11 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL + + 16 * - + CAST( - 5 AS SIGNED ) * + col0 + col1 - + col0 AS col0, col0 col2 FROM tab2 AS cor0
----
3685
46
5133
64
5992
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3858
SELECT ALL + + 16 * - + CAST ( - 5 AS INTEGER ) * + col0 + col1 - + col0 AS col0, col0 col2 FROM tab2 AS cor0
----
3685
46
5133
64
5992
75

query I rowsort
SELECT - col2 * 20 + - 18 FROM tab1 AS cor0
----
-1198
-1378
-1938

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT + 74 * 71 + - + COUNT( * ) AS col0, 14 FROM tab1
----
5251
14

skipif mysql # not compatible
query II rowsort label-3860
SELECT + 74 * 71 + - + COUNT ( * ) AS col0, 14 FROM tab1
----
5251
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL 27 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL 27 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT 20 DIV - - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3864
SELECT 20 / - - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * + - ( - col0 ) * 53 FROM tab2 AS cor0
----
135680
230550
56074

query I rowsort
SELECT - col1 + - ( col2 ) FROM tab0 AS cor0 WHERE - 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + + AVG ( DISTINCT - 44 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + + AVG ( DISTINCT - 44 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 53 - ( + - 50 ) + - 8 + col0 AS col2 FROM tab0 cor0
----
110
182
192

onlyif mysql # DIV for integer division: 
query II rowsort label-3869
SELECT col1 AS col2, 13 DIV - + col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3869
SELECT col1 AS col2, 13 / - + col0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT ALL col0 * - + 1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + 25 * + 39 / 44 AS col1 FROM tab2 WHERE NOT - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT - col2 * - CAST( + col0 AS SIGNED ) col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3872
SELECT DISTINCT - col2 * - CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN 47 * col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT 89 * + COUNT( ALL + col1 ) AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT 89 * + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 57 * - 3 + SUM( ALL - + col2 ) FROM tab0 AS cor0
----
-327

skipif mysql # not compatible
query I rowsort label-3875
SELECT 57 * - 3 + SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
-327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT - COUNT( * ) DIV + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - COUNT ( * ) / + 91 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL + - 77 DIV + 43 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + - 77 / + 43 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT ( 35 ) + col0 DIV col1 FROM tab2
----
35
36

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT ( 35 ) + col0 / col1 FROM tab2
----
35
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND + col1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 WHERE + 94 NOT BETWEEN 62 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 94 NOT BETWEEN 62 AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3882
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT BETWEEN ( CAST( col1 AS SIGNED ) + col2 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3882
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT BETWEEN ( CAST ( col1 AS INTEGER ) + col2 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT CAST( + 0 AS SIGNED ) + col2 * 96 AS col2 FROM tab2
----
2208
3840
5568

skipif mysql # not compatible
query I rowsort label-3883
SELECT CAST ( + 0 AS INTEGER ) + col2 * 96 AS col2 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT 86 * - 94 + 3 FROM tab1
----
-8081
-8081
-8081

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col2 - 94 * col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col2 - 94 * col0 IN ( col0 )
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - 53 = 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 35 * 1 col2 FROM tab0
----
134
45
82

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE + col0 / - col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT 22 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT 22 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - col1 FROM tab1 WHERE NOT ( + ( col0 ) ) = ( - col1 ) + 8
----
-1232
-4136
-440

query I rowsort
SELECT - 9 + col2 FROM tab0
----
1
38
90

query I rowsort
SELECT DISTINCT 20 * - col2 AS col2 FROM tab2
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT MIN( ALL col0 ) FROM tab0 WHERE NOT - 43 <= 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT MIN ( ALL col0 ) FROM tab0 WHERE NOT - 43 <= 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT COUNT( * ) + - 79 AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-3895
SELECT COUNT ( * ) + - 79 AS col1 FROM tab0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT MAX( + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT MAX ( + col0 ) col0 FROM tab1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3897
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + ( + MIN( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3899
SELECT + ( + MIN ( + col2 ) ) FROM tab0
----
10

query I rowsort
SELECT col1 * col2 + + col0 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL COUNT( DISTINCT - 71 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL COUNT ( DISTINCT - 71 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - ( - ( - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3902
SELECT - ( - ( - COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT COUNT( col2 ) DIV + MAX( ALL 25 + - col2 ) - + 38 * - MAX( DISTINCT - ( - col1 ) ) AS col2 FROM tab1
----
1786

skipif mysql # not compatible
query I rowsort label-3903
SELECT COUNT ( col2 ) / + MAX ( ALL 25 + - col2 ) - + 38 * - MAX ( DISTINCT - ( - col1 ) ) AS col2 FROM tab1
----
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT 0 - col1 DIV - 52 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT 0 - col1 / - 52 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + 97 * + 67 + + col1 AS col0 FROM tab0
----
6500
6520
6580

query I rowsort
SELECT DISTINCT + 13 + 67 FROM tab1
----
80

query I rowsort
SELECT 74 * 9 FROM tab0
----
666
666
666

query I rowsort
SELECT + col0 * col1 AS col0 FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 12 * + COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3909
SELECT 12 * + COUNT ( * ) AS col1 FROM tab1
----
36

query I rowsort
SELECT ALL col1 * col1 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT ALL - 15 + - SUM( ALL + 67 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - 15 + - SUM ( ALL + 67 ) / - COUNT ( * ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( ALL col0 ) + 91 AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( ALL col0 ) + 91 AS col2 FROM tab2 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT col1 DIV + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT col1 / + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 8 col2 FROM tab1 AS cor0
----
-59
-93
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - MIN( DISTINCT 6 ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3916
SELECT - MIN ( DISTINCT 6 ) col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 - - 15 FROM tab2 AS cor0
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 - + col1 col1 FROM tab2
----
10
20
36

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT + col1 + + 98 FROM tab1 WHERE - 20 - col2 >= ( - ( CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + col1 + + 98 FROM tab1 WHERE - 20 - col2 >= ( - ( CAST ( NULL AS INTEGER ) ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT DISTINCT + 93 - 72 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 93 - 72 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ( + 54 ) * - 99 AS col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - 74 + COUNT( * ) * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
304

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 74 + COUNT ( * ) * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT - COUNT( ALL 34 ) - - 95 AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - COUNT ( ALL 34 ) - - 95 AS col0 FROM tab2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL - 36 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( 52 AS SIGNED ) + 41 / col2 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - 36 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( 52 AS INTEGER ) + 41 / col2 NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT MAX( ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT MAX ( ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT - 86 DIV - COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 86 / - COUNT ( * ) FROM tab0 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL + SUM( DISTINCT 6 ) AS col0 FROM tab0 AS cor0 WHERE 21 + - 71 NOT IN ( col1 )
----
6

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + SUM ( DISTINCT 6 ) AS col0 FROM tab0 AS cor0 WHERE 21 + - 71 NOT IN ( col1 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3930
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT 60 * col0 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

query I rowsort
SELECT col1 * - - col1 * 88 AS col0 FROM tab1
----
17248
194392
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL + COUNT( ALL col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + COUNT ( ALL col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL col2 + - 59 FROM tab2 WHERE + col1 IS NOT NULL
----
-1
-19
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND col2 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 37 * + ( + col0 ) AS col1 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - - 37 AS col2 FROM tab0 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - MAX( ALL - 56 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
56

skipif mysql # not compatible
query I rowsort label-3943
SELECT - MAX ( ALL - 56 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
56

query I rowsort
SELECT ALL 64 * - col1 + col0 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 61 FROM tab2 WHERE NOT - col1 * 21 BETWEEN - col1 AND ( NULL )
----
61
61
61

query I rowsort
SELECT - 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 84 AS col0, - ( - - 94 ) col1 FROM tab1
----
84
-94
84
-94
84
-94

query I rowsort
SELECT + col2 + - col2 * - - col0 * - col0 FROM tab0
----
10622
75700
931590

query I rowsort
SELECT DISTINCT - ( - 47 ) + - + col0 FROM tab0 AS cor0
----
-40
-50
32

query I rowsort
SELECT + ( col1 ) + - col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 68 + - + 92 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT col1 * - CAST( + col0 AS SIGNED ) + + 69 FROM tab1 AS cor0
----
-356
-4208
-645

skipif mysql # not compatible
query I rowsort label-3952
SELECT col1 * - CAST ( + col0 AS INTEGER ) + + 69 FROM tab1 AS cor0
----
-356
-4208
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT + CAST( NULL AS SIGNED ) + + ( + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CAST ( NULL AS INTEGER ) + + ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 + col1 + + col0 AS col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT col1 DIV col2 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT col1 / col2 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - ( MAX( - 30 ) ) AS col2 FROM tab2 cor0 WHERE 0 - col2 * + col2 < col2
----
30

skipif mysql # not compatible
query I rowsort label-3956
SELECT - ( MAX ( - 30 ) ) AS col2 FROM tab2 cor0 WHERE 0 - col2 * + col2 < col2
----
30

query II rowsort
SELECT - 83, - col2 AS col1 FROM tab2 AS cor0
----
-83
-23
-83
-40
-83
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + 61 * - - COUNT( * ) + - - 30 - + 44 * COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 61 * - - COUNT ( * ) + - - 30 - + 44 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-183

query I rowsort
SELECT DISTINCT + ( + - col0 ) + ( - col0 ) - 56 * + col2 FROM tab0 cor0
----
-2662
-5738
-734

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - 9 )
----

query I rowsort
SELECT col0 * 36 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + 60 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + + col0 * col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL + 64 * 50 DIV - + col1 FROM tab2
----
-41
-47
-62

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + 64 * 50 / - + col1 FROM tab2
----
-41
-47
-62

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + ( + col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3968
SELECT - COUNT( * ) DIV COUNT( * ) AS col2, 26 FROM tab0
----
-1
26

skipif mysql # not compatible
query II rowsort label-3968
SELECT - COUNT ( * ) / COUNT ( * ) AS col2, 26 FROM tab0
----
-1
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE + 93 * + + CAST( NULL AS SIGNED ) * - ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE + 93 * + + CAST ( NULL AS INTEGER ) * - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT COUNT( * ) * - COUNT( * ) - - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( * ) * - COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT col0 - + - 18 * - col0 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT ( - 81 ) AS col2 FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3973
SELECT * FROM tab2 AS cor0 WHERE + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3973
SELECT * FROM tab2 AS cor0 WHERE + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 72 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
72

query I rowsort
SELECT DISTINCT + col1 * + - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + - col1 BETWEEN ( + - col0 * + col2 + + 59 ) AND NULL
----

query I rowsort
SELECT - 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT - + 12 * + - 97 + - 40 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 25 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT 77 FROM tab0 AS cor0 WHERE + col2 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 77 FROM tab0 AS cor0 WHERE + col2 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - - MIN( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - - MIN ( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT + ( + + 3 ) AS col0 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3985
SELECT DISTINCT - 19 + col0 FROM tab2 AS cor0 WHERE NULL >= - 12 + + CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - 19 + col0 FROM tab2 AS cor0 WHERE NULL >= - 12 + + CAST ( NULL AS REAL ) + + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> - + col2 * 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT ALL - COUNT( * ) col0, - 63 * + 66 AS col1 FROM tab0
----
-3
-4158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3987
SELECT ALL - COUNT ( * ) col0, - 63 * + 66 AS col1 FROM tab0
----
-3
-4158

query II rowsort
SELECT ALL col2 AS col2, 77 - - + col0 + + 72 * - + col1 FROM tab0
----
10
-1348
47
-5740
99
102

query II rowsort
SELECT DISTINCT + col2 AS col2, - 90 FROM tab2
----
23
-90
40
-90
58
-90

query II rowsort
SELECT + col2 AS col0, 33 AS col2 FROM tab2
----
23
33
40
33
58
33

query II rowsort
SELECT - col1 AS col1, 77 * col1 FROM tab0
----
-1
77
-21
1617
-81
6237

query I rowsort
SELECT ALL - 62 - - 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col1 + - col1 * - col0 + + - col1 FROM tab2 AS cor0
----
2244
4774
4891

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + - ( + - col2 ) BETWEEN + + 50 AND - col2 * + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - MAX( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3995
SELECT - MAX ( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT col0 * + 34 FROM tab2 AS cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 86 * SUM( ALL - col1 ) * - 92 AS col0 FROM tab0
----
814936

skipif mysql # not compatible
query I rowsort label-3997
SELECT 86 * SUM ( ALL - col1 ) * - 92 AS col0 FROM tab0
----
814936

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT - 34 + SUM( + - col0 ) AS col2 FROM tab0 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - 34 + SUM ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-233

query I rowsort
SELECT DISTINCT - - 75 + 83 AS col2 FROM tab0 cor0
----
158

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - 42 > ( ( + - 40 ) )
----

query I rowsort
SELECT DISTINCT - 75 + - 70 * 69 * col2 AS col2 FROM tab2 cor0
----
-111165
-193275
-280215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 IN ( col1, col1 )
----

query I rowsort
SELECT - - col0 + - - col2 + col0 AS col0 FROM tab0 AS cor0
----
184
293
77

query I rowsort
SELECT ALL - 31 - - - col0 + + 12 FROM tab1 AS cor0
----
-104
-110
-70

query I rowsort
SELECT + + ( + - 18 ) + + col1 * + col2 AS col1 FROM tab1 cor0
----
1326
277
3178

query I rowsort
SELECT 83 + - 84 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col1 + - 6 FROM tab0
----
-27
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 70 + SUM( - 4 ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 70 + SUM ( - 4 ) AS col0 FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - 66 * + 45 ) NOT IN ( 70 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 29 + - col2 + + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 71 IS NULL
----

query I rowsort
SELECT - col1 * col1 FROM tab2 WHERE + - col1 * + ( + col0 ) * + col2 IN ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT MAX( DISTINCT + 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT MAX ( DISTINCT + 80 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT - 67 + - col1 FROM tab1
----
-114
-72
-81

query II rowsort
SELECT ALL 87 AS col1, + col1 + - ( - - col0 ) FROM tab1
----
87
-37
87
-44
87
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 * + + col2 + col2 * ( - col0 ) col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col0 + - 24 / + - 38 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT col1 DIV - 75 + - 92 + + ( + + col2 ) FROM tab0 AS cor0
----
-46
-82
7

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT col1 / - 75 + - 92 + + ( + + col2 ) FROM tab0 AS cor0
----
-46
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL - - 4 + + col2 + - 2 - + 18 + 66 / - - CAST( - col1 AS SIGNED ) * col0 - + col0 / + 5 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - - 4 + + col2 + - 2 - + 18 + 66 / - - CAST ( - col1 AS INTEGER ) * col0 - + col0 / + 5 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4021
SELECT DISTINCT COUNT( * ) * + + 80 * + - CAST( NULL AS DECIMAL ) + - - 57 / - + MAX( ALL + col1 ) + - 22 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT COUNT ( * ) * + + 80 * + - CAST ( NULL AS REAL ) + - - 57 / - + MAX ( ALL + col1 ) + - 22 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 34 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT - 36 * + - 75 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2709

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - 36 * + - 75 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2709

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 * 9 + + + col0 - + col2 < 87 * + - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 17 AS col0 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT + col0 DIV col1 + col2 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + col0 / col1 + col2 FROM tab0 AS cor0
----
14
196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT 50 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-4027
SELECT 50 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT ALL + + ( 23 ) DIV 49 DIV + col2 * + - 98 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + + ( 23 ) / 49 / + col2 * + - 98 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab0
----
63

query II rowsort
SELECT ALL col2 AS col1, - 22 AS col0 FROM tab0
----
10
-22
47
-22
99
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT + 61 AS col2, - MIN( + col1 ) AS col0 FROM tab1
----
61
-5

skipif mysql # not compatible
query II rowsort label-4033
SELECT + 61 AS col2, - MIN ( + col1 ) AS col0 FROM tab1
----
61
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + COUNT( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * + ( + col2 ) + + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) + + 61 FROM tab2 cor0
----
107
141
177

query I rowsort
SELECT 75 + 83 FROM tab0
----
158
158
158

query I rowsort
SELECT DISTINCT 91 + + - col2 FROM tab0
----
-8
44
81

query I rowsort
SELECT - 33 + col2 - + col0 FROM tab1 AS cor0
----
-56
-59
12

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab2 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( DISTINCT + 14 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4041
SELECT COUNT ( DISTINCT + 14 ) col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT + - ( - 14 ), col0 FROM tab0 AS cor0 WHERE 55 IS NOT NULL
----
14
15
14
87
14
97

query I rowsort
SELECT ALL + 53 - - 28 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
-1258
-1779
-2105

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - + col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + - COUNT( * ) * 37 * 28 AS col0 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + - COUNT ( * ) * 37 * 28 AS col0 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - COUNT( * ) - - 88 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4048
SELECT - COUNT ( * ) - - 88 FROM tab0
----
85

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( - 92 ) IS NOT NULL
----

query I rowsort
SELECT + 13 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= col2 + + + col2 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= col2 + + + col2 + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT 65 DIV + col0 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT 65 / + col0 col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + col1 * + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL + CAST( - + COUNT( ALL 62 ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + CAST ( - + COUNT ( ALL 62 ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 6 * + 61 * - + 52 FROM tab2 cor0
----
-19032
-19032
-19032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 96 * + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4059
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 62, - 28 + - CAST( NULL AS SIGNED ) - + col0 )
----

skipif mysql # not compatible
query III rowsort label-4059
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 62, - 28 + - CAST ( NULL AS INTEGER ) - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT + - 20 DIV col1 FROM tab0 AS cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT + - 20 / col1 FROM tab0 AS cor0
----
-20
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT - 95 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 95 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, 13 AS col1 FROM tab2 AS cor0
----
46
13
64
13
75
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col1 * - ( 98 ) * + col0 + - - col1 FROM tab0
----
119151
179067
9507

query I rowsort
SELECT ( 96 ) AS col0 FROM tab0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT + 89 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 89 / col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 BETWEEN + + col1 AND NULL
----

query II rowsort
SELECT + 7 + - + col0, - 86 * + ( + 73 ) + + 37 FROM tab1 WHERE NOT ( + col2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col1 ) * + - 0 + + + ( - + col2 ) > - ( + col1 ) / col0 * - - col1 * + col2 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 60 FROM tab1 WHERE NOT NULL IS NOT NULL
----
60

query I rowsort
SELECT DISTINCT - col1 * + + col1 AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN + 88 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - ( + col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4075
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) BETWEEN - col2 AND + + 82 * - 96
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) BETWEEN - col2 AND + + 82 * - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT ALL + col1, - col2 + + - col2 FROM tab0
----
1
-198
21
-20
81
-94

query I rowsort
SELECT ALL - col1 * + ( col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - SUM( DISTINCT + 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - SUM ( DISTINCT + 17 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL + - 4 FROM tab2 AS cor0 WHERE ( col0 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT - 5 + 85 DIV + col2 AS col0 FROM tab2 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - 5 + 85 / + col2 AS col0 FROM tab2 cor0
----
-2
-3
-4

query I rowsort
SELECT - + ( - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col0 + + - 70 AS col1 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT ALL + col0 * + 43 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
2097
3596
3845

query I rowsort
SELECT DISTINCT + - 88 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-41
-74
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * 78 + 28 col1 FROM tab0 AS cor0
----
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - SUM( + - 58 ) + 72 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4087
SELECT - SUM ( + - 58 ) + 72 FROM tab0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + + 23 + + - col2 * + + col1 FROM tab2
----
-1104
-2993
-3788

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT - ( - COUNT( * ) ) * + + SUM( DISTINCT col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT - ( - COUNT ( * ) ) * + + SUM ( DISTINCT col0 ) FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT DISTINCT COUNT( * ) * + 68 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT COUNT ( * ) * + 68 FROM tab1
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + col2 col0 FROM tab0
----
-3525
-7425
-750

query II rowsort
SELECT ALL - col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4094
SELECT * FROM tab0 WHERE CAST( + 48 AS DECIMAL ) IN ( col1 * 64 + - ( - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4094
SELECT * FROM tab0 WHERE CAST ( + 48 AS REAL ) IN ( col1 * 64 + - ( - - col1 ) )
----

query I rowsort
SELECT DISTINCT - col2 * - 96 AS col2 FROM tab2
----
2208
3840
5568

query II rowsort
SELECT ALL col2 AS col2, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT + SUM( - ( + + CAST( - 66 AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + SUM ( - ( + + CAST ( - 66 AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN NULL AND NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL <> + col1 * + 81 )
----

query I rowsort
SELECT 49 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - ( col1 ) NOT BETWEEN + col0 / + 59 AND - 87 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT - col1 DIV ( col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4100
SELECT - col1 / ( col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT 88 DIV - MIN( ALL col0 ) - ( 63 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4101
SELECT 88 / - MIN ( ALL col0 ) - ( 63 ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT CAST( + + ( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4102
SELECT CAST ( + + ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 52 * col2 + - 73 FROM tab1 AS cor0
----
2995
3463
4919

query II rowsort
SELECT - col0 * col2, col2 AS col0 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) * + 11 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-4105
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) * + 11 FROM tab2
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 92 * + 35 * - 77 AS col0 FROM tab1
----
247940

query I rowsort
SELECT DISTINCT - col2 * 95 AS col0 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT + 35 * + - 74 FROM tab0, tab1 AS cor0
----
9 values hashing to e0c1179893717316496d4a2bd392f9aa

query I rowsort
SELECT ALL col1 * + 86 FROM tab0
----
1806
6966
86

query I rowsort
SELECT DISTINCT + 66 * + - 95 FROM tab2
----
-6270

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL 52 DIV - 7 AS col1 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL 52 / - 7 AS col1 FROM tab1
----
-7
-7
-7

query II rowsort
SELECT DISTINCT - col0 + col2 + + 18 AS col1, col2 AS col1 FROM tab0
----
-59
10
20
99
50
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT - 19 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-4114
SELECT - 19 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19
3

query I rowsort
SELECT ALL + + 44 + - 98 - col2 AS col1 FROM tab2 AS cor0
----
-112
-77
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT ( CAST( ( + 6 ) AS SIGNED ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + 72
----

skipif mysql # not compatible
query I rowsort label-4116
SELECT ( CAST ( ( + 6 ) AS INTEGER ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + 72
----

query I rowsort
SELECT - col1 + - 73 AS col2 FROM tab0
----
-154
-74
-94

query II rowsort
SELECT 47 * - col1, col2 FROM tab0
----
-3807
47
-47
99
-987
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + MAX( col1 ) * - 37 FROM tab2 AS cor0
----
-2849

skipif mysql # not compatible
query I rowsort label-4119
SELECT + MAX ( col1 ) * - 37 FROM tab2 AS cor0
----
-2849

query I rowsort
SELECT DISTINCT col2 * - ( + 72 ) + + 66 * - + ( - 91 ) + 74 FROM tab0 AS cor0
----
-1048
2696
5360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4121
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 99 * - 78 * + - 42 * col2 FROM tab0 AS cor0
----
-15243228
-32108076
-3243240

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + + col1 * + - 62 * col1 BETWEEN + col0 AND + col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4124
SELECT ALL - col1 - + CAST( NULL AS SIGNED ), + 7 col1 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4124
SELECT ALL - col1 - + CAST ( NULL AS INTEGER ), + 7 col1 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT - COUNT( * ) + MIN( + col1 ) - - AVG ( col0 ) * + COUNT( - col1 ) col0, - SUM( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4125
SELECT - COUNT ( * ) + MIN ( + col1 ) - - AVG ( col0 ) * + COUNT ( - col1 ) col0, - SUM ( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 - col1 AS col1 FROM tab0
----
-140
-60
-80

query II rowsort
SELECT 35 AS col1, 22 - - col0 FROM tab2
----
35
68
35
86
35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + MAX ( - + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - SUM( DISTINCT + + col1 ) * + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4129
SELECT - SUM ( DISTINCT + + col1 ) * + COUNT ( * ) FROM tab1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT 59 DIV - - col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4130
SELECT 59 / - - col2 AS col0 FROM tab0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4131
SELECT - + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IN ( - col0 - - col0, 39 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IN ( - col0 - - col0, 39 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT DISTINCT - + 23 AS col1, - 7 * COUNT( * ) * + SUM( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
-23
-3885

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4133
SELECT DISTINCT - + 23 AS col1, - 7 * COUNT ( * ) * + SUM ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
-23
-3885

query I rowsort
SELECT - col2 * - + 20 AS col0 FROM tab2
----
1160
460
800

query I rowsort
SELECT ALL col2 * + - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4136
SELECT - - col2 / 84 / ( CAST( NULL AS SIGNED ) ) + 10, - col0 FROM tab2 WHERE NOT col0 * col2 + + + 11 - - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4136
SELECT - - col2 / 84 / ( CAST ( NULL AS INTEGER ) ) + 10, - col0 FROM tab2 WHERE NOT col0 * col2 + + + 11 - - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + + MAX( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4137
SELECT + + MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 col1 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL col0 + + col1 * - col0 AS col1 FROM tab2 cor0
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - 11
----

query I rowsort
SELECT DISTINCT + col1 * + - col2 + + 74 AS col0 FROM tab2 AS cor0
----
-1099
-3006
-3812

query I rowsort
SELECT DISTINCT 56 + - + col2 + + col2 + - 21 * + col0 * ( 78 ) FROM tab1 AS cor0
----
-139174
-149002
-83482

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 26 <= NULL
----

query I rowsort
SELECT + ( + col1 ) * - 42 AS col1 FROM tab1 AS cor0
----
-1974
-210
-588

query I rowsort
SELECT ALL 63 * col2 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT DISTINCT 62 * - 66 AS col2, - COUNT( * ) * + + 76 AS col1 FROM tab2
----
-4092
-228

skipif mysql # not compatible
query II rowsort label-4146
SELECT DISTINCT 62 * - 66 AS col2, - COUNT ( * ) * + + 76 AS col1 FROM tab2
----
-4092
-228

query I rowsort
SELECT DISTINCT ( - - ( + col0 ) ) + 78 AS col1 FROM tab0
----
165
175
93

query I rowsort
SELECT + 38 + + + col0 FROM tab0 WHERE NULL IS NULL
----
125
135
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 25 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 * col1 + col2 * - col0 FROM tab0
----
-9534
4884
579

query I rowsort
SELECT DISTINCT + 71 + + 81 FROM tab0 AS cor0
----
152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + - 52 / - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT + ( + col1 ) - + col2 - CAST( - 29 AS SIGNED ) FROM tab2
----
38
57
66

skipif mysql # not compatible
query I rowsort label-4153
SELECT + ( + col1 ) - + col2 - CAST ( - 29 AS INTEGER ) FROM tab2
----
38
57
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT SUM( DISTINCT - CAST( col0 AS SIGNED ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT SUM ( DISTINCT - CAST ( col0 AS INTEGER ) ) FROM tab0
----
-199

query I rowsort
SELECT ALL col0 * col2 + + - ( - col0 ) + + 56 FROM tab1 AS cor0
----
5003
5156
6335

query I rowsort
SELECT ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + - 78 AS col2 FROM tab1 AS cor0
----
-125
-83
-92

query I rowsort
SELECT - 97 AS col2 FROM tab2 AS cor0 WHERE col2 * - ( - col1 ) + - 27 <= - - col1 * + col0 + col2 + + 73 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - 51 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 51 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
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-4161
SELECT + COUNT ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL - 88 DIV + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 88 / + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT DISTINCT + - 93 DIV + + col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + - 93 / + + col0 FROM tab2 cor0
----
-1
-2

query II rowsort
SELECT ALL - 81, - 2 AS col1 FROM tab1 AS cor0
----
-81
-2
-81
-2
-81
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 36 + 29 * - col2 <= + col0
----
15
81
47
97
1
99

query I rowsort
SELECT + 25 * + col1 * 31 FROM tab0 AS cor0
----
16275
62775
775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4168
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col1 <= ( - 8 + - + CAST( - 66 AS SIGNED ) + CAST( - ( col1 ) AS SIGNED ) - - 4 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4168
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col1 <= ( - 8 + - + CAST ( - 66 AS INTEGER ) + CAST ( - ( col1 ) AS INTEGER ) - - 4 )
----
15
81
47
87
21
10

query I rowsort
SELECT + ( + col0 ) * + col2 * - + 65 + + + col2 + - 67 FROM tab2
----
-166427
-282759
-68814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0 WHERE col2 * - 68 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 68 AS col2 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT - - col2 + - + 50 AS col1 FROM tab0 AS cor0
----
-3
-40
49

query I rowsort
SELECT col2 + - - 70 AS col0 FROM tab1 cor0
----
129
138
166

query I rowsort
SELECT ALL - 68 * - + col2 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT ALL + col0 * - col0 * - col2 + 47 AS col1 FROM tab0 AS cor0
----
10622
75737
931538

query I rowsort
SELECT col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - 74 * - + 32 AS col1 FROM tab1 AS cor0
----
2368

query I rowsort
SELECT DISTINCT - - 57 * 77 AS col1 FROM tab1 AS cor0
----
4389

query I rowsort
SELECT + 36 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + col0 * + 68 + + 71 FROM tab0
----
-10
5987
-47
1091
-99
6667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT ALL - col2 * + - 78 DIV - + 39 + + col1 FROM tab1
----
-113
-178
-89

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - col2 * + - 78 / - + 39 + + col1 FROM tab1
----
-113
-178
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 12 * - COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4183
SELECT 12 * - COUNT ( * ) AS col1 FROM tab0
----
-36

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col1 * + 88 IS NULL
----

query II rowsort
SELECT ALL col1, - col2 + col2 FROM tab1
----
14
0
47
0
5
0

query II rowsort
SELECT 25, 23 / + col1 FROM tab1 WHERE NULL = 99
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4187
SELECT ALL - 99 * - 51 * - COUNT( * ) + - MAX( - - CAST( + col0 AS SIGNED ) ), - COUNT( * ) col0 FROM tab0
----
-15244
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4187
SELECT ALL - 99 * - 51 * - COUNT ( * ) + - MAX ( - - CAST ( + col0 AS INTEGER ) ), - COUNT ( * ) col0 FROM tab0
----
-15244
-3

query I rowsort
SELECT + col2 + - 87 * - + 78 + col2 + col2 FROM tab1 cor0
----
6963
6990
7074

query I rowsort
SELECT - - col2 + - + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT col0 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT col0 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( + - col2 ) * - 30 AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( + - col2 ) * - 30 AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + 70 * 39 - SUM( ALL - 30 ) FROM tab2 AS cor0
----
2820

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + 70 * 39 - SUM ( ALL - 30 ) FROM tab2 AS cor0
----
2820

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 * - - col0 NOT BETWEEN - 76 AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4196
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT + COUNT( * ) col2, + 36 FROM tab0
----
3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4197
SELECT + COUNT ( * ) col2, + 36 FROM tab0
----
3
36

query I rowsort
SELECT + ( 9 ) AS col0 FROM tab1 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT - ( + - 52 ) FROM tab2
----
52
52
52

query I rowsort
SELECT - ( + 66 ) FROM tab0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4201
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT ALL - col2 DIV + 3 FROM tab1
----
-19
-22
-32

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - col2 / + 3 FROM tab1
----
-19
-22
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL COUNT( + col1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL COUNT ( + col1 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - - 70 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + + col1 + - 50 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3
-36
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4206
SELECT 71 * - 19 AS col1, - 32 DIV - col2 FROM tab2
----
-1349
0
-1349
0
-1349
1

skipif mysql # not compatible
query II rowsort label-4206
SELECT 71 * - 19 AS col1, - 32 / - col2 FROM tab2
----
-1349
0
-1349
0
-1349
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4207
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4207
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + COUNT( * ) + - 30 AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + COUNT ( * ) + - 30 AS col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT col2 - + + 23 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 79 IS NULL
----

query I rowsort
SELECT 36 * - + 46 + + col0 AS col2 FROM tab0
----
-1559
-1569
-1641

query I rowsort
SELECT DISTINCT 56 * + - 24 FROM tab2
----
-1344

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4213
SELECT - 38 - - - 23 FROM tab1 WHERE ( NOT CAST( col1 AS SIGNED ) NOT IN ( - + CAST( 56 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 38 - - - 23 FROM tab1 WHERE ( NOT CAST ( col1 AS INTEGER ) NOT IN ( - + CAST ( 56 AS REAL ) ) )
----

query I rowsort
SELECT ALL + 17 + + - 18 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( 1 )
----

query II rowsort
SELECT - - 80, + col2 FROM tab2 AS cor0
----
80
23
80
40
80
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= - - col1 + - 42 + - col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - ( + ( 93 ) ) AS col0 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT - CAST( NULL AS SIGNED ) * + 0 * + 86 * - 12 * - ( + 48 ) + - COUNT( * ) + - MAX( DISTINCT 9 ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT - CAST ( NULL AS INTEGER ) * + 0 * + 86 * - 12 * - ( + 48 ) + - COUNT ( * ) + - MAX ( DISTINCT 9 ) col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - col2 * 99 FROM tab0 cor0
----
-4653
-9801
-990

query I rowsort
SELECT 2 * - col0 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT ALL + - 21 AS col2, 74 FROM tab2 AS cor0
----
-21
74
-21
74
-21
74

query I rowsort
SELECT DISTINCT + 94 + + 29 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT - - COUNT( * ) AS col0, 31 FROM tab2 AS cor0
----
3
31

skipif mysql # not compatible
query II rowsort label-4227
SELECT - - COUNT ( * ) AS col0, 31 FROM tab2 AS cor0
----
3
31

query II rowsort
SELECT ALL - col0 AS col2, 26 FROM tab2 AS cor0
----
-46
26
-64
26
-75
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN + col1 AND - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, - col0 * + + 51 FROM tab2 cor0
----
46
-2346
64
-3264
75
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT - + SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - + SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT + 54 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 54 / + col2 AS col0 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4233
SELECT ALL 99 + + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 99 + + - CAST ( NULL AS REAL ) FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 32 col1 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT ALL 75 * + col2 * + 73 FROM tab1
----
323025
372300
525600

query I rowsort
SELECT - ( 46 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT col1 * + + 93 AS col1 FROM tab0 cor0
----
1953
7533
93

query II rowsort
SELECT - col2 * col1 AS col2, - ( - col1 ) FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + + COUNT( * ) col1 FROM tab2 WHERE NOT ( NOT col1 * + 50 > NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT + + COUNT ( * ) col1 FROM tab2 WHERE NOT ( NOT col1 * + 50 > NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 46 + + 73 + + COUNT( * ) * + - 36 AS col2 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-4241
SELECT 46 + + 73 + + COUNT ( * ) * + - 36 AS col2 FROM tab2 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + 29 + + 17 + COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 29 + + 17 + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 84, col1 col0 FROM tab1 cor0
----
84
14
84
47
84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - + MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4246
SELECT - + MIN ( - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col1 + col2 + + col2 FROM tab1 AS cor0
----
113
178
89

query I rowsort
SELECT + col0 + - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL - - COUNT( * ) + + 73 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - - COUNT ( * ) + + 73 AS col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT 32 - 70 + + col1 AS col2 FROM tab0
----
-17
-37
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT col1 - col0 - + + col2 + 65 + - col1 DIV + - 9 AS col0 FROM tab1
----
-42
-67
-74

skipif mysql # not compatible
query I rowsort label-4251
SELECT col1 - col0 - + + col2 + 65 + - col1 / + - 9 AS col0 FROM tab1
----
-42
-67
-74

query I rowsort
SELECT 83 + - - col1 AS col1 FROM tab2
----
134
150
160

query I rowsort
SELECT + 33 + 88 FROM tab1
----
121
121
121

query I rowsort
SELECT ALL + - 90 + col2 + - - col1 FROM tab1 AS cor0
----
-26
20
25

query II rowsort
SELECT ALL + + col1 + 76 + - 32 + - - col1, 29 AS col1 FROM tab0 AS cor0
----
206
29
46
29
86
29

query I rowsort
SELECT ALL - 75 + - + col1 - + col2 + ( - - 98 ) FROM tab0 cor0
----
-105
-77
-8

query I rowsort
SELECT ALL + - 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - 23 * + col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 45 NOT BETWEEN NULL AND 46 * - 87 + - 34
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 55 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - COUNT( * ) * + - COUNT( * ) + + - 1 * COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COUNT ( * ) * + - COUNT ( * ) + + - 1 * COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - - 84, + 63 AS col0 FROM tab1 AS cor0
----
84
63
84
63
84
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - MIN( ALL - + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4263
SELECT - MIN ( ALL - + col1 ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT - 66 * - col0 * - + 67 + + col1 FROM tab1 AS cor0
----
-225508
-375865
-402355

query II rowsort
SELECT ALL col0 AS col0, - 62 FROM tab2
----
46
-62
64
-62
75
-62

query I rowsort
SELECT + col0 * - 9 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 11 FROM tab0
----
-1089
-110
-517

query II rowsort
SELECT col0 AS col2, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT * FROM tab1 WHERE NOT ( + CAST( - 86 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT * FROM tab1 WHERE NOT ( + CAST ( - 86 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT 74 DIV - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4271
SELECT 74 / - col2 AS col1 FROM tab2
----
-1
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT + ( - - col1 ) DIV col2 * ( - + col0 ) FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + ( - - col1 ) / col2 * ( - + col0 ) FROM tab2
----
-64
-75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL 85 + + + COUNT( ALL + + col1 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL 85 + + + COUNT ( ALL + + col1 ) FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - SUM( col0 ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-4274
SELECT - SUM ( col0 ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT ALL - 21 + + col2 FROM tab0 cor0
----
-11
26
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT ALL + col1 + - + 45 + + + 12 + - - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + col1 + - + 45 + + + 12 + - - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + ( - 46 ) AS col1 FROM tab1 AS cor0
----
39
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 79 col1 FROM tab0 AS cor0
----
-1659
-6399
-79

query I rowsort
SELECT ALL 14 * + col1 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT ( - + 38 ) FROM tab0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + col2 col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT + 86 * 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8e3c26cd893265aa32c4c9c0043bbb8e

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE + col1 * + col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT 15 AS col2, col0 + - + col0 - + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( 54 ) FROM tab2 AS cor0 WHERE col2 * + 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4286
SELECT ALL 80 + + col2, col2 * + - col1 + - - 69 DIV + 43 AS col1 FROM tab1 AS cor0
----
139
-294
148
-3195
176
-1343

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL 80 + + col2, col2 * + - col1 + - - 69 / + 43 AS col1 FROM tab1 AS cor0
----
139
-294
148
-3195
176
-1343

query I rowsort
SELECT DISTINCT + ( ( - + col0 ) ) + + 22 + + 26 * col1 AS col1 FROM tab0 AS cor0
----
-49
2113
481

query I rowsort
SELECT + + 53 + + + col2 AS col1 FROM tab2 AS cor0
----
111
76
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 - + col0 col1 FROM tab2 AS cor0
----
-119
-137
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL col1 + + col1 + - 63 DIV - + 41 FROM tab2
----
103
135
155

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL col1 + + col1 + - 63 / - + 41 FROM tab2
----
103
135
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ALL col0 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL col0 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT - + CAST( col2 AS SIGNED ) AS col0 FROM tab0 WHERE ( - + ( - 59 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( - + ( - 59 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL SUM( ALL - 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL SUM ( ALL - 13 ) FROM tab0 AS cor0
----
-39

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 69 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query II rowsort label-4295
SELECT ALL col1 * 68 DIV + ( + ( - + col2 ) ), ( col2 ) FROM tab1
----
-47
68
-5
59
-9
96

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL col1 * 68 / + ( + ( - + col2 ) ), ( col2 ) FROM tab1
----
-47
68
-5
59
-9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 24 col0 FROM tab0 cor0
----
-1128
-2376
-240

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 + col2 * - col2 + ( col1 ) + 55 FROM tab2 AS cor0
----
-1468
-3242
-423

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + col1 BETWEEN - col0 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 95 * MIN( ALL ( + col1 ) ) col1 FROM tab2
----
4845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4300
SELECT DISTINCT 95 * MIN ( ALL ( + col1 ) ) col1 FROM tab2
----
4845

query I rowsort
SELECT ALL ( + 8 ) AS col0 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + COUNT( DISTINCT - 17 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4302
SELECT + COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT + COUNT( * ) * - 51 + - COUNT( * ) DIV + + MIN( 69 ) AS col0 FROM tab0 cor0 WHERE + 48 < col2 - - col0
----
-153

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( * ) * - 51 + - COUNT ( * ) / + + MIN ( 69 ) AS col0 FROM tab0 cor0 WHERE + 48 < col2 - - col0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + 94, - 26 AS col2 FROM tab0 cor0
----
94
-26
94
-26
94
-26

query I rowsort
SELECT DISTINCT 67 + - ( + 92 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + - SUM( ALL + + col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4307
SELECT + - SUM ( ALL + + col1 ) AS col0 FROM tab0 cor0
----
-103

query II rowsort
SELECT + 32, col2 AS col1 FROM tab1 AS cor0
----
32
59
32
68
32
96

query I rowsort
SELECT DISTINCT - 85 + col2 + + + 86 AS col0 FROM tab2 cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 col1, - col0 * - col1 FROM tab1 AS cor0
----
73
425
73
4277
73
714

query I rowsort
SELECT DISTINCT - 31 + + 81 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4312
SELECT COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL COUNT( * ) + - + 72 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL COUNT ( * ) + - + 72 FROM tab2
----
-69

query I rowsort
SELECT col1 - - - 53 * col2 AS col1 FROM tab2
----
-1168
-2043
-3007

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT ALL + 50 - - COUNT( ALL + col0 ) AS col2, + SUM( DISTINCT + + col2 ) col1 FROM tab1
----
53
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4316
SELECT ALL + 50 - - COUNT ( ALL + col0 ) AS col2, + SUM ( DISTINCT + + col2 ) col1 FROM tab1
----
53
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col1 * + - 8 AS col0 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL ( + CAST( col0 AS SIGNED ) ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL ( + CAST ( col0 AS INTEGER ) ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT - COUNT( DISTINCT - - 68 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - COUNT ( DISTINCT - - 68 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 + - - CAST( NULL AS SIGNED ) AND - 89
----

skipif mysql # not compatible
query III rowsort label-4321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 + - - CAST ( NULL AS INTEGER ) AND - 89
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 37 * - - col2 - - col0 - + 91 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 BETWEEN NULL AND 80 )
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 * ( + + 78 ) = NULL )
----

query I rowsort
SELECT - - 84 AS col1 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT ALL col0 * + + col1 AS col0, col0 DIV col2 FROM tab2
----
2346
2
4928
1
5025
1

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL col0 * + + col1 AS col0, col0 / col2 FROM tab2
----
2346
2
4928
1
5025
1

query I rowsort
SELECT - 64 * ( 28 ) FROM tab1
----
-1792
-1792
-1792

query I rowsort
SELECT ( + 88 ) * + 82 AS col2 FROM tab2
----
7216
7216
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT COUNT( 54 ) + - - MIN( 46 ) + COUNT( * ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-4330
SELECT COUNT ( 54 ) + - - MIN ( 46 ) + COUNT ( * ) FROM tab2
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - col2
----

query II rowsort
SELECT col2 * - + 64 + ( + - col2 ) - - col0, - col0 + + - col2 * - col0 * - col1 AS col0 FROM tab1
----
-3750
-25160
-4329
-290927
-6189
-68595

query I rowsort
SELECT ALL + col2 + + col0 + - + col2 + + 4 * - + ( 50 ) * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
1026
2755
9423

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT COUNT( + - col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4334
SELECT COUNT ( + - col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 + - 41 FROM tab0 AS cor0
----
-140
-51
-88

query I rowsort
SELECT DISTINCT 24 * 91 / + - col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 47 < + + 37
----

query I rowsort
SELECT ALL + + 57 * + col2 AS col1 FROM tab1 cor0
----
3363
3876
5472

query I rowsort
SELECT 58 + + col1 FROM tab0 AS cor0
----
139
59
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - + - col1 - - 21 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + + 93 AS col0 FROM tab0 AS cor0
----
103
140
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 83 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL col0 DIV - col1 + + col2 + 24 AS col1 FROM tab2 AS cor0
----
47
64
81

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL col0 / - col1 + + col2 + 24 AS col1 FROM tab2 AS cor0
----
47
64
81

query I rowsort
SELECT DISTINCT - 17 - 91 FROM tab0
----
-108

query II rowsort
SELECT DISTINCT col2 AS col1, - 68 * + 65 FROM tab2
----
23
-4420
40
-4420
58
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( 97 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( 97 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT - 53 AS col0, - ( - COUNT( * ) ) + - + COUNT( * ) - + - ( - 0 ) FROM tab1
----
-53
0

skipif mysql # not compatible
query II rowsort label-4347
SELECT - 53 AS col0, - ( - COUNT ( * ) ) + - + COUNT ( * ) - + - ( - 0 ) FROM tab1
----
-53
0

query I rowsort
SELECT ALL ( - 47 ) FROM tab2
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 13 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 < - 71 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT MAX( ALL + col0 ) col1 FROM tab1 WHERE NULL IN ( - col0 + col2, + col2, col1, 75 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4351
SELECT DISTINCT MAX ( ALL + col0 ) col1 FROM tab1 WHERE NULL IN ( - col0 + col2, + col2, col1, 75 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT - - 63 + + 32 AS col2, col0 * - col1 AS col2 FROM tab0 AS cor0
----
95
-1215
95
-1827
95
-97

query I rowsort
SELECT col1 + + 4 FROM tab1 AS cor0
----
18
51
9

query I rowsort
SELECT DISTINCT - 92 + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 54 + - - col1 FROM tab1 AS cor0
----
101
59
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * ( col1 ) BETWEEN col1 AND - + 98 * + col1
----

query I rowsort
SELECT ALL - col2 + + 85 * + + 15 - + 94 AS col0 FROM tab2 AS cor0
----
1123
1141
1158

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL COUNT( * ) + 4 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL COUNT ( * ) + 4 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
7

query I rowsort
SELECT + col0 * 85 AS col2 FROM tab2 AS cor0
----
3910
5440
6375

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - ( + CAST( NULL AS SIGNED ) ) * 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT - ( + CAST ( NULL AS INTEGER ) ) * 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 3 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( - 69 AS SIGNED ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( - 69 AS INTEGER ) AS col2 FROM tab1
----
-69

query I rowsort
SELECT DISTINCT 41 + + col2 + + col1 * + col1 * - 42 AS col1 FROM tab0
----
-18471
-275474
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab2
----
-3

query I rowsort
SELECT 53 * + 47 AS col0 FROM tab1
----
2491
2491
2491

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + 39 <= + 53 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT COUNT( * ) * COUNT( + 57 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT COUNT ( * ) * COUNT ( + 57 ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT - CAST( - col0 AS SIGNED ) - - 91 FROM tab0
----
106
178
188

skipif mysql # not compatible
query I rowsort label-4374
SELECT - CAST ( - col0 AS INTEGER ) - - 91 FROM tab0
----
106
178
188

query I rowsort
SELECT ALL col0 - + 67 AS col0 FROM tab1
----
-16
18
24

query I rowsort
SELECT ( - 20 ) FROM tab0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 87 / col2 <= col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 85 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4380
SELECT ALL + col0 + + col0 col1 FROM tab1 WHERE NOT ( - CAST( NULL AS DECIMAL ) * 69 ) NOT BETWEEN 28 AND ( + 78 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4380
SELECT ALL + col0 + + col0 col1 FROM tab1 WHERE NOT ( - CAST ( NULL AS REAL ) * 69 ) NOT BETWEEN 28 AND ( + 78 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT + col1 DIV + ( + 70 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + col1 / + ( + 70 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 * 50 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * - 6 + - 26 FROM tab2 WHERE ( + col0 ) BETWEEN - 54 AND + 55
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT COUNT( - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT COUNT ( - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4388
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4388
SELECT + CAST ( NULL AS REAL ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 81 + + col1 FROM tab1 AS cor0
----
-34
-67
-76

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE ( - 36 ) IN ( col2 )
----

query I rowsort
SELECT ALL 99 + col2 AS col2 FROM tab1 AS cor0
----
158
167
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab0 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT 7 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 28 IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( col1 )
----

query I rowsort
SELECT col0 * col1 FROM tab2 AS cor0 WHERE + col0 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL + CAST( col1 AS SIGNED ) col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT ALL + CAST ( col1 AS INTEGER ) col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT DISTINCT + - col2 DIV + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + - col2 / + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT DISTINCT col1 * + col1 + + 56 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE ( 17 ) + - ( col1 ) IS NOT NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - COUNT( col0 ) * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - COUNT ( col0 ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE col2 <> ( col1 )
----
-14
-47
-5

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab1
----
4345
484
810

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND 49 / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 - col2 * 22 col0 FROM tab0
----
-1002
-2176
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT 7 + 18 + - COUNT( * ) col0 FROM tab0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT 7 + 18 + - COUNT ( * ) col0 FROM tab0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * + col2 col1 FROM tab0
----
-2585
-5445
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL - 50 DIV - 4 FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 50 / - 4 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL 90 AS col2 FROM tab0 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL col1 DIV + col0 - - 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
9
9

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL col1 / + col0 - - 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
9
9

query I rowsort
SELECT - col1 + + + 75 FROM tab1
----
28
61
70

query I rowsort
SELECT col0 + + col0 * + 53 FROM tab1
----
2754
4590
4914

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col2 NOT BETWEEN ( 40 ) AND NULL
----

query I rowsort
SELECT + col0 + + col0 * 19 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT + col0 + + - ( - ( col2 ) ) - - 99 * + 44 * 34 AS col2 FROM tab0
----
148166
148201
148300

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 51 + + col1 + ( - col2 + - 33 ) AS col0 FROM tab1
----
-3
-36
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT ( + col2 + 60 * - col2 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - COUNT( * ) * - 62 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - COUNT ( * ) * - 62 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - 57 + - 80 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - 57 + - 80 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT - 95 + - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-146
-180
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT COUNT( DISTINCT - col1 ) + MAX( - col0 ) * COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT COUNT ( DISTINCT - col1 ) + MAX ( - col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT 84 - col1 * - 60 AS col2 FROM tab1
----
2904
384
924

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4429
SELECT ALL - 11 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - 11 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab0 AS cor0
----
67
67
67

query II rowsort
SELECT ALL + col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, + col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + - 66 AS col2, col1 FROM tab1 AS cor0
----
-66
14
-66
47
-66
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab0 WHERE NULL = - + 91
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 * + col2 * col2 + + 42 BETWEEN 41 + + col0 AND - 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * 28 AS col0 FROM tab1
----
1652
1904
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT 29 * + - MAX( DISTINCT col2 ) FROM tab0
----
-2871

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT 29 * + - MAX ( DISTINCT col2 ) FROM tab0
----
-2871

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - col0 > ( col1 * ( col0 * - col2 ) )
----

query I rowsort
SELECT 60 FROM tab1 WHERE NOT ( - 84 - + + ( 92 ) ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 31 BETWEEN ( col0 ) AND col0 / 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT - - 94 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1316
4418
470

skipif mysql # not compatible
query I rowsort label-4445
SELECT - - 94 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1316
4418
470

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1 * - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( - col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4448
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + - col0, + col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + - col0, + col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT + col0 + + 37 + - 20 AS col2 FROM tab2 AS cor0
----
63
81
92

query I rowsort
SELECT ALL - + col0 + - col0 - + ( + - 96 ) * - + col1 FROM tab1 AS cor0
----
-1446
-4694
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL COUNT( * ) * - ( - + 40 ) - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL COUNT ( * ) * - ( - + 40 ) - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
117

query I rowsort
SELECT - col0 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - 91 ) FROM tab1 cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - COUNT( * ) + + 19 AS col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - COUNT ( * ) + + 19 AS col1 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT COUNT( * ) + - 18 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT COUNT ( * ) + - 18 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT SUM( DISTINCT 76 ) * ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT SUM ( DISTINCT 76 ) * ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 AS col0 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT + col0 + + + 11 FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + COUNT( * ) * - - 84 - - - MAX( + 44 ) FROM tab2
----
208

skipif mysql # not compatible
query I rowsort label-4460
SELECT + COUNT ( * ) * - - 84 - - - MAX ( + 44 ) FROM tab2
----
208

query I rowsort
SELECT ALL 48 + - - col1 FROM tab1
----
53
62
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4462
SELECT DISTINCT col1 + + col0 AS col1, + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
138
91
65
51
90
85

skipif mysql # not compatible
query II rowsort label-4462
SELECT DISTINCT col1 + + col0 AS col1, + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
138
91
65
51
90
85

query II rowsort
SELECT DISTINCT + + col1 AS col0, col0 + + 25 AS col0 FROM tab1 AS cor0
----
14
76
47
116
5
110

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 77 - col2 NOT BETWEEN - 55 AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT ( + col0 ) DIV - 51 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

skipif mysql # not compatible
query I rowsort label-4465
SELECT ( + col0 ) / - 51 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + - MIN( ALL + + col2 ) - + ( - 54 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + - MIN ( ALL + + col2 ) - + ( - 54 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL + MAX( + + col0 ) + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE 72 IN ( + - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + MAX ( + + col0 ) + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE 72 IN ( + - 22 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col1 * - + 4 FROM tab1 AS cor0
----
-105
-107
-279

query I rowsort
SELECT DISTINCT - 78 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-78

query I rowsort
SELECT col1 * + 87 AS col0 FROM tab1 cor0
----
1218
4089
435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col0 * - - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col0 / + - col1
----

query I rowsort
SELECT ALL 66 * - + 32 AS col1 FROM tab0
----
-2112
-2112
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - COUNT( * ) + 39 * MIN( col1 ) AS col2 FROM tab1 WHERE col1 IN ( 7 + - - col0 ) OR ( - 53 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - COUNT ( * ) + 39 * MIN ( col1 ) AS col2 FROM tab1 WHERE col1 IN ( 7 + - - col0 ) OR ( - 53 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT + 39 AS col0, - COUNT( * ) FROM tab2
----
39
-3

skipif mysql # not compatible
query II rowsort label-4476
SELECT + 39 AS col0, - COUNT ( * ) FROM tab2
----
39
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT - ( + - 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-4477
SELECT - ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL col2 * - + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL col2 * - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + + col2
----

query II rowsort
SELECT + col1 AS col2, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT + - col1 * 48 FROM tab0 WHERE NULL IS NULL
----
-1008
-3888
-48

query I rowsort
SELECT DISTINCT col1 + col0 + - 82 FROM tab2 AS cor0
----
15
59
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 + col1 NOT IN ( + col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT MIN( DISTINCT + ( + 14 ) ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT MIN ( DISTINCT + ( + 14 ) ) AS col1 FROM tab0
----
14

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 WHERE - 92 + - 16 BETWEEN col2 AND + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - - COUNT( * ) + + 50 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - - COUNT ( * ) + + 50 FROM tab2 cor0
----
53

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col0 + + col1 + - + col1 AS col1 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + ( + 58 ) + + - col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT col2 + - + 6 AS col1 FROM tab1
----
53
62
90

query I rowsort
SELECT ALL + col2 - + - 40 AS col1 FROM tab2
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - MIN( DISTINCT + - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) AS col0 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT - - col0 DIV + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT - - col0 / + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 AS cor0 WHERE NOT + 64 * + col2 NOT BETWEEN - col1 AND ( - ( - col2 ) * + + ( + col1 ) - 66 )
----

query I rowsort
SELECT DISTINCT + 14 - 27 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE col0 / + col1 IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + 30 * - COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 30 * - COUNT ( * ) FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / - - col2 * 58 + - 23 * col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT ALL + col1 DIV + 86 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + col1 / + 86 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT DISTINCT MAX( ALL + - col2 ), + COUNT( - col0 ) * 86 AS col2 FROM tab1
----
-59
258

skipif mysql # not compatible
query II rowsort label-4503
SELECT DISTINCT MAX ( ALL + - col2 ), + COUNT ( - col0 ) * 86 AS col2 FROM tab1
----
-59
258

query I rowsort
SELECT ALL - - col1 * + 76 + - + col1 FROM tab1 AS cor0
----
1050
3525
375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 4 ) BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 20 ) + - - col2 > - + col2 DIV + - 25 * + + col0 - + + 88 + - col2
----

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 20 ) + - - col2 > - + col2 / + - 25 * + + col0 - + + 88 + - col2
----

query I rowsort
SELECT ALL col2 * + - 77 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - 66 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT CAST ( NULL AS REAL ) - - 66 FROM tab0, tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 53 * - col1 ) < + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 26 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT - 53 AS col0 FROM tab2 AS cor0 WHERE NULL <> col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL ( 77 ) + - 73 AS col1 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - col1 + 93 AS col0 FROM tab2
----
16
26
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT - - 50 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - 50 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT COUNT( ( - - col0 ) ) FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT COUNT ( ( - - col0 ) ) FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / 51 * + col0 BETWEEN col2 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4520
SELECT 50, - CAST( + col0 AS SIGNED ) + + + col2 DIV - - col0 AS col1 FROM tab0 AS cor0
----
50
-12
50
-87
50
-96

skipif mysql # not compatible
query II rowsort label-4520
SELECT 50, - CAST ( + col0 AS INTEGER ) + + + col2 / - - col0 AS col1 FROM tab0 AS cor0
----
50
-12
50
-87
50
-96

query I rowsort
SELECT DISTINCT - 76 - - + 35 AS col1 FROM tab2 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * - 22 - + + 17 col0 FROM tab1 AS cor0
----
-853
-853
-853

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - - 4 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + MAX( col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + MAX ( col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT col0 * + col2 * col1 - 46 AS col1 FROM tab0
----
18224
57059
9557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab1
----
25

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4528
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + MAX( ALL 45 ) + 55 AS col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + MAX ( ALL 45 ) + 55 AS col0 FROM tab2 AS cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL - ( + - 63 ) * - - 44 * COUNT( * ) DIV ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2772

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - ( + - 63 ) * - - 44 * COUNT ( * ) / ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2772

query I rowsort
SELECT - ( - 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT 33 * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
288

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT 33 * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL - 41 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - 41 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT - + 80 * - col2 FROM tab1 cor0
----
4720
5440
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL - ( + COUNT( ALL col2 ) ) DIV - 97 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - ( + COUNT ( ALL col2 ) ) / - 97 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT - col2 / CAST( + col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) / + col0 + + col2 + + + col2 * - col2 / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col2 / CAST ( + col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / + col0 + + col2 + + + col2 * - col2 / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + + col1 * ( 54 ) + + - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - MAX( - + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4540
SELECT - MAX ( - + col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT ALL - col0 * + 32 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL MAX( DISTINCT + 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL MAX ( DISTINCT + 49 ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT + 78 * + col2 * - col0 FROM tab1
----
-381888
-391170
-482664

query II rowsort
SELECT + col0, - 18 FROM tab2
----
46
-18
64
-18
75
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4545
SELECT ALL * FROM tab2 WHERE NOT - - 1 BETWEEN + - CAST( NULL AS DECIMAL ) AND 39
----

skipif mysql # not compatible
query III rowsort label-4545
SELECT ALL * FROM tab2 WHERE NOT - - 1 BETWEEN + - CAST ( NULL AS REAL ) AND 39
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IS NOT NULL AND NULL >= - 96
----

query I rowsort
SELECT col1 + 4 * col2 AS col2 FROM tab2
----
143
237
299

query II rowsort
SELECT ALL col0 AS col2, + col1 * + col2 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - COUNT( * ) + - 8 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - COUNT ( * ) + - 8 FROM tab2
----
-11

query I rowsort
SELECT + + col2 + - 54 AS col1 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT col2 * + ( col0 ) * + col0 * - - col0 + + col2 - - col1 * - + col1 AS col2 FROM tab1
----
12734396
36233409
51240687

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col1 * - col0 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) >= - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT MIN( ALL - col0 ) FROM tab0 AS cor0 WHERE 91 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT MIN ( ALL - col0 ) FROM tab0 AS cor0 WHERE 91 IS NULL
----
NULL

query I rowsort
SELECT - 42 * 30 + - col2 AS col2 FROM tab1 AS cor0
----
-1319
-1328
-1356

query II rowsort
SELECT ALL - col0 + - col1 + + col1 AS col1, + col0 * col2 + - - col1 FROM tab1 AS cor0
----
-51
4910
-85
5020
-91
6235

query I rowsort
SELECT + 60 * - - 41 + + 34 FROM tab1 AS cor0
----
2494
2494
2494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 20 + - - col0 * - col1 col1 FROM tab0 AS cor0
----
-118
-1316
-1868

query I rowsort
SELECT DISTINCT col0 - + 58 FROM tab2 AS cor0
----
-12
17
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT MIN( - col1 ) - + SUM( 10 ) + CAST( NULL AS SIGNED ) / COUNT( * ) * - - 78 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT MIN ( - col1 ) - + SUM ( 10 ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - - 78 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT COUNT( * ), 81 * + - 46 AS col1 FROM tab2
----
3
-3726

skipif mysql # not compatible
query II rowsort label-4563
SELECT COUNT ( * ), 81 * + - 46 AS col1 FROM tab2
----
3
-3726

query II rowsort
SELECT DISTINCT + ( - col2 ) * + col1, - col1 AS col1 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT + col1 DIV + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + col1 / + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT ALL - 83 / - 32 + - col1 * - 27 - + col0 AS col0, + col2 AS col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + - COUNT( * ) * - - 82 * + + MAX( ALL - + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14514

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - COUNT ( * ) * - - 82 * + + MAX ( ALL - + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14514

onlyif mysql # DIV for integer division: 
query II rowsort label-4568
SELECT 18 * col0 DIV - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-156
-10
-17
-99
-5
-47

skipif mysql # not compatible
query II rowsort label-4568
SELECT 18 * col0 / - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-156
-10
-17
-99
-5
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL CAST( - col1 AS SIGNED ) * - ( + + col2 ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL CAST ( - col1 AS INTEGER ) * - ( + + col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4570
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) / col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - ( + CAST ( NULL AS REAL ) ) / col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4571
SELECT + MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + 70 * + 61 AS col2 FROM tab1 AS cor0
----
4270
4270
4270

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT ALL + 54 DIV + 9 col2 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4573
SELECT ALL + 54 / + 9 col2 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT + + 85 DIV col1, + col2 FROM tab1 cor0
----
1
68
17
59
6
96

skipif mysql # not compatible
query II rowsort label-4574
SELECT + + 85 / col1, + col2 FROM tab1 cor0
----
1
68
17
59
6
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT - - MAX( + CAST( - 5 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4575
SELECT - - MAX ( + CAST ( - 5 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL + COUNT( * ) * - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * + 77 * + - ( + 35 ) + + 53 + - + col1 AND + - col1 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * + 77 * + - ( + 35 ) + + 53 + - + col1 AND + - col1 + + col2
----
0

query I rowsort
SELECT DISTINCT + + 62 AS col2 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT COUNT( * ) * + 32 AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT COUNT ( * ) * + 32 AS col2 FROM tab0
----
96

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT 82 FROM tab1 WHERE - + col1 > + + ( + + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT CAST( 90 AS SIGNED ) FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( 90 AS INTEGER ) FROM tab0
----
90
90
90

query III rowsort
SELECT * FROM tab2 WHERE 28 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + - ( 99 ) + 58 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 5 col0 FROM tab0 AS cor0
----
-26
-6
-86

query I rowsort
SELECT ALL col1 * - ( - col0 ) * ( - + ( - col1 ) ) + col0 FROM tab0 AS cor0
----
194
38454
98430

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( * ) + SUM( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT COUNT ( * ) + SUM ( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4587
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( + 61 AS SIGNED ) + 70 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4587
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( + 61 AS INTEGER ) + 70 IS NOT NULL
----

query II rowsort
SELECT 53 AS col0, col2 FROM tab2 AS cor0
----
53
23
53
40
53
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 78 * COUNT( * ) AS col1 FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 78 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL 50 + + - CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-37
-47
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4590
SELECT ALL 50 + + - CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-37
-47
35

query I rowsort
SELECT DISTINCT + col1 - + ( - 89 ) + 51 FROM tab1 AS cor0
----
145
154
187

query I rowsort
SELECT - col2 - col0 + - col1 - col1 + col2 * + - col1 * - col2 * - + col1 * col2 FROM tab2 AS cor0
----
-31646538
-379456258
-875858035

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - MAX( ALL + col0 ) + + 96 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - MAX ( ALL + col0 ) + + 96 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 * + col0 * col0 >= + col1 / + col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 47 * + col2 FROM tab0
----
-2209
-4653
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL + COUNT( + - 43 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + COUNT ( + - 43 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT + + col1 + - - col2 + - + 92 + - 57, col0 AS col2 FROM tab2 WHERE NOT + - col0 * 78 IS NULL
----
-24
75
-32
64
-75
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT - 19 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4598
SELECT - 19 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - - 2 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - + SUM( ALL + 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4600
SELECT - + SUM ( ALL + 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ( - - 96 ) AS col0 FROM tab1
----
96
96
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 15 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 63 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 63 <> NULL
----
0

query I rowsort
SELECT ALL - 24 * + 60 AS col0 FROM tab0 AS cor0
----
-1440
-1440
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT + 20 + 82 DIV col2 FROM tab0
----
20
21
28

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 20 + 82 / col2 FROM tab0
----
20
21
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4606
SELECT DISTINCT col2 DIV - col2 AS col1, + col0 * + col0 * - + ( + col2 ) AS col0 FROM tab1
----
-1
-249696
-1
-426275
-1
-563108

skipif mysql # not compatible
query II rowsort label-4606
SELECT DISTINCT col2 / - col2 AS col1, + col0 * + col0 * - + ( + col2 ) AS col0 FROM tab1
----
-1
-249696
-1
-426275
-1
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 88 + COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4607
SELECT 88 + COUNT ( * ) FROM tab2
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - ( col0 ) col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ( 38 ) FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4610
SELECT DISTINCT CAST( - col0 AS SIGNED ) col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4610
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL - 70 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + - col0 - - col2 DIV + 56 + + - col0 FROM tab1 AS cor0
----
-101
-169
-181

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - col0 - - col2 / + 56 + + - col0 FROM tab1 AS cor0
----
-101
-169
-181

query I rowsort
SELECT - 99 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 10
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 col0, col1 AS col1 FROM tab2 cor0
----
37
51
37
67
37
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - - SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - - SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query II rowsort
SELECT col2, 67 AS col2 FROM tab2
----
23
67
40
67
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT - CAST( + col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4620
SELECT - CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4621
SELECT DISTINCT + col0 AS col2, + CAST( - ( + + col1 ) AS SIGNED ) FROM tab0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-4621
SELECT DISTINCT + col0 AS col2, + CAST ( - ( + + col1 ) AS INTEGER ) FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4622
SELECT DISTINCT ( - col2 ) AS col0, ( - 9 ) DIV - 13 * col2 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-4622
SELECT DISTINCT ( - col2 ) AS col0, ( - 9 ) / - 13 * col2 FROM tab0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + 75 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL - 61 * SUM( + + col0 ) FROM tab1 WHERE - col2 + + + 93 + 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - 61 * SUM ( + + col0 ) FROM tab1 WHERE - col2 + + + 93 + 18 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - + 97 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col1 * - col1 col1 FROM tab2 cor0
----
-51
-2601
-67
-4489
-77
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - - ( - + MAX( 3 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4628
SELECT - - ( - + MAX ( 3 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT + COUNT( * ) DIV 57 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT + COUNT ( * ) / 57 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 91 * + + col1 * + 56 FROM tab2 AS cor0
----
259896
341432
392392

query I rowsort
SELECT DISTINCT - + col1 * - + 87 + - 92 FROM tab0 AS cor0
----
-5
1735
6955

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 81 * COUNT( * ) FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 81 * COUNT ( * ) FROM tab0 cor0
----
-243

query II rowsort
SELECT 98 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
98
-51
98
-85
98
-91

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NOT + - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + COUNT( ALL - 72 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT ALL + COUNT ( ALL - 72 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT COUNT( * ) * 57 * + 6 FROM tab2, tab0 AS cor0
----
3078

skipif mysql # not compatible
query I rowsort label-4636
SELECT COUNT ( * ) * 57 * + 6 FROM tab2, tab0 AS cor0
----
3078

query I rowsort
SELECT - + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 72 BETWEEN + col1 * - + col2 AND 20
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL 33 + + - MIN( DISTINCT - CAST( - + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL 33 + + - MIN ( DISTINCT - CAST ( - + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT - COUNT( ALL + ( col2 ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - COUNT ( ALL + ( col2 ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-3

query II rowsort
SELECT + col0 * - col0 + + 28, - col2 AS col1 FROM tab1 AS cor0
----
-2573
-96
-7197
-59
-8253
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 81 col1 FROM tab2 AS cor0 WHERE col1 > - - col2 / col2
----
3726
5184
6075

query I rowsort
SELECT ALL - + 12 + - col1 AS col1 FROM tab0 AS cor0
----
-13
-33
-93

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col1 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 BETWEEN 21 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL + - COUNT( * ) * - + MAX( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + - COUNT ( * ) * - + MAX ( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - ( + 20 ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT COUNT( * ) - - 79 + 14 DIV - + ( + COUNT( * ) ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( * ) - - 79 + 14 / - + ( + COUNT ( * ) ) AS col0 FROM tab1
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - 18 + + 87 + - 24 + 6 / - + ( + 44 ) AND col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT 12 DIV - col2 * 36 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 12 / - col2 * 36 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + ( col2 ) FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4654
SELECT - ( col1 ) + - col2 + - col0 / + + CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT - ( col1 ) + - col2 + - col0 / + + CAST ( NULL AS REAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 51 * col2 + + col2 + 7 AS col1 FROM tab0 AS cor0
----
-2343
-493
-4943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) + - + 43 NOT IN ( + ( 46 ), col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4656
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) + - + 43 NOT IN ( + ( 46 ), col0 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - COUNT( * ) - + 26 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - COUNT ( * ) - + 26 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL + col0 - + + 81 AS col2 FROM tab0
----
-66
16
6

query I rowsort
SELECT DISTINCT + - 46 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - 91 * + COUNT( * ) FROM tab0 cor0
----
273

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - 91 * + COUNT ( * ) FROM tab0 cor0
----
273

query I rowsort
SELECT - 18 * - col0 AS col1 FROM tab2 AS cor0
----
1152
1350
828

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 43
----

query I rowsort
SELECT + 98 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL ( MIN( ALL + - col1 ) ) AS col2 FROM tab1 WHERE 10 <= col1
----
-47

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL ( MIN ( ALL + - col1 ) ) AS col2 FROM tab1 WHERE 10 <= col1
----
-47

query II rowsort
SELECT ALL + col1, + 7 AS col2 FROM tab1
----
14
7
47
7
5
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL - CAST( + - 68 AS SIGNED ) * + SUM( ALL + col2 ) FROM tab2
----
8228

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - CAST ( + - 68 AS INTEGER ) * + SUM ( ALL + col2 ) FROM tab2
----
8228

query I rowsort
SELECT + 89 * - col2 AS col1 FROM tab2
----
-2047
-3560
-5162

query I rowsort
SELECT + 33 FROM tab0 cor0 WHERE NOT NULL >= 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + - - 29, - ( - CAST( NULL AS SIGNED ) ), ( - col2 ) * ( - + 41 ), + col2 / + - 68 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + - - 29, - ( - CAST ( NULL AS INTEGER ) ), ( - col2 ) * ( - + 41 ), + col2 / + - 68 * - col2 )
----

query I rowsort
SELECT + - col0 * + - col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL + COUNT( + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL + COUNT ( + - col0 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 col2, + col0 + col2 + - 24 * 66 * - col0 AS col1 FROM tab1
----
-89
134784
-89
144303
-89
80931

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4674
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - col0, 78, + 67, - col1 * - + col1, CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4674
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - col0, 78, + 67, - col1 * - + col1, CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT MAX( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT MAX ( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - + ( + col2 ) + - + 64 AS col0 FROM tab1 AS cor0
----
-123
-132
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT - 41 * - 99 + + - 26 DIV + col1 + col2 * - 68 AS col0 FROM tab0 AS cor0
----
-2699
3378
863

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 41 * - 99 + + - 26 / + col1 + col2 * - 68 AS col0 FROM tab0 AS cor0
----
-2699
3378
863

query I rowsort
SELECT ALL col1 + - + col1 + - 70 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL MIN( + 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL MIN ( + 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - ( + COUNT( - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - ( + COUNT ( - col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 * + + col2 + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT 31 + col1 - + col2 FROM tab0
----
-67
42
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT ALL ( - 28 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
-28
3

skipif mysql # not compatible
query II rowsort label-4683
SELECT ALL ( - 28 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
-28
3

query II rowsort
SELECT - col2 + - 68, col0 * 6 AS col0 FROM tab1
----
-127
510
-136
546
-164
306

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 16 = + 19 + - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 73 - - 36 AS col0 FROM tab1
----
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 + + col0 col1, 80 FROM tab1
----
104
80
64
80
98
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + col2 col1 FROM tab0
----
119
171
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT - 15 DIV SUM( DISTINCT + + col1 ) + + - COUNT( ALL - 82 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 15 / SUM ( DISTINCT + + col1 ) + + - COUNT ( ALL - 82 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT - CAST( - AVG ( DISTINCT 55 ) AS SIGNED ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - CAST ( - AVG ( DISTINCT 55 ) AS INTEGER ) AS col1 FROM tab0
----
55

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab1
----
127
85
94

query I rowsort
SELECT + 12 - + col1 - + 41 FROM tab2 AS cor0
----
-106
-80
-96

query I rowsort
SELECT + - col1 - - - col0 FROM tab1 AS cor0
----
-138
-65
-90

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <= 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * - 63 col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4695
SELECT - COUNT ( * ) * - 63 col1 FROM tab0 AS cor0
----
189

query I rowsort
SELECT DISTINCT - - col2 * 1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT - - col2 DIV + 53 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-4697
SELECT - - col2 / + 53 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-96

query I rowsort
SELECT + col1 * + 78 AS col1 FROM tab2 AS cor0
----
3978
5226
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - col1 DIV - 42 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT - col1 / - 42 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT DISTINCT + 95 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + 95 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
31

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + + col1 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 * - + 89 FROM tab2 AS cor0
----
-2047
-3560
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 27 + - col2 FROM tab1 AS cor0
----
59
-32
68
-41
96
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 93 ) + CAST( - - 27 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 93 ) + CAST ( - - 27 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ( - - 52 ) AS col0 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT - 37 * + col0 FROM tab2 AS cor0
----
-1702
-2368
-2775

query I rowsort
SELECT + col0 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * 4 * col2 IS NULL
----
0
0
0

query I rowsort
SELECT col1 * + col1 * + col0 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT - ( + - 12 ) + - col1 AS col0 FROM tab2
----
-39
-55
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - - MAX( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - - MAX ( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + + 50 + 82 FROM tab0 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + 26 DIV - - 45 * - COUNT( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 26 / - - 45 * - COUNT ( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT + COUNT( * ) DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4713
SELECT + COUNT ( * ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0 WHERE ( NULL ) < + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 72 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - col2 + - - 32 <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - CAST( + MAX( + 34 ) AS SIGNED ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - CAST ( + MAX ( + 34 ) AS INTEGER ) FROM tab1
----
-34

query I rowsort
SELECT + ( + 19 ) - - col0 FROM tab2
----
65
83
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4720
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4720
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT 49 + col2 FROM tab2
----
107
72
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT col0 FROM tab1 WHERE + 83 * - col1 NOT BETWEEN - col2 + 77 + + + col1 * - - CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-4722
SELECT col0 FROM tab1 WHERE + 83 * - col1 NOT BETWEEN - col2 + 77 + + + col1 * - - CAST ( NULL AS INTEGER ) AND - col2
----

query I rowsort
SELECT DISTINCT col1 * - 83 + + col0 * - - ( + - col2 ) FROM tab1 AS cor0
----
-10089
-5430
-6058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + col0 + + col2 + ( + CAST( + col0 AS SIGNED ) ) * - - 99 FROM tab2 AS cor0
----
4623
6440
7558

skipif mysql # not compatible
query I rowsort label-4724
SELECT + col0 + + col2 + ( + CAST ( + col0 AS INTEGER ) ) * - - 99 FROM tab2 AS cor0
----
4623
6440
7558

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT - 71 * col1 + col1 + + col1 + - col2 FROM tab2 AS cor0
----
-3542
-4681
-5353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 * - 98 AS col0, - 94 col0 FROM tab2
----
-7448
-94
-7448
-94
-7448
-94

query I rowsort
SELECT DISTINCT - 75 * col0 AS col1 FROM tab2
----
-3450
-4800
-5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 98 IS NOT NULL
----

query I rowsort
SELECT ( + 85 ) * + - 51 + + - col0 FROM tab0 AS cor0
----
-4350
-4422
-4432

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT col1 * col2 AS col1, - ( col2 ) DIV + 63 AS col0 FROM tab0 AS cor0
----
210
0
3807
0
99
-1

skipif mysql # not compatible
query II rowsort label-4731
SELECT col1 * col2 AS col1, - ( col2 ) / + 63 AS col0 FROM tab0 AS cor0
----
210
0
3807
0
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT ALL 80 DIV - 65 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 80 / - 65 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT COUNT( * ), 21 + - 17 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query II rowsort label-4734
SELECT COUNT ( * ), 21 + - 17 AS col1 FROM tab2
----
3
4

query I rowsort
SELECT DISTINCT col0 * + ( - 47 ) * + 29 * + 26 FROM tab0
----
-3083106
-3437486
-531570

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + - COUNT( * ) col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT ALL + - COUNT ( * ) col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT MIN( ALL - - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4737
SELECT MIN ( ALL - - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL - col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - col0 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT + 9 DIV COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 9 / COUNT ( * ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( 33 * 72 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4742
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 * + - col0 * - col0 AS col1, 20 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
204363
20
254043
20
6075
20

query I rowsort
SELECT DISTINCT - col1 + - 12 FROM tab1 cor0
----
-17
-26
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL COUNT( * ) + + 45 col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4745
SELECT ALL COUNT ( * ) + + 45 col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + 5 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + 5 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 * + col1 * + - 24 * + 98 + + 16 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT + ( + MAX( - 49 ) ) + - - 12 + 28 * - 74 AS col1 FROM tab2 AS cor0
----
-2109

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + ( + MAX ( - 49 ) ) + - - 12 + 28 * - 74 AS col1 FROM tab2 AS cor0
----
-2109

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + 37 + - - 88 AS col1 FROM tab2 cor0
----
125
125
125

query I rowsort
SELECT + col1 + col0 * - + 45 FROM tab0
----
-3894
-4364
-594

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 20 IS NOT NULL
----

query I rowsort
SELECT + 33 * - col1 * - + col0 FROM tab0
----
3201
40095
60291

query I rowsort
SELECT - 99 * - col0 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL + 39 * + COUNT( * ) + 47 FROM tab2 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 39 * + COUNT ( * ) + 47 FROM tab2 AS cor0
----
164

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 87 * - 19
----

query II rowsort
SELECT ALL + 53 AS col2, 60 + - 99 + - + col2 - col2 AS col0 FROM tab2 AS cor0
----
53
-119
53
-155
53
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL + col0 * - + CAST( + - col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + col0 * - + CAST ( + - col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4760
SELECT ALL CAST( NULL AS SIGNED ), - 2 * - col1 * + 83 * col0 col0 FROM tab0 AS cor0
----
NULL
16102
NULL
201690
NULL
303282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4760
SELECT ALL CAST ( NULL AS INTEGER ), - 2 * - col1 * + 83 * col0 col0 FROM tab0 AS cor0
----
NULL
16102
NULL
201690
NULL
303282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - ( col2 ) AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT ALL 4 * - COUNT( * ), - 88 AS col2 FROM tab2
----
-12
-88

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL 4 * - COUNT ( * ), - 88 AS col2 FROM tab2
----
-12
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT + 36 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + 36 / + col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - ( + 93 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col0 BETWEEN + - ( - 71 ) + col1 * col2 * - + 78 AND NULL
----

query I rowsort
SELECT ALL 71 * col1 FROM tab2
----
3621
4757
5467

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 41 + + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + + ( + col1 ) AND + 96
----

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col1, - 52 FROM tab0
----
-705
-52
-870
-52
-9603
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + ( + + ( - MIN( col0 ) ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4771
SELECT + ( + + ( - MIN ( col0 ) ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + ( + ( + + col0 ) ) + + - col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 60 ) + - + 82 col2 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col1 * - 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT CAST( ( + col2 ) AS SIGNED ) * 81 AS col2 FROM tab0
----
3807
8019
810

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CAST ( ( + col2 ) AS INTEGER ) * 81 AS col2 FROM tab0
----
3807
8019
810

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT ALL 44 DIV + - 9 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 44 / + - 9 FROM tab2
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT + col1 >= NULL ) )
----

query I rowsort
SELECT ALL - - col1 + - 12 + + 65 AS col0 FROM tab2 AS cor0
----
104
120
130

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 73 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + col0 - - - col2 + col0 FROM tab2
----
-2093
-4072
-5608

query I rowsort
SELECT DISTINCT ( + - col0 ) - - 18 FROM tab0
----
-69
-79
3

query I rowsort
SELECT - 50 - + - col2 FROM tab0
----
-3
-40
49

query II rowsort
SELECT ALL - 15 - - col2, - col1 + - col2 AS col1 FROM tab1
----
44
-64
53
-115
81
-110

query I rowsort
SELECT - col2 * - ( col0 ) AS col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ALL col0, + 13 * ( + + col1 ) FROM tab0 cor0 WHERE NOT col1 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT - + ( CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4786
SELECT - + ( CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + col2 * + - 77 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, ( - - 10 ) * - col1 AS col1 FROM tab0 AS cor0 WHERE col0 * + + 34 < NULL
----

query I rowsort
SELECT ALL + 80 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query II rowsort
SELECT ALL + - 28 AS col0, + ( + 89 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 44e1108dbd08a8f725c4c469fd69afe0

query I rowsort
SELECT + 10 * + + col2 AS col1 FROM tab0 AS cor0
----
100
470
990

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - 52 AND NULL
----

query I rowsort
SELECT - - 80 * - col0 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT DISTINCT + + col1 * + - col0 - + col0 - + + col0 AS col0 FROM tab1 AS cor0
----
-4459
-595
-816

query I rowsort
SELECT - + col0 * + ( - + col0 ) AS col0 FROM tab2 WHERE NOT - + ( 39 ) BETWEEN + col1 + 58 * col1 * - ( - 58 ) * col0 AND + ( - + col0 )
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT ALL - 14 AS col0, COUNT( * ) AS col2 FROM tab2
----
-14
3

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL - 14 AS col0, COUNT ( * ) AS col2 FROM tab2
----
-14
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT col2 * 14 * - - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT col2 * 14 * - - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT col2 DIV + col1 + col1 AS col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-4798
SELECT col2 / + col1 + col1 AS col1 FROM tab1
----
16
20
48

query I rowsort
SELECT ALL col0 * col1 + 8 * - - col2 FROM tab0
----
1591
1907
889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55, col2 col2 FROM tab1
----
55
59
55
68
55
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 16 BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT - 80 + COUNT( + 48 ) - COUNT( * ), - 1 * + - MIN( + + col2 ) col0 FROM tab1 AS cor0
----
-80
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4802
SELECT - 80 + COUNT ( + 48 ) - COUNT ( * ), - 1 * + - MIN ( + + col2 ) col0 FROM tab1 AS cor0
----
-80
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col0 + + 5 FROM tab1 AS cor0
----
-46
-80
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT col2 * - CAST( + col2 AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4805
SELECT col2 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT 26 - - 82 + - col1 FROM tab1
----
103
61
94

query I rowsort
SELECT + col2 * + - col2 - - col1 * - + 45 + - col0 * - + col1 * col1 AS col2 FROM tab2
----
116822
330296
374391

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT - 80 DIV col1 * + col0 * col1 - 87 + - col1 - col2 * + + 80 FROM tab1
----
-11351
-11612
-9851

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 80 / col1 * + col0 * col1 - 87 + - col1 - col2 * + + 80 FROM tab1
----
-11351
-11612
-9851

query I rowsort
SELECT DISTINCT + 4 + - + col1 AS col2 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 86 - - col0 col1 FROM tab1 AS cor0
----
137
171
177

query I rowsort
SELECT DISTINCT + 96 + - col2 + - - 1 * + col2 AS col0 FROM tab2 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT + col0 * CAST( NULL AS SIGNED ) - ( + ( + col2 ) ) + - - col2 + + + col2 + - col0 * + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT + col0 * CAST ( NULL AS INTEGER ) - ( + ( + col2 ) ) + - - col2 + + + col2 + - col0 * + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL > - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT + ( + + SUM( ALL col1 ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + ( + + SUM ( ALL col1 ) ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + 15 - + 12 AS col1 FROM tab1 WHERE col0 - + 89 NOT BETWEEN CAST( - col0 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + 15 - + 12 AS col1 FROM tab1 WHERE col0 - + 89 NOT BETWEEN CAST ( - col0 AS INTEGER ) AND + col2
----

query II rowsort
SELECT ALL + ( - + ( + col1 ) ), - col2 AS col0 FROM tab1
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4819
SELECT + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT 75 * COUNT( * ) AS col1 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4820
SELECT 75 * COUNT ( * ) AS col1 FROM tab1 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + SUM( + + 54 ) AS col2 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4821
SELECT + SUM ( + + 54 ) AS col2 FROM tab0 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + ( + COUNT( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4822
SELECT + ( + COUNT ( + col1 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 28 ) = ( + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = ( - 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= ( col0 - + 76 * + ( 4 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - MIN( 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - MIN ( 25 ) FROM tab2
----
-25

query I rowsort
SELECT + col2 + + 11 FROM tab2
----
34
51
69

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4829
SELECT ALL ( - ( 96 ) ) * COUNT( * ) + - 76 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IN ( col0 / + 90 )
----
-76

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL ( - ( 96 ) ) * COUNT ( * ) + - 76 FROM tab1 WHERE CAST ( NULL AS REAL ) IN ( col0 / + 90 )
----
-76

query I rowsort
SELECT col2 * 57 AS col0 FROM tab2
----
1311
2280
3306

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 45 - + col0 AS col2 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT 0 + - col0 * - 97 FROM tab2
----
4462
6208
7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4835
SELECT DISTINCT * FROM tab1 WHERE ( - 49 ) NOT BETWEEN ( NULL ) AND + ( + CAST( - col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4835
SELECT DISTINCT * FROM tab1 WHERE ( - 49 ) NOT BETWEEN ( NULL ) AND + ( + CAST ( - col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 2 )
----

query I rowsort
SELECT - 37 AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-37
-37
-37

query I rowsort
SELECT + 97 + col1 FROM tab2
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + 14 * - COUNT( * ) + - 79 * + MAX( ALL 76 ) AS col1 FROM tab1
----
-6046

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 14 * - COUNT ( * ) + - 79 * + MAX ( ALL 76 ) AS col1 FROM tab1
----
-6046

query I rowsort
SELECT ALL col2 * - 92 FROM tab2 WHERE NOT col0 * + 96 IN ( 65 )
----
-2116
-3680
-5336

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 88 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4842
SELECT ALL + col2 DIV ( col1 ) + + col0 col1 FROM tab2 WHERE ( + 24 * 14 + + col1 ) <> ( CAST( col1 AS SIGNED ) )
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT ALL + col2 / ( col1 ) + + col0 col1 FROM tab2 WHERE ( + 24 * 14 + + col1 ) <> ( CAST ( col1 AS INTEGER ) )
----
46
64
75

query I rowsort
SELECT DISTINCT - 91 * col0 AS col2 FROM tab1
----
-4641
-7735
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL 72 * COUNT( * ) + 83 FROM tab0 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 72 * COUNT ( * ) + 83 FROM tab0 AS cor0
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT 42 + + 50 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4845
SELECT 42 + + 50 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 60 - col2 * - col2
----

query I rowsort
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT - col0 + + col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT - col0 + + col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 91 IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE 17 NOT IN ( 1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * 0 AS col2 FROM tab1
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( ( col0 ) * 24 )
----

query I rowsort
SELECT ALL 51 + col0 AS col1 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) + - COUNT( 78 + 15 / + col0 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) + - COUNT ( 78 + 15 / + col0 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col2 * col2 - 92 FROM tab2 AS cor0
----
-1692
-3456
-621

query I rowsort
SELECT col1 - 6 * + col2 AS col2 FROM tab2 AS cor0
----
-163
-281
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + + MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4858
SELECT + + MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT ALL + - 15 DIV + col1 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + - 15 / + col1 FROM tab0 AS cor0
----
-15
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 NOT IN ( col2 / col2 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN ( + 87 * 76 ) AND NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT ( + + MAX( - 21 ) ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT ( + + MAX ( - 21 ) ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL MIN( + 96 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL MIN ( + 96 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT 24 * - + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT 24 * - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
72

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 * + col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT + col1 DIV - + 71 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT + col1 / - + 71 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( - - col0 ) * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - MIN( DISTINCT - ( + col1 ) ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4868
SELECT DISTINCT - MIN ( DISTINCT - ( + col1 ) ) col0 FROM tab2
----
77

query I rowsort
SELECT - 21 * + col2 * 10 AS col0 FROM tab2 AS cor0
----
-12180
-4830
-8400

query I rowsort
SELECT ALL - + col1 * - + 71 FROM tab2 AS cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 44 * - COUNT( ALL + col0 ) AS col1 FROM tab2 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 44 * - COUNT ( ALL + col0 ) AS col1 FROM tab2 cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab1 cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT - + col2 DIV + 94 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - + col2 / + 94 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + 56 >= ( NULL ) )
----

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 WHERE - col0 + - ( - col0 ) >= 86 / col2 + - col0
----
21
21
21

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col2 * - col1 ) >= NULL )
----

query I rowsort
SELECT DISTINCT + 49 * + col0 + + col1 FROM tab1
----
2513
4170
4506

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + - 64 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-4880
SELECT + - 64 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + MIN( + col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4881
SELECT + MIN ( + col0 ) AS col2 FROM tab2 cor0
----
46

query II rowsort
SELECT DISTINCT + col1, ( + col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + - ( + + col0 ) + + 21 FROM tab0 AS cor0
----
-66
-76
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 14 )
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - col1 * + 88 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 72 * col0 FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----

query II rowsort
SELECT DISTINCT + 86, ( + col2 ) AS col2 FROM tab1 AS cor0
----
86
59
86
68
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT + 81 DIV col1 * + 82 + col2 FROM tab2 AS cor0
----
105
122
140

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 81 / col1 * + 82 + col2 FROM tab2 AS cor0
----
105
122
140

query II rowsort
SELECT col1 + + 67, + ( col1 ) AS col1 FROM tab2
----
118
51
134
67
144
77

query I rowsort
SELECT - + ( - col0 ) FROM tab1 WHERE NULL <= - + 95
----

query I rowsort
SELECT col2 + + col1 * + col1 * + col2 FROM tab1
----
150280
1534
18912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 + + col0 FROM tab2
----
39
57
68

query I rowsort
SELECT col0 + + - 24 * + col1 FROM tab1
----
-1037
-285
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT 75 * + - COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT 75 * + - COUNT ( * ) FROM tab0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT + ( + MIN( + - CAST( - 46 AS SIGNED ) ) ) + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + ( + MIN ( + - CAST ( - 46 AS INTEGER ) ) ) + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 WHERE ( NULL ) >= col2 - + + 5
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 - - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL - col1 - - + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - col1 - - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + ( + 11 ) * + + 39 * + ( 46 ) + - col2 - + col2 AS col0 FROM tab0
----
-1953864
-197360
-927592

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT + 81 * ( + COUNT( * ) ) AS col1 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + 81 * ( + COUNT ( * ) ) AS col1 FROM tab1
----
243

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT ALL 75 AS col0, + col0 DIV - col2 FROM tab2 AS cor0
----
75
-1
75
-1
75
-2

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL 75 AS col0, + col0 / - col2 FROM tab2 AS cor0
----
75
-1
75
-1
75
-2

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT + - COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4905
SELECT + - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - - ( 72 ) AS col0 FROM tab1 AS cor0
----
72

query II rowsort
SELECT DISTINCT - 47, col2 AS col2 FROM tab0 AS cor0
----
-47
10
-47
47
-47
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * col0 / - - col1 NOT BETWEEN col2 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col2, - 87 AS col1 FROM tab2
----
23
-87
40
-87
58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + + COUNT( * ) * 73 col0 FROM tab1 WHERE NOT 55 IS NULL
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT + + COUNT ( * ) * 73 col0 FROM tab1 WHERE NOT 55 IS NULL
----
219

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL - 55 AS col2, - 76 FROM tab0 cor0
----
-55
-76
-55
-76
-55
-76

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - - col2 + - + 9 FROM tab0 AS cor0
----
1
38
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4915
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - - ( ( + 73 ) ) > + 32
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - - ( ( + 73 ) ) > + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 60 col0 FROM tab0
----
147
157
75

query I rowsort
SELECT - col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT 88 * - + col0 + + col1 + + 38 AS col0 FROM tab2 AS cor0
----
-3959
-5517
-6495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4919
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col0 <> - CAST( CAST( col2 AS DECIMAL ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 <> - CAST ( CAST ( col2 AS REAL ) AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT + + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT CAST( NULL AS SIGNED ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT CAST ( NULL AS INTEGER ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - 43 + + - ( - COUNT( * ) ) * + 26 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - 43 + + - ( - COUNT ( * ) ) * + 26 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - COUNT( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4923
SELECT - COUNT ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - 25 * + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-72
2010
438

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT DISTINCT + - 61 * + ( + + col2 ) + - col1 * - col2 + col0 - - col2 + ( - col2 ) DIV - col0 + 23 AS col1 FROM tab0 AS cor0
----
-280
-5720
1028

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + - 61 * + ( + + col2 ) + - col1 * - col2 + col0 - - col2 + ( - col2 ) / - col0 + 23 AS col1 FROM tab0 AS cor0
----
-280
-5720
1028

query I rowsort
SELECT DISTINCT + col2 * - - 48 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT col1 * - + 32 + - col1 FROM tab1 AS cor0
----
-1551
-165
-462

query I rowsort
SELECT col0 * col0 * col2 * 63 FROM tab2
----
10321920
20553750
3066084

query III rowsort
SELECT * FROM tab2 WHERE + + col2 / - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 74 * 90 + + col0 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 - 62 + + ( - col1 ) ) IS NULL
----

query I rowsort
SELECT - col1 + - + 96 AS col0 FROM tab0
----
-117
-177
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4933
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST( NULL AS SIGNED ) ) * - 9 / - 85 * + + col2 * - + col0 - col0 ) NOT IN ( col2 * + ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4933
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST ( NULL AS INTEGER ) ) * - 9 / - 85 * + + col2 * - + col0 - col0 ) NOT IN ( col2 * + ( + col0 ) )
----

query II rowsort
SELECT col2 * - col2 + + col1, + col1 FROM tab0
----
-2128
81
-79
21
-9800
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT + - col2 DIV + col0 * - - 84 * col2 + col0 * 17 FROM tab2 AS cor0
----
1088
1275
782

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - col2 / + col0 * - - 84 * col2 + col0 * 17 FROM tab2 AS cor0
----
1088
1275
782

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT + 18 + + SUM( + col0 ) + - - SUM( ALL + 28 ) col0, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
287
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4936
SELECT + 18 + + SUM ( + col0 ) + - - SUM ( ALL + 28 ) col0, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
287
3

query I rowsort
SELECT ALL 76 - - + 54 * + col2 * + col0 FROM tab0 AS cor0
----
38146
47056
518638

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT - SUM( + ( - - col0 ) ) - + - COUNT( ALL + + ( + - col1 ) ) * - COUNT( DISTINCT col2 ) FROM tab0 cor0
----
-208

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - SUM ( + ( - - col0 ) ) - + - COUNT ( ALL + + ( + - col1 ) ) * - COUNT ( DISTINCT col2 ) FROM tab0 cor0
----
-208

query II rowsort
SELECT DISTINCT 39 * col0, col1 AS col1 FROM tab1 WHERE NOT - 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4940
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + CAST( col0 AS SIGNED ) >= 93
----

skipif mysql # not compatible
query III rowsort label-4940
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + CAST ( col0 AS INTEGER ) >= 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT CAST( COUNT( * ) AS SIGNED ) * - + COUNT( ALL 36 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4942
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - + COUNT ( ALL 36 ) AS col1 FROM tab2 cor0
----
-9

query I rowsort
SELECT + - 16 AS col1 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT col2 / 88 + - col0 FROM tab0 AS cor0 WHERE - 99 * - - CAST( - 71 AS SIGNED ) + col1 + + 68 - - col1 BETWEEN NULL AND - col0 OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT col2 / 88 + - col0 FROM tab0 AS cor0 WHERE - 99 * - - CAST ( - 71 AS INTEGER ) + col1 + + 68 - - col1 BETWEEN NULL AND - col0 OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT MIN( 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4946
SELECT MIN ( 84 ) FROM tab2
----
84

query I rowsort
SELECT ALL 76 * - col0 AS col1 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + MIN( + 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4948
SELECT + MIN ( + 77 ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - COUNT( * ) * 33 * - 4 * - 21 AS col1 FROM tab0
----
-8316

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - COUNT ( * ) * 33 * - 4 * - 21 AS col1 FROM tab0
----
-8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT 64 DIV MAX( DISTINCT + ( 46 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT 64 / MAX ( DISTINCT + ( 46 ) ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT - col1 FROM tab1 WHERE NOT NULL IN ( + + CAST( NULL AS SIGNED ) + + 16 - col2 + + - col2 * - 3 )
----

skipif mysql # not compatible
query I rowsort label-4951
SELECT - col1 FROM tab1 WHERE NOT NULL IN ( + + CAST ( NULL AS INTEGER ) + + 16 - col2 + + - col2 * - 3 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT DISTINCT CAST( + SUM( ALL col0 ) AS SIGNED ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( + SUM ( ALL col0 ) AS INTEGER ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL - 97 * - COUNT( * ) + + COUNT( * ) - - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 97 * - COUNT ( * ) + + COUNT ( * ) - - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + col1 + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + col1 + - CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + - col1 + - 23 col0 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL - COUNT( * ) * - + SUM( - 55 ) FROM tab1 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - COUNT ( * ) * - + SUM ( - 55 ) FROM tab1 AS cor0
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT - COUNT( * ) DIV 45 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT - COUNT ( * ) / 45 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE 32 - + col0 + + col1 - + col0 * - ( col2 ) IN ( - 78 )
----

query I rowsort
SELECT + + 94 AS col0 FROM tab0 WHERE NULL IN ( col0, col1 + - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL ( CAST( - + col1 AS SIGNED ) ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT ALL ( CAST ( - + col1 AS INTEGER ) ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT SUM( ALL - 88 ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT SUM ( ALL - 88 ) FROM tab2
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - col0 col0 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col1, col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

query I rowsort
SELECT DISTINCT - col1 + - - col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col2 col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + 6 / + + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + 6 / + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT + 94 + ( - CAST( + + col1 AS SIGNED ) ) FROM tab2 cor0
----
17
27
43

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 94 + ( - CAST ( + + col1 AS INTEGER ) ) FROM tab2 cor0
----
17
27
43

query I rowsort
SELECT DISTINCT + 56 + + - col1 * - col2 + + col0 AS col1 FROM tab0 cor0
----
252
353
3878

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 69 / - 82 > + ( + 4 ) * - - 63 * - - ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 33 * - col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4971
SELECT DISTINCT - col0 + col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-4971
SELECT DISTINCT - col0 + col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT - ( col2 ) DIV - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4972
SELECT - ( col2 ) / - col0 FROM tab0
----
0
1
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 >= + col0 - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL + CAST( NULL AS SIGNED ) * + 49 - - - col1 + - col2 * 72 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + CAST ( NULL AS INTEGER ) * + 49 - - - col1 + - col2 * 72 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 - + col1 AS col2, col0 FROM tab1 AS cor0
----
-110
51
-115
91
-64
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 57 AS col2, - col0 * - 84 AS col1 FROM tab2
----
57
3864
57
5376
57
6300

onlyif mysql # DIV for integer division: 
query II rowsort label-4978
SELECT ALL 47 AS col1, + 40 DIV + ( + - col1 ) AS col0 FROM tab1
----
47
-2
47
-8
47
0

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL 47 AS col1, + 40 / + ( + - col1 ) AS col0 FROM tab1
----
47
-2
47
-8
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT + 48 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + 48 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
432

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 > NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= - 97
----

query I rowsort
SELECT + - col0 * + 56 FROM tab0 AS cor0
----
-4872
-5432
-840

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col1 + + 57
----

query II rowsort
SELECT - + col1 * - + col0 - + 72 AS col0, - col2 - - ( - + col2 ) FROM tab1 cor0
----
353
-118
4205
-136
642
-192

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col1, col1, col2 )
----

query I rowsort
SELECT ALL + 93 * 1 AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4987
SELECT ALL CAST( - col0 AS DECIMAL ) / + ( - + 81 ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL >= - + 16 )
----

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL CAST ( - col0 AS REAL ) / + ( - + 81 ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL >= - + 16 )
----

query I rowsort
SELECT DISTINCT 69 * col2 AS col1 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - ( MIN( col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4989
SELECT - ( MIN ( col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * - - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + COUNT( * ) + 62 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + COUNT ( * ) + 62 AS col2 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT DISTINCT - 78 AS col0 FROM tab1 WHERE + 47 * - col0 <= + CAST( NULL AS SIGNED ) * 30 + col2
----

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - 78 AS col0 FROM tab1 WHERE + 47 * - col0 <= + CAST ( NULL AS INTEGER ) * 30 + col2
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT - ( col0 ) AS col1, - col0 * 76 * - 98 FROM tab1 AS cor0
----
-51
379848
-85
633080
-91
677768

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4996
SELECT ( + + CAST( NULL AS SIGNED ) ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4996
SELECT ( + + CAST ( NULL AS INTEGER ) ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL - ( + 13 ) FROM tab1
----
-13
-13
-13

query I rowsort
SELECT ( + 76 ) AS col0 FROM tab1 WHERE ( ( - - col2 + 61 IS NOT NULL ) )
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL + CAST( + 54 AS SIGNED ) * + - 1 + - 17 FROM tab1 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL + CAST ( + 54 AS INTEGER ) * + - 1 + - 17 FROM tab1 AS cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT - CAST( NULL AS SIGNED ) AS col2, 65 AS col0 FROM tab2 AS cor0
----
NULL
65
NULL
65
NULL
65

skipif mysql # not compatible
query II rowsort label-5001
SELECT - CAST ( NULL AS INTEGER ) AS col2, 65 AS col0 FROM tab2 AS cor0
----
NULL
65
NULL
65
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT + + col1 * - col1 + col1 + col1 DIV col0 - col0 col1 FROM tab1 AS cor0
----
-105
-2253
-233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT + + col1 * - col1 + col1 + col1 / col0 - col0 col1 FROM tab1 AS cor0
----
-105
-2253
-233

query I rowsort
SELECT ALL - 99 + + - col2 AS col2 FROM tab1 cor0
----
-158
-167
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5004
SELECT * FROM tab1 WHERE + col2 + + 8 IN ( 80, - CAST( col1 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-5004
SELECT * FROM tab1 WHERE + col2 + + 8 IN ( 80, - CAST ( col1 AS INTEGER ) + col1 )
----

query I rowsort
SELECT ALL col1 * - col1 * - 4 * + col0 AS col1 FROM tab1
----
39984
804076
8500

query II rowsort
SELECT ALL + col2, + col1 + + ( + + 39 ) FROM tab1
----
59
44
68
86
96
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5007
SELECT ALL CAST( NULL AS DECIMAL ) col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5007
SELECT ALL CAST ( NULL AS REAL ) col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT MIN( ALL col0 ) + - 86 * 33 + - - 86 * 23 + + - 21 * 99 AS col1 FROM tab1
----
-2888

skipif mysql # not compatible
query I rowsort label-5008
SELECT MIN ( ALL col0 ) + - 86 * 33 + - - 86 * 23 + + - 21 * 99 AS col1 FROM tab1
----
-2888

query I rowsort
SELECT - col0 * ( - 94 ) AS col1 FROM tab0 AS cor0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL COUNT( * ) * + 45 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL COUNT ( * ) * + 45 FROM tab0 AS cor0
----
135

query I rowsort
SELECT 84 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 87 + - col2 / 34 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 - col0 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 - col0 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5014
SELECT + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( ( - 22 ) ) AS col0 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT - 22 AS col0, COUNT( * ) FROM tab1
----
-22
3

skipif mysql # not compatible
query II rowsort label-5016
SELECT - 22 AS col0, COUNT ( * ) FROM tab1
----
-22
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT - 89 DIV col1 + col2 DIV + col1 AS col2 FROM tab1
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT - 89 / col1 + col2 / + col1 AS col2 FROM tab1
----
-6
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT ALL COUNT( * ) AS col2, - MIN( col0 ) FROM tab1
----
3
-51

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL COUNT ( * ) AS col2, - MIN ( col0 ) FROM tab1
----
3
-51

query I rowsort
SELECT + 71 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 < + + 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2, - col2, col2 * + - col2 col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 52 + - 85 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT - - COUNT( * ) + - 10 * + - COUNT( ALL col0 ) * + - SUM( - col0 ) + 28 AS col1 FROM tab2 AS cor0
----
5581

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - - COUNT ( * ) + - 10 * + - COUNT ( ALL col0 ) * + - SUM ( - col0 ) + 28 AS col1 FROM tab2 AS cor0
----
5581

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ( + + MAX( DISTINCT + col2 ) ) * 84 col0 FROM tab2
----
4872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT ( + + MAX ( DISTINCT + col2 ) ) * 84 col0 FROM tab2
----
4872

query I rowsort
SELECT col1 * + 65 AS col2 FROM tab2
----
3315
4355
5005

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - + col1 <= - 68
----

query I rowsort
SELECT ALL - col2 * + col1 * + 41 FROM tab2 AS cor0
----
-126280
-159326
-48093

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5028
SELECT DISTINCT 20 DIV + + 86 + - MIN( ALL + 33 ) AS col1, 2 AS col0 FROM tab1 AS cor0
----
-33
2

skipif mysql # not compatible
query II rowsort label-5028
SELECT DISTINCT 20 / + + 86 + - MIN ( ALL + 33 ) AS col1, 2 AS col0 FROM tab1 AS cor0
----
-33
2

query I rowsort
SELECT ALL 54 + col1 FROM tab0 AS cor0
----
135
55
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + + COUNT( * ) * + - COUNT( * ) - - - 78 - ( + 18 ) AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + + COUNT ( * ) * + - COUNT ( * ) - - - 78 - ( + 18 ) AS col2 FROM tab2 AS cor0
----
-105

query II rowsort
SELECT DISTINCT 42 - + + ( + 94 ), - col0 AS col1 FROM tab2
----
-52
-46
-52
-64
-52
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - MAX( - 77 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT - MAX ( - 77 ) col0 FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5034
SELECT col0, + col2 DIV col1 * - + 55 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5034
SELECT col0, + col2 / col1 * - + 55 FROM tab2
----
46
0
64
0
75
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / + + col0 >= - ( - + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 90 * + ( col1 ) * + col1 AS col2 FROM tab1
----
17640
198810
2250

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5037
SELECT ALL * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5037
SELECT ALL * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 68 * + - 3 AS col1 FROM tab0 AS cor0
----
204
204
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + MAX( + + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5040
SELECT + MAX ( + + 62 ) FROM tab2 AS cor0
----
62

query II rowsort
SELECT DISTINCT - col1 AS col1, 9 AS col1 FROM tab2
----
-51
9
-67
9
-77
9

query I rowsort
SELECT col1 / - + 20 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL col2 DIV + + col2 + + col2 - - - 55 FROM tab2 cor0
----
-14
-31
4

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL col2 / + + col2 + + col2 - - - 55 FROM tab2 cor0
----
-14
-31
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5044
SELECT + 34 AS col0, + CAST( NULL AS SIGNED ) / + col2 * - col1 * - + col0 AS col1 FROM tab0 AS cor0
----
34
NULL
34
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-5044
SELECT + 34 AS col0, + CAST ( NULL AS INTEGER ) / + col2 * - col1 * - + col0 AS col1 FROM tab0 AS cor0
----
34
NULL
34
NULL
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT DISTINCT + + col0, CAST( NULL AS SIGNED ) + col0 + + - 23 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5045
SELECT DISTINCT + + col0, CAST ( NULL AS INTEGER ) + col0 + + - 23 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL COUNT( + + col2 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT ALL COUNT ( + + col2 ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - + COUNT( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5047
SELECT - + COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT ALL 54 + 69 FROM tab0 AS cor0
----
123
123
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT ALL + - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL + - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT col1 DIV + + col1 + 37 AS col1 FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5052
SELECT col1 / + + col1 + 37 AS col1 FROM tab0 AS cor0
----
38
38
38

query II rowsort
SELECT ALL + 34 AS col1, ( col0 ) AS col1 FROM tab2 AS cor0
----
34
46
34
64
34
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5054
SELECT CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - 34 * + ( SUM( ALL - col1 ) ) + - - 43 FROM tab1 AS cor0
----
2287

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 34 * + ( SUM ( ALL - col1 ) ) + - - 43 FROM tab1 AS cor0
----
2287

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - MIN( 48 ) * - COUNT( * ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - MIN ( 48 ) * - COUNT ( * ) FROM tab1 AS cor0
----
144

query I rowsort
SELECT + 39 * 40 FROM tab1 cor0
----
1560
1560
1560

query III rowsort
SELECT * FROM tab2 WHERE NOT - 41 + + - col1 = - - col0 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT + col0 DIV + 60 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5059
SELECT + col0 / + 60 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL 91 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT COUNT( * ) * - + COUNT( * ) * - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5061
SELECT COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT - col0 DIV col1 + 77 col1 FROM tab1 AS cor0
----
60
74
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT - col0 / col1 + 77 col1 FROM tab1 AS cor0
----
60
74
76

query I rowsort
SELECT + 36 * 30 AS col1 FROM tab2 AS cor0
----
1080
1080
1080

query I rowsort
SELECT 89 AS col0 FROM tab0 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - COUNT( * ) * + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5066
SELECT - COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col1 * - 3 AS col1 FROM tab0 AS cor0
----
-243
-3
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-5068
SELECT DISTINCT + col2 + col2 DIV + + col1 AS col0, + col2 FROM tab1 cor0
----
102
96
69
68
70
59

skipif mysql # not compatible
query II rowsort label-5068
SELECT DISTINCT + col2 + col2 / + + col1 AS col0, + col2 FROM tab1 cor0
----
102
96
69
68
70
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - COUNT( ALL + - ( col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - COUNT ( ALL + - ( col0 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + ( - col2 ) + + ( - + 53 ) * + col0 FROM tab2 WHERE - + col1 NOT IN ( - 84, 37, - 41, - + col0 )
----
-2461
-3432
-4033

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT SUM( - 35 ) * 57 FROM tab2
----
-5985

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT SUM ( - 35 ) * 57 FROM tab2
----
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - ( + + COUNT( * ) ) * + COUNT( * ) + 30 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5072
SELECT - ( + + COUNT ( * ) ) * + COUNT ( * ) + 30 FROM tab1
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 * + 13 FROM tab1
----
1248
767
884

query I rowsort
SELECT ALL 36 * - 51 FROM tab1 AS cor0
----
-1836
-1836
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 + 78 * col0 col1, col2 FROM tab1 AS cor0
----
3892
96
6544
59
7012
68

query II rowsort
SELECT ALL + col0 + - + col2 / - - col0 + + col2, col1 * + 35 / - - col1 + + + 5 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col0 + - col0 * 52 * + col0 FROM tab0 AS cor0
----
-11685
-393501
-489171

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT 91 * MAX( 84 ) AS col2 FROM tab2
----
7644

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT 91 * MAX ( 84 ) AS col2 FROM tab2
----
7644

query I rowsort
SELECT 67 + + col2 AS col2 FROM tab2
----
107
125
90

query III rowsort
SELECT * FROM tab0 WHERE - col2 >= + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT ALL + col2 DIV col2 * - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + col2 / col2 * - - col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 90 + + col2 * + + col2 * + col1 FROM tab1
----
129114
17495
217418

query I rowsort
SELECT 11 * + col2 + col1 FROM tab1
----
1070
654
795

query I rowsort
SELECT 97 + col1 AS col2 FROM tab2
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT + - ( + 86 ) FROM tab1 WHERE - + 72 / - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - ( + 86 ) FROM tab1 WHERE - + 72 / - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT ( + 69 ), COUNT( * ) AS col0 FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-5089
SELECT ( + 69 ), COUNT ( * ) AS col0 FROM tab1
----
69
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5090
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + MAX( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5091
SELECT + MAX ( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 18 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + + MAX( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + + MAX ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5095
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5095
SELECT ( CAST ( NULL AS REAL ) ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5097
SELECT CAST( - MIN( DISTINCT - col0 ) AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-5097
SELECT CAST ( - MIN ( DISTINCT - col0 ) AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 55, - col2 AS col1 FROM tab1
----
55
-59
55
-68
55
-96

query I rowsort
SELECT ALL - col1 * + + 4 FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT DISTINCT 9 AS col0, + MIN( ( - ( col0 ) ) ) FROM tab1
----
9
-91

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT 9 AS col0, + MIN ( ( - ( col0 ) ) ) FROM tab1
----
9
-91

query I rowsort
SELECT ALL + 77 * + col0 + - col0 / ( - 3 ) / - + 22 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 31 <> 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 * col2 * - 80 col2, - 95 FROM tab0 cor0
----
-165440
-95
-348480
-95
-35200
-95

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 44 * - col2 IS NOT NULL
----

query I rowsort
SELECT + + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 90 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5108
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + + 83 + + + col2 NOT IN ( - 9, + 33 )
----

query I rowsort
SELECT 54 + - col0 + 99 FROM tab2
----
107
78
89

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT ALL + 97 + + col1 FROM tab0 cor0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + MAX( DISTINCT 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + MAX ( DISTINCT 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5114
SELECT + MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) = - col2
----

query I rowsort
SELECT + col2 * 69 * - 61 FROM tab1 AS cor0
----
-248331
-286212
-404064

query I rowsort
SELECT ALL + 49 * - + 57 * + - col0 FROM tab0 AS cor0
----
242991
270921
41895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + - ( - + col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - - col2 * 95 AS col0 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - ( - - COUNT( ALL + 6 ) ) FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - ( - - COUNT ( ALL + 6 ) ) FROM tab1 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + - col2 / + 47 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL BETWEEN ( - - 59 ) AND ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 col2 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5127
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-5127
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + 87 <= NULL
----

query I rowsort
SELECT ALL - col1 + + + col1 - + + 87 AS col2 FROM tab2
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE - CAST( - col0 AS DECIMAL ) < + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - col0 AS REAL ) < + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL + + 34 DIV + - 28 + col0 * - + col1 FROM tab2 AS cor0
----
-2347
-4929
-5026

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + + 34 / + - 28 + col0 * - + col1 FROM tab2 AS cor0
----
-2347
-4929
-5026

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - 81 * + SUM( + - col1 ) FROM tab2 AS cor0
----
15795

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 81 * + SUM ( + - col1 ) FROM tab2 AS cor0
----
15795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5134
SELECT col2, + CAST( + col2 AS SIGNED ) * - - col2 AS col1 FROM tab0 cor0
----
10
100
47
2209
99
9801

skipif mysql # not compatible
query II rowsort label-5134
SELECT col2, + CAST ( + col2 AS INTEGER ) * - - col2 AS col1 FROM tab0 cor0
----
10
100
47
2209
99
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + MIN( ALL + ( col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + MIN ( ALL + ( col0 ) ) FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - MIN( + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5138
SELECT - MIN ( + 8 ) FROM tab2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT + CAST( + MIN( + 19 ) AS SIGNED ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5139
SELECT + CAST ( + MIN ( + 19 ) AS INTEGER ) AS col1 FROM tab2
----
19

query I rowsort
SELECT ALL 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 85 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 85 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + 32 + + MIN( DISTINCT + 10 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + 32 + + MIN ( DISTINCT + 10 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT - 54 + - - col1 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col0 + - + 19 FROM tab0 AS cor0
----
-106
-116
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - 49 * - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - - col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT DISTINCT 63, CAST( - + 99 AS SIGNED ) * + CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE NOT ( - col2 * + col1 ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-5148
SELECT DISTINCT 63, CAST ( - + 99 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE NOT ( - col2 * + col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT 44 + + 4 AS col1 FROM tab0 WHERE + ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * col1 IN ( + 2 - + + col0, 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + 42 * + col1 AS col2 FROM tab2
----
109242
188538
249018

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT - MIN( - + col2 ) + + ( - SUM( + CAST( - col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - MIN ( - + col2 ) + + ( - SUM ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT + col0 + 89 AS col0 FROM tab1 AS cor0
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT COUNT( DISTINCT col1 ) - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT COUNT ( DISTINCT col1 ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 <> NULL
----

query I rowsort
SELECT col0 + col2 * col0 * - - 84 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR ( NOT NULL IS NULL )
----
411315
421345
519883

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * + 68 / + col1 = - + 26
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * + 68 / + col1 = - + 26
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL - - AVG ( ALL - 55 ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - - AVG ( ALL - 55 ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL - - 63 / CAST( NULL AS SIGNED ) + + - 19 + - 9 * + col2 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-5160
SELECT ALL - - 63 / CAST ( NULL AS INTEGER ) + + - 19 + - 9 * + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT 11 DIV + - MIN( - 78 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT 11 / + - MIN ( - 78 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5162
SELECT - COUNT( * ) AS col2, - 95 DIV + - MIN( - + col1 ) FROM tab2
----
-3
-1

skipif mysql # not compatible
query II rowsort label-5162
SELECT - COUNT ( * ) AS col2, - 95 / + - MIN ( - + col1 ) FROM tab2
----
-3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT COUNT( DISTINCT - 62 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT COUNT ( DISTINCT - 62 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL ( - + 98 ) AS col0 FROM tab1
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 92 * col2 / - col0 FROM tab0 AS cor0 WHERE NOT col0 - - - 71 * + col2 * + + 86 < NULL
----

query II rowsort
SELECT col1 AS col0, + col2 * col0 AS col2 FROM tab0 cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT - - ( + col0 ) * col1 * + col0 + 14 FROM tab1 AS cor0
----
36139
36428
389221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col0, col0 + - col1 col0 FROM tab0 WHERE NOT col0 * + col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT ALL - ( - - COUNT( DISTINCT col0 ) ) DIV - MAX( + - col1 ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - ( - - COUNT ( DISTINCT col0 ) ) / - MAX ( + - col1 ) + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col0 * + + ( + + 63 ) + col1 FROM tab0 AS cor0
----
-5460
-6110
-864

query I rowsort
SELECT - ( - + col2 ) * col1 * + - 15 FROM tab1 AS cor0
----
-20160
-4425
-47940

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - - COUNT( * ) + + + 63 col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5173
SELECT ALL - - COUNT ( * ) + + + 63 col1 FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 col0, 97 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT + MAX( DISTINCT - - 85 ) + - 90 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + MAX ( DISTINCT - - 85 ) + - 90 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - COUNT( * ) - + - 74 AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - COUNT ( * ) - + - 74 AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT - SUM( + 82 ) FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5177
SELECT - SUM ( + 82 ) FROM tab1 AS cor0
----
-246

query I rowsort
SELECT + - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 40 - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-19
-39
41

query I rowsort
SELECT ALL col0 - - - col2 FROM tab2
----
17
23
24

query II rowsort
SELECT DISTINCT ( - 70 ) * + + col2 + + 92, col1 AS col1 FROM tab0
----
-3198
81
-608
21
-6838
1

query I rowsort
SELECT DISTINCT + 67 * 80 AS col1 FROM tab0
----
5360

query I rowsort
SELECT 51 + ( + col1 ) + + 47 * col1 AS col2 FROM tab0
----
1059
3939
99

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5185
SELECT - + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 10 FROM tab1 cor0 WHERE NOT 39 IN ( - col2 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT ALL COUNT( * ), + 75 AS col2 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-5187
SELECT ALL COUNT ( * ), + 75 AS col2 FROM tab2 AS cor0
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - + MIN( ALL + - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5188
SELECT - + MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT + 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT + col2 DIV - 31 - col0 FROM tab0 cor0
----
-100
-16
-87

skipif mysql # not compatible
query I rowsort label-5190
SELECT + col2 / - 31 - col0 FROM tab0 cor0
----
-100
-16
-87

query I rowsort
SELECT ALL + - 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT + + ( + col1 ) * - + ( + + col0 ) / + CAST( NULL AS SIGNED ) * - + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT + + ( + col1 ) * - + ( + + col0 ) / + CAST ( NULL AS INTEGER ) * - + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 22 * - + col1, + col0 + + 36 AS col1 FROM tab0 AS cor0
----
1782
51
22
133
462
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab1 WHERE NOT 55 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab1 WHERE NOT 55 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - 60 * - col1 AS col2 FROM tab1
----
2820
300
840

query I rowsort
SELECT DISTINCT - 16 * - col2 AS col0 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT - ( + 71 ), + MIN( DISTINCT + - col2 ) + COUNT( DISTINCT - 63 ) AS col1 FROM tab2 WHERE NOT - col1 <> col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-5199
SELECT - ( + 71 ), + MIN ( DISTINCT + - col2 ) + COUNT ( DISTINCT - 63 ) AS col1 FROM tab2 WHERE NOT - col1 <> col0
----
-71
NULL

query I rowsort
SELECT 88 + + ( col2 ) + 85 AS col0 FROM tab2
----
196
213
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - 23 - + - MAX( 58 ) FROM tab1 WHERE col2 + 7 + - ( + + col0 ) * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - 23 - + - MAX ( 58 ) FROM tab1 WHERE col2 + 7 + - ( + + col0 ) * col0 IS NULL
----
NULL

query I rowsort
SELECT - + 33 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1320
-1914
-759

query I rowsort
SELECT + 38 + - 54 AS col2 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT + - 15 * - col2 + + col2 + - col0 FROM tab2 AS cor0
----
322
576
853

query I rowsort
SELECT DISTINCT - - 8 - - - col1 + col2 FROM tab2 AS cor0
----
-1
-20
-29

query I rowsort
SELECT ALL + - col1 * + col1 + - - col0 + + 15 - - col0 FROM tab2 AS cor0
----
-2494
-4324
-5786

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 61 ) <> + col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT - COUNT( * ) + - COUNT( * ), - 18 AS col0 FROM tab0 cor0
----
-6
-18

skipif mysql # not compatible
query II rowsort label-5208
SELECT - COUNT ( * ) + - COUNT ( * ), - 18 AS col0 FROM tab0 cor0
----
-6
-18

query II rowsort
SELECT DISTINCT - col1 - + 5, 42 * - 9 AS col1 FROM tab2
----
-56
-378
-72
-378
-82
-378

query I rowsort
SELECT col0 * + - 70 FROM tab2
----
-3220
-4480
-5250

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + - ( + col0 ) + - - col2 * - - 93 + + 68 - + col0 NOT BETWEEN NULL AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT COUNT( 88 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5212
SELECT COUNT ( 88 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab1
----
91
91
91

query I rowsort
SELECT - col2 - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) * 67 + - - 12 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 67 + - - 12 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + 91 * + col1 - + col0, - col2 AS col0 FROM tab1 AS cor0
----
1223
-96
370
-59
4186
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - - col1 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col0 * ( - 88 ) * + col0 + 42 FROM tab0 AS cor0
----
-19758
-666030
-827950

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 * col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL CAST( - + col0 AS SIGNED ) * + col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL CAST ( - + col0 AS INTEGER ) * + col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT MIN( col1 ) FROM tab2 WHERE ( NULL ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT MIN ( col1 ) FROM tab2 WHERE ( NULL ) IS NULL
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col1, + col1 col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

query II rowsort
SELECT - 62 + - + col0, col1 FROM tab2 cor0
----
-108
51
-126
77
-137
67

query I rowsort
SELECT + 64 + - col0 + - 31 AS col1 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT - - col1 + col2 - 5 FROM tab2 AS cor0
----
112
120
69

query I rowsort
SELECT ALL - col2 * - 94 + col2 AS col2 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - COUNT( * ) + - 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-102

skipif mysql # not compatible
query I rowsort label-5229
SELECT - COUNT ( * ) + - 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT + 71 DIV + 18 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + 71 / + 18 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL COUNT( * ) col0 FROM tab0 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-5231
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 31 + - col2 + 55 AS col2 FROM tab2 AS cor0
----
28
46
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5234
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + 45 + - - 46 + 42 AS col2 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT 9 - + 58 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - - 33 + - + col2 AS col1 FROM tab1 AS cor0
----
-26
-35
-63

query I rowsort
SELECT + col1 - 54 * - col0 FROM tab1 AS cor0
----
2768
4595
4961

query I rowsort
SELECT 41 - + col0 * - ( + - col0 ) * - 1 * + col1 + + 28 FROM tab1
----
36194
36483
389276

query I rowsort
SELECT ALL + col0 + - 61 / - - col2 * + col0 AS col2 FROM tab2 WHERE NOT + col0 * - + ( + 83 ) < NULL
----

query II rowsort
SELECT + 43, col2 FROM tab2
----
43
23
43
40
43
58

query II rowsort
SELECT DISTINCT 89 AS col1, + col0 * col0 FROM tab0
----
89
225
89
7569
89
9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 * + - col1 IS NOT NULL
----

query I rowsort
SELECT 86 * - + 91 FROM tab1 AS cor0
----
-7826
-7826
-7826

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = - col2 + + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + COUNT( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5246
SELECT + COUNT ( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - - 71 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
71
-59
71
-68
71
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL 27 * - col1 * + col0 FROM tab2
----
-133056
-135675
-63342

query I rowsort
SELECT ( - 60 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - + ( + SUM( ( + 20 ) ) ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - + ( + SUM ( ( + 20 ) ) ) AS col0 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT ALL - ( 4 ) * - 39 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
156
156
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > - col1 - - + 7 - col2 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 75 ) * + + col1 * - col2 col1 FROM tab1
----
100800
22125
239700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 62 * 5 col2 FROM tab0
----
-15
310
-87
310
-97
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 35 FROM tab2 WHERE - ( col0 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 35 FROM tab2 WHERE - ( col0 ) <> ( NULL )
----
NULL

query I rowsort
SELECT col1 + + - col0 * - - col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT col0 + + col0 * 7 AS col0 FROM tab0
----
120
696
776

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT + col0 DIV + col2 + + + 41 AS col1 FROM tab2
----
42
42
43

skipif mysql # not compatible
query I rowsort label-5260
SELECT + col0 / + col2 + + + 41 AS col1 FROM tab2
----
42
42
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT COUNT( * ) + + COUNT( * ) + + 46 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-5261
SELECT COUNT ( * ) + + COUNT ( * ) + + 46 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT SUM( DISTINCT + col2 ) + 9 AS col0 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT SUM ( DISTINCT + col2 ) + 9 AS col0 FROM tab1
----
232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 col1 FROM tab1 WHERE ( + col2 - - 47 IS NOT NULL )
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query III rowsort label-5264
SELECT + 35 * MIN( - + 16 ), + COUNT( * ) + - COUNT( * ) AS col0, + 22 AS col2 FROM tab1, tab1 cor0
----
-560
0
22

skipif mysql # not compatible
query III rowsort label-5264
SELECT + 35 * MIN ( - + 16 ), + COUNT ( * ) + - COUNT ( * ) AS col0, + 22 AS col2 FROM tab1, tab1 cor0
----
-560
0
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT + col2 DIV 97 + + col2 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT + col2 / 97 + + col2 col1 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab2 WHERE - 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT ( - - 80 ) DIV - + col1 + - 61 FROM tab0 cor0
----
-141
-61
-64

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT ( - - 80 ) / - + col1 + - 61 FROM tab0 cor0
----
-141
-61
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT DISTINCT + 79 * + col2 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + 79 * + col2 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL + col1 * + + 67 + - 49 DIV - ( + col2 ) - - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
3414
4538
5163

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + col1 * + + 67 + - 49 / - ( + col2 ) - - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
3414
4538
5163

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 84 ) BETWEEN - 73 * + col2 - - col2 * - col2 AND - col2 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) + - 64 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 64 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT + col1 + + CAST( col2 - - 79 * ( - col2 * - 96 ) AS SIGNED ) * 7 FROM tab2 WHERE ( NULL ) NOT IN ( CAST( - col1 AS SIGNED ) * col1 + + 52 )
----

skipif mysql # not compatible
query I rowsort label-5272
SELECT + col1 + + CAST ( col2 - - 79 * ( - col2 * - 96 ) AS INTEGER ) * 7 FROM tab2 WHERE ( NULL ) NOT IN ( CAST ( - col1 AS INTEGER ) * col1 + + 52 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT - 80 * - col2 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 80 * - col2 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 + 56 FROM tab2 WHERE 15 IS NULL
----

query I rowsort
SELECT col2 * 49 + col2 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT - 35 * + ( + col2 ) AS col2 FROM tab2
----
-1400
-2030
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT - ( COUNT( * ) ) + + MIN( ( + 48 ) ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - ( COUNT ( * ) ) + + MIN ( ( + 48 ) ) FROM tab1
----
45

query I rowsort
SELECT + 24 * col0 AS col1 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT DISTINCT col1 * 65 FROM tab0
----
1365
5265
65

query I rowsort
SELECT DISTINCT col0 * col2 + 59 FROM tab2
----
1117
2619
4409

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT - 15 * ( + COUNT( * ) ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - 15 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT ALL + 44 FROM tab2 WHERE NOT ( col0 ) IN ( + col2 )
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5284
SELECT + COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 / + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5285
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 / + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT MIN( 7 ) * 7 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT MIN ( 7 ) * 7 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT ALL 5 DIV col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL 5 / col1 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL - ( - col2 ) * + col2 - - 54 AS col0 FROM tab1 WHERE + 22 * col0 = ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 38 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - SUM( - col0 ) col1 FROM tab0 WHERE NULL NOT IN ( - 45 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT - SUM ( - col0 ) col1 FROM tab0 WHERE NULL NOT IN ( - 45 )
----
NULL

query I rowsort
SELECT - col2 * col0 + + col0 FROM tab2
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + ( - 86 + + col2 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT 70 DIV col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 70 / col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - SUM( + col0 ) + 49 col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT - SUM ( + col0 ) + 49 col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
NULL

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col2 <> NULL
----

query I rowsort
SELECT ALL - col0 * + 42 + - col1 AS col0 FROM tab2 cor0
----
-1983
-2765
-3217

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT MIN( + col1 ) * + 38 AS col0 FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-5300
SELECT MIN ( + col1 ) * + 38 AS col0 FROM tab1 AS cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( 97 ) ) <= + ( col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( 97 ) ) <= + ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + MIN( 7 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5302
SELECT + MIN ( 7 ) AS col2 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT MIN( + ( 75 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5303
SELECT MIN ( + ( 75 ) ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT COUNT( * ) * - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5305
SELECT COUNT ( * ) * - 25 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( 46 )
----

query I rowsort
SELECT DISTINCT - 4 + col2 FROM tab2
----
19
36
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab2
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 15 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT SUM( - 7 ) + 65 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5311
SELECT SUM ( - 7 ) + 65 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL + 50 + + 39 * + 89 AS col0 FROM tab1 AS cor0
----
3521
3521
3521

query I rowsort
SELECT + 6 + - 78 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
2529
4417
5857

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * ( + + 25 ) - 43 FROM tab0 cor0
----
1132
207
2432

query I rowsort
SELECT ALL - ( - 62 ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-4834
-4953
-6126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 92 )
----

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT - col1 DIV col1 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-5322
SELECT - col1 / col1 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT DISTINCT - col1 DIV - - 55 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - col1 / - - 55 FROM tab0 cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT - - COUNT( * ) AS col1, + 48 AS col0 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-5325
SELECT - - COUNT ( * ) AS col1, + 48 AS col0 FROM tab2 AS cor0
----
3
48

query I rowsort
SELECT ALL ( + + 40 ) FROM tab2 AS cor0
----
40
40
40

query II rowsort
SELECT DISTINCT - 72, col0 FROM tab1 cor0
----
-72
51
-72
85
-72
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + - COUNT( * ) * - 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + - COUNT ( * ) * - 50 FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5329
SELECT ALL - col2 + + 35 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + + + CAST( NULL AS DECIMAL ) AND - col2 * 18
----

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - col2 + + 35 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + + + CAST ( NULL AS REAL ) AND - col2 * 18
----

query I rowsort
SELECT + ( 45 ) FROM tab1
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + ( - + 44 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5332
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - SUM( + 2 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5334
SELECT - SUM ( + 2 ) AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - 47 * 21 * - SUM( + col2 ) AS col1 FROM tab0
----
153972

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 47 * 21 * - SUM ( + col2 ) AS col1 FROM tab0
----
153972

query I rowsort
SELECT ALL - col1 * - + 69 AS col1 FROM tab2
----
3519
4623
5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL - - col0 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - - col0 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 99 NOT IN ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT + MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5342
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 36 NOT IN ( - + CAST( - - col1 AS SIGNED ) - col2 ) AND NOT + ( 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5342
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 36 NOT IN ( - + CAST ( - - col1 AS INTEGER ) - col2 ) AND NOT + ( 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL + - CAST( - col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + - CAST ( - col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 77 - - + 60 * + 43 + - col2 col1 FROM tab1 AS cor0
----
6411
9066
9519

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + - col0 + + - col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 * col2 + - + col0 FROM tab0 WHERE NOT - - col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT MIN( 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5347
SELECT MIN ( 63 ) FROM tab0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5348
SELECT + COUNT( * ) col2 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) IN ( col2 * - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT + COUNT ( * ) col2 FROM tab2 WHERE - CAST ( NULL AS REAL ) IN ( col2 * - col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 62 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 1 BETWEEN 23 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - 98 FROM tab0 WHERE NULL NOT IN ( - - col1 * - col2 * ( col0 ) + col2 )
----

query I rowsort
SELECT col2 - - + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ( - col1 ) * 44 - 24 * + col1 AS col0 FROM tab1 AS cor0
----
-3196
-340
-952

query I rowsort
SELECT 15 + col1 AS col2 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT col2 / CAST( NULL AS SIGNED ) + + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT col2 / CAST ( NULL AS INTEGER ) + + - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5356
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col2 * + col0 DIV + col0 AS col1 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col2 * + col0 / + col0 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT 64 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT 64 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 NOT IN ( ( col0 ) + - - col0 )
----

query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0 WHERE NOT ( - col2 / + + ( 71 ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT DISTINCT ( + ( + - 60 ) ) * + col2 * - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-17700
-191760
-80640

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT ( + ( + - 60 ) ) * + col2 * - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-17700
-191760
-80640

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT MIN( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT MIN ( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - SUM( ALL - + 43 ) col0 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT - SUM ( ALL - + 43 ) col0 FROM tab2 AS cor0
----
129

query II rowsort
SELECT - col2 AS col2, 10 * - col0 AS col0 FROM tab1
----
-59
-850
-68
-910
-96
-510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT - col2 / + + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT - col2 / + + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE + - col2 + - col2 + - - 49 + - 1 NOT BETWEEN + 68 / - 90 AND ( NULL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE + - col2 + - col2 + - - 49 + - 1 NOT BETWEEN + 68 / - 90 AND ( NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 75 col2 FROM tab1
----
1050
3525
375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5367
SELECT CAST( NULL AS SIGNED ) AS col2, - 60 AS col0 FROM tab0
----
NULL
-60
NULL
-60
NULL
-60

skipif mysql # not compatible
query II rowsort label-5367
SELECT CAST ( NULL AS INTEGER ) AS col2, - 60 AS col0 FROM tab0
----
NULL
-60
NULL
-60
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL - + MAX( DISTINCT 13 ) AS col2 FROM tab0 WHERE + col2 * - 67 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - + MAX ( DISTINCT 13 ) AS col2 FROM tab0 WHERE + col2 * - 67 IS NULL
----
NULL

query II rowsort
SELECT 1 AS col2, + col1 AS col2 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT - COUNT( DISTINCT col2 ) + 85 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 * + ( + - 74 ) + + 93 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - COUNT ( DISTINCT col2 ) + 85 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 * + ( + - 74 ) + + 93 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT 46 * - ( - COUNT( * ) ) FROM tab2 WHERE NOT - 92 + + 27 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-5371
SELECT 46 * - ( - COUNT ( * ) ) FROM tab2 WHERE NOT - 92 + + 27 IS NULL
----
138

query I rowsort
SELECT col1 * 20 AS col0 FROM tab1 AS cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - 90 * + - COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-5373
SELECT - 90 * + - COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 col2 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL col2 * - col1 * + col0 + col0 FROM tab2 AS cor0
----
-197056
-291375
-53912

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + col0 + + 80 AS col0 FROM tab1 AS cor0
----
131
165
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT - 17 + 42 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - ( + 95 ) * + col1 + - CAST( - col1 AS SIGNED ) <> + col0 * col1
----
2125
3553
3805

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - 17 + 42 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - ( + 95 ) * + col1 + - CAST ( - col1 AS INTEGER ) <> + col0 * col1
----
2125
3553
3805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT - - CAST( + CAST( - + 2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5380
SELECT - - CAST ( + CAST ( - + 2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 * - 14 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT - col2 * col1 * + ( + col1 ) FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5383
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + 46, CAST( - + CAST( col0 AS SIGNED ) AS DECIMAL ) )
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + 46, CAST ( - + CAST ( col0 AS INTEGER ) AS REAL ) )
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - ( - + 25 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - - 1 * + - 29 + + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5385
SELECT - - 1 * + - 29 + + COUNT ( * ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - 74 AS col2 FROM tab1 AS cor0 WHERE - ( - col2 ) / - + 44 + col1 > - 67 + + - 16
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT - + 84 + + ( - 94 ) + - 81 * AVG ( ALL + - 41 ) FROM tab0 WHERE - CAST( - 95 AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT - + 84 + + ( - 94 ) + - 81 * AVG ( ALL + - 41 ) FROM tab0 WHERE - CAST ( - 95 AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL ( - col0 ) - + - col2 + + col2 * - + col0 AS col2 FROM tab0
----
-673
-947
-9601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT 23 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT 23 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 42 < col2 + - 85 AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + + ( + 42 ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + + ( + 42 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT 14 * - col1 + col0 AS col0 FROM tab0
----
-1119
-207
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT + col2 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5394
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - ( + COUNT( * ) ) + + 82 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + CAST ( NULL AS REAL ) - - ( + COUNT ( * ) ) + + 82 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col2 AS col0, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL SUM( - 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL SUM ( - 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT + col2 * - col1 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

query II rowsort
SELECT + - col0 AS col1, 59 FROM tab0 AS cor0
----
-15
59
-87
59
-97
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) <= + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT ALL + COUNT( * ), - 31 AS col0 FROM tab2 AS cor0
----
3
-31

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL + COUNT ( * ), - 31 AS col0 FROM tab2 AS cor0
----
3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1 AS cor0 WHERE NULL <= col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + col1 ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + SUM( 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5407
SELECT + SUM ( 62 ) FROM tab0
----
186

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - 56 ) BETWEEN NULL AND + ( - + 13 )
----

query II rowsort
SELECT 22 * + col1 AS col2, - ( + ( + col0 ) ) FROM tab2
----
1122
-46
1474
-75
1694
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT 68 * - + COUNT( * ) * + + 77 AS col2 FROM tab0
----
-15708

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT 68 * - + COUNT ( * ) * + + 77 AS col2 FROM tab0
----
-15708

query I rowsort
SELECT - col1 + + + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT ( SUM( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT ( SUM ( - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 36 * col2 < + col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT - 62 / col0 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 62 / col0 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5415
SELECT + CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5415
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 * 39 + + col0 * - + col2 FROM tab2 AS cor0
----
-1698
1594
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - - 92 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - 92 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
89

query II rowsort
SELECT ALL + col0 + - + col2 + - 23 AS col2, - col2 + + 28 FROM tab2 AS cor0
----
-6
-30
0
5
1
-12

query I rowsort
SELECT ALL - 38 - col0 + col0 AS col2 FROM tab1 cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - ( + + 15 ) + + col0, col2 col1 FROM tab0 cor0
----
81
47
83
99
93
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5423
SELECT - 94 + - col0 * + CAST( + col1 AS DECIMAL ) * - col1 + + + col0 + - - CAST( NULL AS SIGNED ) + + col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 94 + - col0 * + CAST ( + col1 AS REAL ) * - col1 + + + col0 + - - CAST ( NULL AS INTEGER ) + + col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - ( + - COUNT( DISTINCT + + ( - col1 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - ( + - COUNT ( DISTINCT + + ( - col1 ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - SUM( 71 ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT ALL - SUM ( 71 ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 ) AND NULL
----
NULL

query II rowsort
SELECT ALL - - col1, - col2 * - col2 AS col1 FROM tab2 AS cor0
----
51
529
67
3364
77
1600

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 * + col1 + 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND 71
----

query I rowsort
SELECT 46 FROM tab0 WHERE col2 + 45 IS NOT NULL
----
46
46
46

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / col2 + - col0 * + 1 - - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - col1 IN ( + 57 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT 72 AS col1, 52 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72
468

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT 72 AS col1, 52 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 48 ) col1 FROM tab1 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 < - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT COUNT( * ) AS col1, COUNT( * ) * + - ( + 54 ) FROM tab0 cor0
----
3
-162

skipif mysql # not compatible
query II rowsort label-5435
SELECT COUNT ( * ) AS col1, COUNT ( * ) * + - ( + 54 ) FROM tab0 cor0
----
3
-162

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 7 NOT IN ( + - CAST( NULL AS DECIMAL ) * col2 * + + 61 + + col1 + 87 - 38 * col1 - 24 )
----

skipif mysql # not compatible
query III rowsort label-5438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 7 NOT IN ( + - CAST ( NULL AS REAL ) * col2 * + + 61 + + col1 + 87 - 38 * col1 - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - MAX( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - MAX ( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + 65 * COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 65 * COUNT ( * ) FROM tab0 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT ALL - col1 * col2 + + 68 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-1172
-3080
-3885

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - col1 * col2 + + 68 / - - col1 AS col1 FROM tab2 AS cor0
----
-1172
-3080
-3885

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 79 AS col0, - col2 col0 FROM tab2
----
79
-23
79
-40
79
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 67
----

query I rowsort
SELECT col2 * - ( - + 49 ) AS col1 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT + ( CAST( - + col1 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT + ( CAST ( - + col1 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL + + CAST( + + COUNT( * ) AS SIGNED ) + - 38 AS col0 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + + CAST ( + + COUNT ( * ) AS INTEGER ) + - 38 AS col0 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * + col1 * - ( col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - ( 22 ) ) * + 81 AND - - 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5451
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - + col0 / - ( - - col1 ) + 62
----

skipif mysql # not compatible
query III rowsort label-5451
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - + col0 / - ( - - col1 ) + 62
----

query I rowsort
SELECT 13 * - col2 + col0 + + ( - ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1091
-33
-549

query I rowsort
SELECT DISTINCT + 20 + - + col2 + ( col0 ) FROM tab0 AS cor0
----
-12
18
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT - - COUNT( + 66 ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - - COUNT ( + 66 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT ALL - ( - + 53 ) + - col1 DIV col0 * + col2 FROM tab2 AS cor0
----
13
30
53

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - ( - + 53 ) + - col1 / col0 * + col2 FROM tab2 AS cor0
----
13
30
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 65 - + + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5456
SELECT 65 - + + COUNT ( * ) FROM tab0 AS cor0
----
62

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT 0 - - col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL 69 - - col2 FROM tab0
----
116
168
79

query I rowsort
SELECT - 74 + + col2 FROM tab0 WHERE NULL IS NULL
----
-27
-64
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 94
----

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1, tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT col0 DIV + 40 + + col2 FROM tab1
----
61
70
97

skipif mysql # not compatible
query I rowsort label-5463
SELECT col0 / + 40 + + col2 FROM tab1
----
61
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + + CAST( - + 39 AS SIGNED ) AS col1 FROM tab1 WHERE + + 21 >= - col0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + + CAST ( - + 39 AS INTEGER ) AS col1 FROM tab1 WHERE + + 21 >= - col0
----
-39
-39
-39

query II rowsort
SELECT ALL 71 AS col2, 27 * - col1 FROM tab0
----
71
-2187
71
-27
71
-567

query I rowsort
SELECT + 1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT 27, + ( - - col1 ) AS col1 FROM tab1
----
27
14
27
47
27
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT - col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5468
SELECT - col1 / - - col0 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 15 >= + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( + 67 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( + 67 ) AND col0
----
0

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - CAST( + ( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5473
SELECT - CAST ( + ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + ( col2 )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col1 + - + 87 IS NULL
----
59
68
96

query I rowsort
SELECT + 83 * + col1 * + 33 + + 91 AS col0 FROM tab0
----
221950
2830
57610

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( * ) + + + 79 AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( * ) + + + 79 AS col2 FROM tab1
----
82

query I rowsort
SELECT + col1 + + - 1 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL - 12 + - col0 * + ( + col1 ) FROM tab1 AS cor0
----
-4289
-437
-726

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT col0 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 + - col1 col1 FROM tab0 AS cor0
----
-158
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----
0

query I rowsort
SELECT + - ( + - 28 ) FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5484
SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5484
SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT - col2 + col1 DIV + col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - col2 + col1 / + col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 42 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 42 <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 + - col1 + + - 77 AS col1 FROM tab1 AS cor0
----
-105
-171
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 89 - 89 AS col2 FROM tab2 AS cor0
----
-178

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 NOT BETWEEN - + col1 AND NULL OR col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - - 65 ) FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT ALL ( + col1 ) - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL ( col2 ) - + 79 AS col0 FROM tab1
----
-11
-20
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5495
SELECT - ( - col2 ) col2, - CAST( + col1 AS SIGNED ) FROM tab2
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5495
SELECT - ( - col2 ) col2, - CAST ( + col1 AS INTEGER ) FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT 81 * - - 37 FROM tab2
----
2997

query I rowsort
SELECT DISTINCT - col0 * 22 AS col1 FROM tab0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL - CAST( NULL AS SIGNED ) / - - 81 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 81 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT ALL + 69 DIV col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + 69 / col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 0, 16, + col2 - 84 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT DISTINCT 52 * + MIN( DISTINCT + 40 ) col0, 73 FROM tab1
----
2080
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5501
SELECT DISTINCT 52 * + MIN ( DISTINCT + 40 ) col0, 73 FROM tab1
----
2080
73

query II rowsort
SELECT ALL col1 AS col1, - 90 AS col1 FROM tab1 AS cor0
----
14
-90
47
-90
5
-90

query II rowsort
SELECT col2 AS col1, + col2 + - 31 FROM tab0 cor0
----
10
-21
47
16
99
68

query I rowsort
SELECT 7 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT COUNT( * ), + COUNT( + - col2 ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5505
SELECT COUNT ( * ), + COUNT ( + - col2 ) AS col0 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + - CAST( NULL AS SIGNED ) - - col0
----

skipif mysql # not compatible
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + - CAST ( NULL AS INTEGER ) - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT + col1 DIV - + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-5507
SELECT + col1 / - + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 14 ) col2 FROM tab2 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - - 66 DIV col0 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - 66 / col0 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 58 - + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + 92 ) + - col2 AS col2, + col1 FROM tab2 AS cor0
----
34
67
52
77
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - MAX( - - ( ( col2 ) ) ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5512
SELECT - MAX ( - - ( ( col2 ) ) ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + + col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT + + col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 53 * - + ( - ( col1 ) ) FROM tab2
----
2703
3551
4081

query II rowsort
SELECT + 19 * + col0, + col1 AS col1 FROM tab0
----
1653
21
1843
1
285
81

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE ( - col1 * + col2 ) IS NULL
----

query I rowsort
SELECT ALL + 38 * - 25 AS col1 FROM tab1
----
-950
-950
-950

query I rowsort
SELECT DISTINCT 48 * + - 89 + + 12 + 84 AS col1 FROM tab2
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + COUNT( * ) + ( - 1 ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + COUNT ( * ) + ( - 1 ) AS col0 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + - MAX( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-98

skipif mysql # not compatible
query I rowsort label-5521
SELECT + - MAX ( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-98

query I rowsort
SELECT + col0 * - col1 - + + col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT 86 - col1 AS col2 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5524
SELECT + + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5525
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 * CAST( col1 AS SIGNED ) * - ( + col0 ) > - CAST( + col0 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5525
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 * CAST ( col1 AS INTEGER ) * - ( + col0 ) > - CAST ( + col0 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - 94 AS col1 FROM tab1 AS cor0
----
-145
-179
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL CAST( + col0 AS SIGNED ) + - 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
41
52

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL CAST ( + col0 AS INTEGER ) + - 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT SUM( ALL - 48 ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5530
SELECT SUM ( ALL - 48 ) AS col1 FROM tab2
----
-144

query II rowsort
SELECT DISTINCT 4 AS col2, col1 FROM tab0
----
4
1
4
21
4
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 65 + col2 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT 74 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 74 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * col1 AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5535
SELECT DISTINCT 50, - CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
50
1
50
21
50
81

skipif mysql # not compatible
query II rowsort label-5535
SELECT DISTINCT 50, - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
50
1
50
21
50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT SUM( - 36 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5536
SELECT SUM ( - 36 ) FROM tab0
----
-108

query I rowsort
SELECT DISTINCT 40 FROM tab0 WHERE NULL IS NULL
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col1 col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - + col0 col2 FROM tab0
----
4263
4753
735

query I rowsort
SELECT col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 BETWEEN + 40 + + col1 + - 6 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 31 AS col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + col2 * + col1 + + col0 + 68 + - - col1 + + - col2 FROM tab1 AS cor0
----
1381
3334
394

query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 + + - col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 78 ) < - ( - 68 )
----

query I rowsort
SELECT DISTINCT - 79 + + + col0 AS col0 FROM tab2 AS cor0
----
-15
-33
-4

query I rowsort
SELECT - + 40 + col2 FROM tab2 AS cor0
----
-17
0
18

query I rowsort
SELECT + col2 + + - col1 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL ( - + 2 ) * - col2 * - + 86 + + col0 FROM tab0
----
-1633
-16931
-8069

query III rowsort
SELECT * FROM tab2 WHERE + col1 > + col1 + + col0
----

query I rowsort
SELECT + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT + ( - - CAST( - - 98 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + ( - - CAST ( - - 98 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL - MIN( + - 26 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - MIN ( + - 26 ) AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
58

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 32 + + col0 + - 93 NOT BETWEEN + - 15 AND - + col0 + col2
----

query II rowsort
SELECT col0, + col1 + + col2 * + col2 AS col0 FROM tab2
----
46
580
64
1677
75
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT MAX( DISTINCT + + 1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5560
SELECT MAX ( DISTINCT + + 1 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 BETWEEN - col2 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5562
SELECT col0, CAST( NULL AS SIGNED ) / + + 72 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5562
SELECT col0, CAST ( NULL AS INTEGER ) / + + 72 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - MIN( DISTINCT + - 72 ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - MIN ( DISTINCT + - 72 ) AS col2 FROM tab2
----
72

query III rowsort
SELECT * FROM tab1 WHERE NOT - 42 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT ALL - COUNT( * ), 46 AS col1 FROM tab0 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL - COUNT ( * ), 46 AS col1 FROM tab0 AS cor0
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col1 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 96 + + + 4 + - - col0 * + col0 IS NULL
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 67 col2 FROM tab1 cor0
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT - ( 78 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-78

query I rowsort
SELECT - - col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT CAST( - - 85 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5572
SELECT CAST ( - - 85 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + COUNT( * ) * MAX( + - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5573
SELECT + COUNT ( * ) * MAX ( + - col1 ) FROM tab0
----
-3

query I rowsort
SELECT - 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 0 + - + col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT 46 + - 32 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col0 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT 44 AS col2, ( + COUNT( * ) ) FROM tab1 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-5579
SELECT 44 AS col2, ( + COUNT ( * ) ) FROM tab1 AS cor0
----
44
3

query I rowsort
SELECT ALL - - col1 + col2 + - col1 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT + + 55 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-5581
SELECT + + 55 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
55
3

query I rowsort
SELECT ALL col1 + + - col0 + - - col2 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT ALL col0 * + 84 AS col1 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - col2 * + + col1 * + 2 FROM tab1 AS cor0
----
-2688
-590
-6392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT 57 * + + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT 57 * + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + 12 + 38 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + 12 + 38 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT 92 * + col0, 73 - + - col2 AS col0 FROM tab2 AS cor0
----
4232
96
5888
113
6900
131

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL MIN( - col0 ) * + COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL MIN ( - col0 ) * + COUNT ( * ) FROM tab2
----
-225

query II rowsort
SELECT DISTINCT - col0 * + 10 AS col0, - col2 AS col2 FROM tab2
----
-460
-23
-640
-40
-750
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT MIN( - col1 ) * + 33 FROM tab0
----
-2673

skipif mysql # not compatible
query I rowsort label-5591
SELECT MIN ( - col1 ) * + 33 FROM tab0
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL - col2 * CAST( - + 51 AS SIGNED ) AS col0 FROM tab2
----
1173
2040
2958

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - col2 * CAST ( - + 51 AS INTEGER ) AS col0 FROM tab2
----
1173
2040
2958

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - 96 + col1 DIV 27 col2 FROM tab0
----
-93
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5593
SELECT DISTINCT - 96 + col1 / 27 col2 FROM tab0
----
-93
-96

query II rowsort
SELECT col0 + - col0 AS col2, - col0 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ( + col1 ) * - col1 + + ( - + col2 ) + CAST( + col0 AS SIGNED ) * + 60 * - col2 FROM tab2
----
-159569
-265547
-66104

skipif mysql # not compatible
query I rowsort label-5595
SELECT ( + col1 ) * - col1 + + ( - + col2 ) + CAST ( + col0 AS INTEGER ) * + 60 * - col2 FROM tab2
----
-159569
-265547
-66104

query I rowsort
SELECT ALL ( - + col2 ) + + + col1 * + 47 FROM tab2
----
2374
3091
3579

query I rowsort
SELECT + - col2 + + 15 AS col1 FROM tab2 AS cor0
----
-25
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT - + ( + + 4 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - + ( + + 4 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + - MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5600
SELECT + - MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 - - col2 <= 10 * - - col1
----
85
5
59

query I rowsort
SELECT DISTINCT + ( + - 65 ) FROM tab0 cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT 0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT 0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT 52 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5604
SELECT 52 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - MAX( + ( - col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - MAX ( + ( - col0 ) ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - + col2
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + + col2 * - + col2 <> + col2
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - MIN( ALL 95 ) AS col1 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-5608
SELECT - MIN ( ALL 95 ) AS col1 FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT + CAST( - 93 AS SIGNED ) AS col1 FROM tab0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-5609
SELECT + CAST ( - 93 AS INTEGER ) AS col1 FROM tab0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT - + col2 DIV col0 DIV + col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT - + col2 / col0 / + col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - + col2 + 69 AS col1 FROM tab0 cor0
----
-30
22
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT DISTINCT 54, + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5613
SELECT DISTINCT 54, + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT + MAX( DISTINCT ( col0 ) ) FROM tab2 AS cor0 WHERE ( - - 80 ) * - 51 NOT BETWEEN NULL AND + col0 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + MAX ( DISTINCT ( col0 ) ) FROM tab2 AS cor0 WHERE ( - - 80 ) * - 51 NOT BETWEEN NULL AND + col0 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL COUNT( * ) + + - 77 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL COUNT ( * ) + + - 77 FROM tab2 cor0
----
-74

query II rowsort
SELECT col1 * - 22, + 44 * col2 AS col1 FROM tab1 WHERE col0 + + ( col2 ) IS NOT NULL
----
-1034
2992
-110
2596
-308
4224

query I rowsort
SELECT - 90 * col2 FROM tab1
----
-5310
-6120
-8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + 37 col0, 4 FROM tab1
----
42
4
51
4
84
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL CAST( + + 83 AS SIGNED ) AS col1 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL CAST ( + + 83 AS INTEGER ) AS col1 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 2 col2 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col2 * + col2 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT * FROM tab0 WHERE 26 * + CAST( NULL AS SIGNED ) > - + ( + 58 )
----

skipif mysql # not compatible
query III rowsort label-5622
SELECT * FROM tab0 WHERE 26 * + CAST ( NULL AS INTEGER ) > - + ( + 58 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 IN ( 91 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT DISTINCT + + col0 + - col0 DIV col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + + col0 + - col0 / col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT + col1 - + col1 * 31 AS col2 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + COUNT( * ) * - COUNT( 46 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5627
SELECT + COUNT ( * ) * - COUNT ( 46 ) FROM tab1
----
-9

query II rowsort
SELECT - + 86 * + col1, col2 FROM tab1 cor0 WHERE NOT col0 < + 63 + - col2 * + col1 * 55
----
-1204
96
-4042
68
-430
59

query I rowsort
SELECT col1 * + - ( - col0 ) - - + col2 + col0 * + ( - + col0 ) * - - col0 - + 73 + - - col0 FROM tab0 AS cor0
----
-2171
-656652
-912453

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT ALL COUNT( ALL + col2 ) DIV 94 - - SUM( + 93 ) AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL COUNT ( ALL + col2 ) / 94 - - SUM ( + 93 ) AS col1 FROM tab1 AS cor0
----
279

query I rowsort
SELECT col1 * - + col0 + + 85 FROM tab2 AS cor0
----
-2261
-4843
-4940

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - ( - - col1 ) ) + + col0 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / col2 + - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + SUM( col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5635
SELECT + SUM ( col2 ) AS col2 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5636
SELECT ALL - CAST( NULL AS SIGNED ), 78 * 20 AS col2 FROM tab0
----
NULL
1560
NULL
1560
NULL
1560

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL - CAST ( NULL AS INTEGER ), 78 * 20 AS col2 FROM tab0
----
NULL
1560
NULL
1560
NULL
1560

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT ALL - 26 + + col1 + - - 51 + col1 + - col1 DIV - 49 AS col2 FROM tab1 cor0
----
119
35
53

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 26 + + col1 + - - 51 + col1 + - col1 / - 49 AS col2 FROM tab1 cor0
----
119
35
53

query I rowsort
SELECT DISTINCT - + 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + COUNT( * ) * - 68 + 8 - + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-557

skipif mysql # not compatible
query I rowsort label-5641
SELECT + COUNT ( * ) * - 68 + 8 - + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT - CAST( - 49 AS SIGNED ) + + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

skipif mysql # not compatible
query I rowsort label-5642
SELECT - CAST ( - 49 AS INTEGER ) + + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL - COUNT( * ) + + - COUNT( ALL + col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - COUNT ( * ) + + - COUNT ( ALL + col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5644
SELECT + - CAST( col1 AS SIGNED ) col0, 95 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5644
SELECT + - CAST ( col1 AS INTEGER ) col0, 95 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

query I rowsort
SELECT - + 94 AS col2 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + MIN( - + col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5646
SELECT + MIN ( - + col0 ) AS col0 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT ALL + SUM( col2 ), 77 * ( - + 14 ) + 10 AS col0 FROM tab2 AS cor0
----
121
-1068

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL + SUM ( col2 ), 77 * ( - + 14 ) + 10 AS col0 FROM tab2 AS cor0
----
121
-1068

query I rowsort
SELECT + ( - - col0 ) + 88 AS col1 FROM tab1
----
139
173
179

query II rowsort
SELECT DISTINCT + col1 AS col1, + 72 * + + col1 FROM tab2
----
51
3672
67
4824
77
5544

query I rowsort
SELECT ALL col0 + - 12 + + 55 FROM tab1
----
128
134
94

query I rowsort
SELECT - 72 + - 36 AS col0 FROM tab0
----
-108
-108
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5652
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * + ( - 62 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + ( - 62 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col1 ) * - + 84 + - - col0 AS col2, 2 AS col1 FROM tab0
----
-1677
2
-6789
2
13
2

query II rowsort
SELECT col1, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT 21, col1 AS col1 FROM tab1 AS cor0
----
21
14
21
47
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT CAST( NULL AS SIGNED ) * col2 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT CAST ( NULL AS INTEGER ) * col2 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * + col0 AS col1, 35 + col1 AS col0 FROM tab1 AS cor0
----
-4896
49
-5015
40
-6188
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 39 * - COUNT( DISTINCT ( col0 ) ) FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5659
SELECT 39 * - COUNT ( DISTINCT ( col0 ) ) FROM tab0 cor0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT col0 * - - ( - - CAST( + ( + col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5661
SELECT col0 * - - ( - - CAST ( + ( + col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT + - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 + 6 + - ( col0 ) AS col2 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - MAX( - - col2 ) + - 62 AS col0 FROM tab0
----
-161

skipif mysql # not compatible
query I rowsort label-5664
SELECT - MAX ( - - col2 ) + - 62 AS col0 FROM tab0
----
-161

query I rowsort
SELECT - col2 + 99 AS col2 FROM tab2
----
41
59
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT 10 * + - COUNT( * ) * + SUM( + - 93 ) col0 FROM tab1 WHERE NOT + - col2 / + col2 + 38 / - 2 >= + 54
----
8370

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT 10 * + - COUNT ( * ) * + SUM ( + - 93 ) col0 FROM tab1 WHERE NOT + - col2 / + col2 + 38 / - 2 >= + 54
----
8370

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT + 90 DIV - 8 AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + 90 / - 8 AS col0 FROM tab0
----
-11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 + - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - - col0 col1 FROM tab2 AS cor0
----
2392
4992
5100

query II rowsort
SELECT DISTINCT - 80 + + ( - 20 ) AS col1, col2 FROM tab2
----
-100
23
-100
40
-100
58

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND ( - + col1 + col1 / col1 )
----
15
81
47

query I rowsort
SELECT col0 + + + col1 + - 83 * - ( 61 ) AS col2 FROM tab1 AS cor0
----
5128
5153
5201

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT MIN( + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT MIN ( + + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE - 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE - 12 IS NULL
----
0

query I rowsort
SELECT ALL 15 + - col2 FROM tab2 cor0
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 33 * + 13 * 37 + + 24 col2 FROM tab1 AS cor0
----
-15802
-15835
-15844

onlyif mysql # DIV for integer division: 
query II rowsort label-5677
SELECT col0 AS col2, col1 * col0 DIV + 92 + col2 + - 11 FROM tab1 AS cor0
----
51
92
85
52
91
103

skipif mysql # not compatible
query II rowsort label-5677
SELECT col0 AS col2, col1 * col0 / + 92 + col2 + - 11 FROM tab1 AS cor0
----
51
92
85
52
91
103

query