sqllogictest
Artifact Content
Not logged in

Artifact d7447fa43172b7a82d89e2431d7b582ba86bc680:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col0 * - 18 AS col2 FROM tab0
----
-1566
-1746
-270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT COUNT( * ) * + - 71 AS col2 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-2
SELECT COUNT ( * ) * + - 71 AS col2 FROM tab1
----
-213

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < - 49 + - - 12 + + + col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE NULL <> col2
----

query I rowsort
SELECT col1 * - - 93 + - + 69 AS col2 FROM tab1
----
1233
396
4302

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 * + 99 AS col1 FROM tab1
----
5841
6732
9504

query II rowsort
SELECT ALL col1, col2 + 11 * - 52 FROM tab2 AS cor0
----
51
-549
67
-514
77
-532

query I rowsort
SELECT + + 76 AS col2 FROM tab0 cor0
----
76
76
76

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

skipif mysql # not compatible
query II rowsort label-14
SELECT DISTINCT - col1, ( CAST ( - 83 AS INTEGER ) ) * - + 83 AS col2 FROM tab1 AS cor0
----
-14
6889
-47
6889
-5
6889

query I rowsort
SELECT ALL col2 * - col0 - - 98 FROM tab1 AS cor0
----
-4798
-4917
-6090

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

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

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

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

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

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

query I rowsort
SELECT + col0 * col1 * + - 32 AS col0 FROM tab2 AS cor0
----
-157696
-160800
-75072

query I rowsort
SELECT + - 86 * + - col1 FROM tab2 AS cor0
----
4386
5762
6622

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - MIN( ALL - col0 ) - - + 67 + + - 65 * ( + COUNT( * ) ) AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-23
SELECT - MIN ( ALL - col0 ) - - + 67 + + - 65 * ( + COUNT ( * ) ) AS col2 FROM tab0
----
-31

query I rowsort
SELECT 11 - 44 AS col1 FROM tab0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 WHERE 9 / - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col2 + ( 6 ) FROM tab2
----
1606
3370
535

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-27
SELECT ALL ( - 67 ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL ( - 67 ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 86 * - 74 + - col1 FROM tab0
----
6283
6343
6363

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + 86 + + + MAX( ALL 28 ) * - - COUNT( * ) FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-29
SELECT + 86 + + + MAX ( ALL 28 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
170

query I rowsort
SELECT - 53 + + col1 AS col1 FROM tab0 AS cor0
----
-32
-52
28

query I rowsort
SELECT - - 40 * ( - col1 ) + + col2 - - col1 FROM tab2 AS cor0
----
-1966
-2555
-2963

query I rowsort
SELECT 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

query II rowsort
SELECT col0, col1 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 0 IS NULL
----
46
2346
64
4928
75
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-36
SELECT - col1 + col0 + + col1 - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-36
SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL
----
0
NULL
0
NULL
0
NULL

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

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

query II rowsort
SELECT - col1 AS col1, col0 + + + col0 FROM tab1 AS cor0
----
-14
102
-47
182
-5
170

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + - MAX( + - 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + - MAX ( + - 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, ( - col0 ) AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT + 72 * COUNT( * ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + 72 * COUNT ( * ) FROM tab0 AS cor0
----
216

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

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

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

query I rowsort
SELECT DISTINCT col2 * ( - - col1 ) + + - col2 AS col1 FROM tab2
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL + + MIN( DISTINCT - 84 ) AS col1 FROM tab1 WHERE NOT 55 + 66 IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + + MIN ( DISTINCT - 84 ) AS col1 FROM tab1 WHERE NOT 55 + 66 IS NULL
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + COUNT( * ) * AVG ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + COUNT ( * ) * AVG ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT col2 DIV + col2 - - col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-48
SELECT col2 / + col2 - - col1 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT col0 + col1 - - col0 + - - col1 * col2 FROM tab1
----
1460
3425
470

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 37 ) IS NULL
----

query I rowsort
SELECT + col1 + - + 90 AS col2 FROM tab1 AS cor0
----
-43
-76
-85

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

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

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

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

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

query I rowsort
SELECT ALL + 29 + - ( + 33 ) FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL - + col1 DIV - col1 + + - col0 + + + col1 FROM tab2 cor0
----
-7
14
6

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - + col1 / - col1 + + - col0 + + + col1 FROM tab2 cor0
----
-7
14
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT CAST( + - 76 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-57
SELECT CAST ( + - 76 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-58
SELECT * FROM tab2 WHERE CAST( + col1 AS SIGNED ) + - 73 IS NULL
----

skipif mysql # not compatible
query III rowsort label-58
SELECT * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) + - 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT COUNT( * ) + - + COUNT( 51 ) * COUNT( * ) + + 30 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT COUNT ( * ) + - + COUNT ( 51 ) * COUNT ( * ) + + 30 FROM tab1
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - 16 * + + MAX( + - col1 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-61
SELECT - 16 * + + MAX ( + - col1 ) FROM tab1
----
80

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ( + MAX( - + 40 ) ) * + 27 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ( + MAX ( - + 40 ) ) * + 27 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col2, ( - + col1 ) + + col0 * ( + - 86 ) * col1 - - 37 FROM tab0 cor0
----
10
-157106
47
-104534
99
-8306

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

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

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

skipif mysql # not compatible
query II rowsort label-71
SELECT ALL + - col1, col0 / + ( + col1 ) + 41 AS col2 FROM tab2 AS cor0
----
-51
41
-67
42
-77
41

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col0 NOT BETWEEN - + 70 + + col0 AND col2 / col2 * col0 + - - ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 59 AND - + col1
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT + COUNT( 93 ), + COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-77
SELECT + COUNT ( 93 ), + COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3
3

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

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

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

query I rowsort
SELECT ALL col1 * 93 + - - col0 * - 22 * + 7 FROM tab2
----
-2341
-2695
-5319

query II rowsort
SELECT DISTINCT - col2, + col2 * - ( - col0 ) AS col1 FROM tab1
----
-59
5015
-68
6188
-96
4896

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

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

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

query I rowsort
SELECT + ( - - 73 ) + col1 FROM tab2 cor0
----
124
140
150

query II rowsort
SELECT ALL - 51 * col1 * - + col2 * - col0, col2 FROM tab0 AS cor0
----
-2912355
47
-489753
99
-931770
10

query I rowsort
SELECT ALL col0 * + col0 - - - col1 AS col0 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT DISTINCT + + col0 * - + col2 + col0 AS col2 FROM tab0 AS cor0
----
-690
-783
-9506

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

skipif mysql # not compatible
query I rowsort label-88
SELECT - ( + SUM ( DISTINCT - col2 ) ) * + 15 AS col0 FROM tab1 AS cor0
----
3345

query I rowsort
SELECT - AVG ( + - 42 ) AS col2 FROM tab1 AS cor0 WHERE + col2 > + + col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL COUNT( * ) DIV MIN( - 4 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL COUNT ( * ) / MIN ( - 4 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 - 50 FROM tab1 cor0
----
18
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-92
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL MIN ( ALL - col1 ) FROM tab0
----
-81

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT ( 82 >= + col1 )
----

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

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

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - - 70 * + col0 FROM tab1 AS cor0
----
3570
5950
6370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 3 ) * + 45 - + col2 col2 FROM tab0 cor0
----
125
36
88

query I rowsort
SELECT DISTINCT - col1 * + - 48 FROM tab0 AS cor0
----
1008
3888
48

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

skipif mysql # not compatible
query II rowsort label-101
SELECT ALL - CAST ( - col0 AS INTEGER ), col2 FROM tab0
----
15
47
87
10
97
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT DISTINCT 93 AS col2, MAX( - + col1 ) AS col1 FROM tab2
----
93
-51

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT 93 AS col2, MAX ( - + col1 ) AS col1 FROM tab2
----
93
-51

query I rowsort
SELECT + + col1 * + col1 * + + col1 * + + col1 FROM tab0 cor0
----
1
194481
43046721

query I rowsort
SELECT - 58 + + col2 FROM tab1 AS cor0 WHERE NOT col2 < + 52
----
1
10
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-107
SELECT col2 col1, CAST( NULL AS SIGNED ) + + col2 / - + CAST( + + col0 AS SIGNED ) + 32 + + - 37 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-107
SELECT col2 col1, CAST ( NULL AS INTEGER ) + + col2 / - + CAST ( + + col0 AS INTEGER ) + 32 + + - 37 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - MIN( - - ( - col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-109
SELECT - MIN ( - - ( - col0 ) ) FROM tab1 cor0
----
91

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

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

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

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

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

query II rowsort
SELECT col0 + - col1 AS col1, + col2 FROM tab1
----
37
96
44
68
80
59

query II rowsort
SELECT 76 + - 38 AS col0, + 56 AS col1 FROM tab0
----
38
56
38
56
38
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - col1 + + col1 + + col2 + - 36 col1, 81 FROM tab2
----
-1135
81
-2999
81
-3797
81

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL MIN( ALL + 83 ) FROM tab1 WHERE NOT + col1 IS NULL
----
83

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL MIN ( ALL + 83 ) FROM tab1 WHERE NOT + col1 IS NULL
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-117
SELECT - - 67 FROM tab2 cor0 WHERE + ( - + 91 ) BETWEEN NULL AND col1 * - col1 * + 64 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-117
SELECT - - 67 FROM tab2 cor0 WHERE + ( - + 91 ) BETWEEN NULL AND col1 * - col1 * + 64 + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT + 42 - - SUM( - col0 ) col0 FROM tab1 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT DISTINCT + 42 - - SUM ( - col0 ) col0 FROM tab1 AS cor0
----
-185

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

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

query II rowsort
SELECT ALL + col2 AS col0, + col2 * - col0 * + - col1 * 33 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
1780614
40
6504960
58
9617850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT SUM( ALL - - col0 ) * - 14 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT SUM ( ALL - - col0 ) * - 14 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT DISTINCT 39 + + COUNT( * ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT 39 + + COUNT ( * ) FROM tab2 cor0
----
42

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

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

query II rowsort
SELECT ALL - col0 AS col2, col0 * - 51 AS col1 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
-51
-2601
-85
-4335
-91
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL + COUNT( * ) - + 84 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + COUNT ( * ) - + 84 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 / - - col1 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 / - + col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-131
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col0 * col0 * + 68 * - + CAST( NULL AS SIGNED ) + 1
----

skipif mysql # not compatible
query III rowsort label-131
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col0 * col0 * + 68 * - + CAST ( NULL AS INTEGER ) + 1
----

query II rowsort
SELECT col0 * + 5 AS col2, col0 FROM tab1
----
255
51
425
85
455
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT DISTINCT ( 69 ) AS col0, SUM( - col1 ) FROM tab0
----
69
-103

skipif mysql # not compatible
query II rowsort label-134
SELECT DISTINCT ( 69 ) AS col0, SUM ( - col1 ) FROM tab0
----
69
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT - - SUM( - - 19 ) + - SUM( col2 ) + - + 13 FROM tab0 WHERE NOT - col1 * - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT - - SUM ( - - 19 ) + - SUM ( col2 ) + - + 13 FROM tab0 WHERE NOT - col1 * - col2 <> NULL
----
NULL

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

query II rowsort
SELECT ALL 28 * + 2 * + + 95 * - 77, - col0 AS col1 FROM tab2
----
-409640
-46
-409640
-64
-409640
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * - col1 * - col2 col2 FROM tab0
----
-1470
-26649
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT - ( + - COUNT( * ) ) * - 67 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - ( + - COUNT ( * ) ) * - 67 FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT + CAST( - + ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-141
SELECT + CAST ( - + ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT ALL - + 4 DIV 28 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - + 4 / 28 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT + MAX( + + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + MAX ( + + 12 ) FROM tab2
----
12

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-145
SELECT + 41 * 7 + + + 64 + - col2 DIV 2, + 68 AS col1 FROM tab1 AS cor0
----
303
68
317
68
322
68

skipif mysql # not compatible
query II rowsort label-145
SELECT + 41 * 7 + + + 64 + - col2 / 2, + 68 AS col1 FROM tab1 AS cor0
----
303
68
317
68
322
68

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT 68 * col1 + + 50 - + + col0 FROM tab1 AS cor0
----
305
3155
951

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT - 35 * - - COUNT( * ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-149
SELECT - 35 * - - COUNT ( * ) FROM tab0 AS cor0
----
-105

query I rowsort
SELECT - 6 * + - ( - 60 ) * + col0 AS col2 FROM tab0 AS cor0
----
-31320
-34920
-5400

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

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab1 WHERE ( - col2 ) <> 17
----
3481
4624
9216

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

query I rowsort
SELECT ALL - 68 * + 96 + + col1 AS col2 FROM tab0
----
-6447
-6507
-6527

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

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

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1 WHERE NOT - - 59 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-157
SELECT DISTINCT - col0 AS col0, - col2 DIV - - col1 FROM tab1
----
-51
-6
-85
-11
-91
-1

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT - col0 AS col0, - col2 / - - col1 FROM tab1
----
-51
-6
-85
-11
-91
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-158
SELECT - ( - 25 ) AS col0, + COUNT( * ) FROM tab0 WHERE NULL <= ( - col0 + 89 )
----
25
0

skipif mysql # not compatible
query II rowsort label-158
SELECT - ( - 25 ) AS col0, + COUNT ( * ) FROM tab0 WHERE NULL <= ( - col0 + 89 )
----
25
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68, + 23 col2 FROM tab2
----
68
23
68
23
68
23

query I rowsort
SELECT + ( + 66 ) + + 45 AS col0 FROM tab0 AS cor0
----
111
111
111

query II rowsort
SELECT + - 41 + - + 13 + + col0 - - col1 AS col0, + 37 / - col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT DISTINCT - COUNT( * ) col1, COUNT( * ) * + 41 AS col2 FROM tab2 AS cor0
----
-3
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-163
SELECT DISTINCT - COUNT ( * ) col1, COUNT ( * ) * + 41 AS col2 FROM tab2 AS cor0
----
-3
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-164
SELECT ALL + SUM( ALL - 96 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL + SUM ( ALL - 96 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-288
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL MAX ( - + 54 ) FROM tab2 AS cor0
----
-54

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + 12 * + col2
----

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

query I rowsort
SELECT col2 * 5 * - + 88 AS col2 FROM tab1
----
-25960
-29920
-42240

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

query I rowsort
SELECT ALL + ( 16 ) FROM tab1
----
16
16
16

query II rowsort
SELECT DISTINCT 42, col2 FROM tab0
----
42
10
42
47
42
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL 27 + + MAX( ALL + 85 ) AS col0 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT - 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL 27 + + MAX ( ALL + 85 ) AS col0 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT - 29 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL COUNT( * ) * - 36 * - + COUNT( * ) col1 FROM tab1
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT ALL COUNT ( * ) * - 36 * - + COUNT ( * ) col1 FROM tab1
----
324

query I rowsort
SELECT 53 * 38 FROM tab1 AS cor0
----
2014
2014
2014

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

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

query I rowsort
SELECT ALL - - 90 AS col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + 59 + + col2 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT - 75 + + - col0 + + col2 + - 82 DIV - col2 AS col0 FROM tab1 AS cor0
----
-100
-30
-97

skipif mysql # not compatible
query I rowsort label-185
SELECT - 75 + + - col0 + + col2 + - 82 / - col2 AS col0 FROM tab1 AS cor0
----
-100
-30
-97

query I rowsort
SELECT DISTINCT - col2 + + ( + 35 ) * + 37 FROM tab0
----
1196
1248
1285

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col0 + + col1 + col1 * - ( col0 ) col2 FROM tab1
----
-250
-4048
-598

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NULL = - + 4 + + + col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT - ( - 95 ) * - 61 * col1 + + col1 * 88 DIV col1 AS col2 FROM tab2
----
-295457
-388177
-446127

skipif mysql # not compatible
query I rowsort label-191
SELECT - ( - 95 ) * - 61 * col1 + + col1 * 88 / col1 AS col2 FROM tab2
----
-295457
-388177
-446127

query I rowsort
SELECT DISTINCT + + col2 - 9 AS col0 FROM tab2 AS cor0
----
14
31
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 13 <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL - + CAST( - 35 AS SIGNED ) + + col0 AS col0 FROM tab0 cor0
----
122
132
50

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - + CAST ( - 35 AS INTEGER ) + + col0 AS col0 FROM tab0 cor0
----
122
132
50

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

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

query I rowsort
SELECT ALL 25 + - col1 FROM tab2 AS cor0
----
-26
-42
-52

query II rowsort
SELECT 8 AS col0, 19 + - col1 AS col2 FROM tab1 AS cor0
----
8
-28
8
14
8
5

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - 62 * - COUNT( * ) * 16 * - COUNT( * ) FROM tab1
----
-8928

skipif mysql # not compatible
query I rowsort label-201
SELECT - 62 * - COUNT ( * ) * 16 * - COUNT ( * ) FROM tab1
----
-8928

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

query I rowsort
SELECT - 29 * 78 AS col0 FROM tab1
----
-2262
-2262
-2262

query II rowsort
SELECT - 47 * + 61 AS col1, - col0 * - col0 AS col1 FROM tab1
----
-2867
2601
-2867
7225
-2867
8281

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 14 + 46 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT DISTINCT + MAX( 27 ) AS col2, + COUNT( - col0 ) FROM tab1
----
27
3

skipif mysql # not compatible
query II rowsort label-207
SELECT DISTINCT + MAX ( 27 ) AS col2, + COUNT ( - col0 ) FROM tab1
----
27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL 35 + MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL 35 + MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-62

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

skipif mysql # not compatible
query II rowsort label-209
SELECT + COUNT ( ALL - - col0 ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= + 62 + + - 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-211
SELECT col2 + col2 + + 46 AS col2, + CAST( - col1 AS SIGNED ) FROM tab1
----
164
-5
182
-47
238
-14

skipif mysql # not compatible
query II rowsort label-211
SELECT col2 + col2 + + 46 AS col2, + CAST ( - col1 AS INTEGER ) FROM tab1
----
164
-5
182
-47
238
-14

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT + - MAX( + - col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT + - MAX ( + - col0 ) AS col2 FROM tab2 cor0
----
46

query I rowsort
SELECT - ( 95 ) * col1 AS col2 FROM tab2 AS cor0
----
-4845
-6365
-7315

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

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

query I rowsort
SELECT ALL + col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL - ( + COUNT( * ) ) + + SUM( DISTINCT + + ( + col2 ) ) + + COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - ( + COUNT ( * ) ) + + SUM ( DISTINCT + + ( + col2 ) ) + + COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT col2, ( + CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-218
SELECT col2, ( + CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 85 + + 18 ) < + ( col2 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 25 FROM tab1 AS cor0 WHERE 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + ( COUNT( * ) ) + - 72 + 98 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-224
SELECT + ( COUNT ( * ) ) + - 72 + 98 FROM tab1 cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 * col2 + + col1 col1, - 67 + - + col2 AS col1 FROM tab1 AS cor0
----
25080
-126
290883
-135
68558
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT COUNT( * ) * + 13 + - + 96 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-226
SELECT COUNT ( * ) * + 13 + - + 96 FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-227
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col1, col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-229
SELECT DISTINCT + ( - COUNT( * ) ) * - + COUNT( * ) * CAST( + 3 AS SIGNED ) AS col2, - MAX( 16 ) AS col2 FROM tab2 AS cor0
----
27
-16

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT + ( - COUNT ( * ) ) * - + COUNT ( * ) * CAST ( + 3 AS INTEGER ) AS col2, - MAX ( 16 ) AS col2 FROM tab2 AS cor0
----
27
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT ALL + MAX( DISTINCT + col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + MAX ( DISTINCT + col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-25

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

query II rowsort
SELECT + 3, col0 AS col2 FROM tab0
----
3
15
3
87
3
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COUNT( * ) + + 85 col2 FROM tab1
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT COUNT ( * ) + + 85 col2 FROM tab1
----
88

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - 34 * + col0 * col2 + - 76 FROM tab0
----
-24046
-29656
-326578

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN + col1 - + 21 - + 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT MIN( 47 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-239
SELECT MIN ( 47 ) AS col0 FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL + + col2 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

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

query I rowsort
SELECT - ( - - 90 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT ALL + COUNT( * ), + MAX( 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
98

skipif mysql # not compatible
query II rowsort label-245
SELECT ALL + COUNT ( * ), + MAX ( 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL + - 5 + + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-14

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + - 5 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-14

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68

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

query I rowsort
SELECT ALL + col0 - + + 61 FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT ALL - 74 * + ( + - col1 ) AS col0 FROM tab0 cor0
----
1554
5994
74

query I rowsort
SELECT ALL - + col1 + - ( + col0 ) FROM tab2 cor0
----
-141
-142
-97

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

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

query II rowsort
SELECT ALL col0 * + - col0 * + col2, col2 AS col0 FROM tab1
----
-249696
96
-426275
59
-563108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - SUM( - 81 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-255
SELECT - SUM ( - 81 ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-256
SELECT + COUNT ( * ) FROM tab2, tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col1, - 79 + + col1 FROM tab0 cor0
----
83
-58
83
-78
83
2

query I rowsort
SELECT ALL + 1 + - col0 FROM tab2 WHERE NOT - col1 IN ( col2 )
----
-45
-63
-74

query I rowsort
SELECT col0 + col0 * col2 FROM tab1
----
4947
5100
6279

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

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

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

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

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

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + col0 - + 39 * - col2 > ( - 20 - + ( - col2 + + 72 ) * col0 )
----

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

skipif mysql # not compatible
query I rowsort label-265
SELECT + CAST ( + 58 AS INTEGER ) FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + COUNT( ALL + 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-266
SELECT + COUNT ( ALL + 12 ) FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT 57 - COUNT( * ) * SUM( + col0 ) FROM tab1
----
-624

skipif mysql # not compatible
query I rowsort label-269
SELECT 57 - COUNT ( * ) * SUM ( + col0 ) FROM tab1
----
-624

query I rowsort
SELECT ( + 55 ) - + col2 * - 60 FROM tab2
----
1435
2455
3535

query I rowsort
SELECT DISTINCT + 23 + - col2 * - 60 FROM tab2
----
1403
2423
3503

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE 15 IN ( - 15 / - ( - 57 * col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT 87 * - 75 + COUNT( * ) FROM tab0
----
-6522

skipif mysql # not compatible
query I rowsort label-275
SELECT 87 * - 75 + COUNT ( * ) FROM tab0
----
-6522

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

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 43 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
-2537
-2924
-4128

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

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

query I rowsort
SELECT DISTINCT col2 - - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT COUNT( DISTINCT + 99 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( DISTINCT + 99 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / col2 ) IN ( + 29 )
----

query I rowsort
SELECT 87 * + col2 + + 57 FROM tab1 AS cor0
----
5190
5973
8409

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT 46 AS col2 FROM tab0 WHERE ( + col2 + + col0 ) NOT BETWEEN ( col0 * CAST( 96 / col0 AS SIGNED ) ) AND + col2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-288
SELECT 46 AS col2 FROM tab0 WHERE ( + col2 + + col0 ) NOT BETWEEN ( col0 * CAST ( 96 / col0 AS INTEGER ) ) AND + col2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

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

query I rowsort
SELECT DISTINCT + 26 - + col2 * - col1 FROM tab0 AS cor0
----
125
236
3833

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-292
SELECT - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

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

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

query I rowsort
SELECT - - 56 * + 73 FROM tab1 cor0
----
4088
4088
4088

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( - 84 ) * col2 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + 17 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-296
SELECT + 17 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 * 61 ) BETWEEN ( NULL ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-298
SELECT MAX ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND col0 + - 64
----
NULL

query I rowsort
SELECT 52 * ( 15 ) - + col2 AS col1 FROM tab0 AS cor0
----
681
733
770

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT 40 DIV - 94 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-304
SELECT 40 / - 94 + col0 AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE + col2 > 47 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-306
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * + ( + col0 ) + - col2 / col0 )
----

skipif mysql # not compatible
query III rowsort label-306
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * + ( + col0 ) + - col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT COUNT( 4 ) + + 51 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-307
SELECT COUNT ( 4 ) + + 51 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( - col0 ) > NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col2 ) + + 38 IN ( + ( col0 ) )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( col2 )
----
51
85
91

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 / + ( - col0 * + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + 17 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 5 NOT BETWEEN ( 31 / col2 + ( ( + 87 ) ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 11 * - col1 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT + 93 * col0 FROM tab2 AS cor0
----
4278
5952
6975

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

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 32 * - + ( + SUM ( ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT 94 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-319
SELECT 94 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
103

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 <> 1 - - col2
----

query I rowsort
SELECT ALL + - col1 * col1 + + - col2 * + 94 AS col2 FROM tab2 AS cor0
----
-4763
-9689
-9941

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT + + 96 AS col0, - COUNT( * ) + + + 24 FROM tab2 AS cor0
----
96
21

skipif mysql # not compatible
query II rowsort label-324
SELECT + + 96 AS col0, - COUNT ( * ) + + + 24 FROM tab2 AS cor0
----
96
21

onlyif mysql # DIV for integer division: 
query II rowsort label-325
SELECT - - col0 AS col2, col2 DIV - + 70 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-325
SELECT - - col0 AS col2, col2 / - + 70 FROM tab2 AS cor0
----
46
0
64
0
75
0

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

query I rowsort
SELECT ALL - + col2 + - 98 + col2 * 69 FROM tab1 AS cor0
----
3914
4526
6430

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL + 99 * + COUNT( * ) col1 FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT ALL + 99 * + COUNT ( * ) col1 FROM tab0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT col2 + - col2 + - 69 AS col0 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT 59 + + col1 FROM tab1
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - COUNT( * ) + 14 AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - COUNT ( * ) + 14 AS col0 FROM tab2
----
11

query I rowsort
SELECT DISTINCT col0 * + + 40 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT COUNT( * ) + + 85 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-333
SELECT COUNT ( * ) + + 85 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + + col1 * 3 + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + + col1 * 3 + col1 AND NULL
----
0

query I rowsort
SELECT ALL ( - col0 ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT - - COUNT( * ) + + COUNT( ALL 34 ) + + - ( ( + MAX( 36 ) ) ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( ALL 34 ) + + - ( ( + MAX ( 36 ) ) ) AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT + - col0 + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-8
13
5

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

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

query I rowsort
SELECT ALL 31 + + col0 AS col1 FROM tab2 WHERE NOT - ( 72 ) + + + 30 NOT BETWEEN + ( ( - col2 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL 89 * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL 89 * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
270

query I rowsort
SELECT DISTINCT - ( + + ( + 82 ) ) + + 96 FROM tab0
----
14

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

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

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

query I rowsort
SELECT ALL - 10 + + - col0 FROM tab2
----
-56
-74
-85

query I rowsort
SELECT - - 43 + + col0 FROM tab2 AS cor0
----
107
118
89

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 70 )
----

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

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

query I rowsort
SELECT ALL 10 - + col0 + - col2 * + 72 AS col0 FROM tab0 cor0
----
-3389
-7215
-797

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-352
SELECT + - 74 + + 51 + + ( COUNT( + col2 ) ) + - MAX( DISTINCT 26 - + CAST( NULL AS DECIMAL ) * + col0 ) * + 64 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT + - 74 + + 51 + + ( COUNT ( + col2 ) ) + - MAX ( DISTINCT 26 - + CAST ( NULL AS REAL ) * + col0 ) * + 64 FROM tab0 cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-354
SELECT ALL - 2 + + CAST( - 51 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - col2 * - 75 )
----

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - 2 + + CAST ( - 51 AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - col2 * - 75 )
----

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

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

query I rowsort
SELECT - - 41 * + col1 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 19 BETWEEN NULL AND + col0 * 96 + + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - SUM( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + 18 ) = + - col1
----
-185

skipif mysql # not compatible
query I rowsort label-359
SELECT - SUM ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + 18 ) = + - col1
----
-185

query I rowsort
SELECT 50 * - col1 * + col0 FROM tab0
----
-4850
-60750
-91350

query I rowsort
SELECT + col2 * + col1 * col1 * - 60 FROM tab0
----
-18502020
-264600
-5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT - MIN( + - 17 ) * + CAST( + 29 AS SIGNED ) AS col2 FROM tab2
----
493

skipif mysql # not compatible
query I rowsort label-362
SELECT - MIN ( + - 17 ) * + CAST ( + 29 AS INTEGER ) AS col2 FROM tab2
----
493

query II rowsort
SELECT + col0, - col0 + - 68 FROM tab2
----
46
-114
64
-132
75
-143

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT - + 86 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 84 * - - 56 + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4755
4789
4795

query I rowsort
SELECT ALL - col0 - 54 AS col2 FROM tab2 WHERE - ( - 84 ) <= + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT 21 + CAST( 19 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + + 9 - col1 * + col0 / 53 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-369
SELECT 21 + CAST ( 19 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + + 9 - col1 * + col0 / 53 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT DISTINCT + - COUNT( * ) AS col2, 22 - + + 40 + + 36 col1 FROM tab0 AS cor0
----
-3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-370
SELECT DISTINCT + - COUNT ( * ) AS col2, 22 - + + 40 + + 36 col1 FROM tab0 AS cor0
----
-3
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 44, 54 - + 26 + + col0 * - 28 col0 FROM tab0 AS cor0
----
-44
-2408
-44
-2688
-44
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - 79 / - CAST( NULL AS SIGNED ) + + col0 - - col0 * 73 )
----

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - 79 / - CAST ( NULL AS INTEGER ) + + col0 - - col0 * 73 )
----

query I rowsort
SELECT + - 66 * 57 FROM tab2 AS cor0
----
-3762
-3762
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT col0 - - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - 39 AS col2 FROM tab0 AS cor0
----
1833
3861
390

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - + col2 > - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - 93 + ( - 80 ) AS col1 FROM tab1
----
-173
-173
-173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-384
SELECT * FROM tab2 WHERE - 44 + - CAST( NULL AS SIGNED ) > ( CAST( NULL AS SIGNED ) - + col0 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-384
SELECT * FROM tab2 WHERE - 44 + - CAST ( NULL AS INTEGER ) > ( CAST ( NULL AS INTEGER ) - + col0 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-385
SELECT * FROM tab0 WHERE ( col1 + - - CAST( - col1 AS SIGNED ) ) IN ( col2 + - - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab0 WHERE ( col1 + - - CAST ( - col1 AS INTEGER ) ) IN ( col2 + - - ( + col0 ) )
----

query II rowsort
SELECT 9, col2 AS col1 FROM tab0
----
9
10
9
47
9
99

query I rowsort
SELECT ALL 63 + - + 17 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT MAX( ALL col1 ) + + - COUNT( * ) + ( 69 ) - + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-388
SELECT MAX ( ALL col1 ) + + - COUNT ( * ) + ( 69 ) - + COUNT ( * ) FROM tab0 AS cor0
----
144

query II rowsort
SELECT DISTINCT + col0, col1 * - + col0 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 76 + - - col2 + - col0 DIV + col1 FROM tab0 AS cor0
----
123
78
82

skipif mysql # not compatible
query I rowsort label-390
SELECT 76 + - - col2 + - col0 / + col1 FROM tab0 AS cor0
----
123
78
82

query I rowsort
SELECT ALL + col0 + 12 FROM tab0 AS cor0
----
109
27
99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> - 76
----

query I rowsort
SELECT DISTINCT - ( + col0 ) - - col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT col0 - + + 82 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT col0 * + 63 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT - col1 * - + 88 - + col2 FROM tab2 AS cor0
----
4465
5838
6736

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT col1 DIV - col1 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT col1 / - col1 AS col1 FROM tab0
----
-1

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

query II rowsort
SELECT - 15 AS col0, 30 AS col0 FROM tab2
----
-15
30
-15
30
-15
30

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT MIN( ( ( col1 ) ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT MIN ( ( ( col1 ) ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT + ( + 56 ) AS col0 FROM tab0 AS cor0
----
56

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab0
----
10

query I rowsort
SELECT + 59 * - col1 AS col1 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col1 <= - col2
----
-51
-85
-91

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

skipif mysql # not compatible
query II rowsort label-408
SELECT + col0 AS col0, CAST ( + 39 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
39
85
39
91
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT + COUNT( * ) + 12 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-411
SELECT + COUNT ( * ) + 12 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0
----
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT DISTINCT + 97 + - 58 DIV col2 AS col1 FROM tab0
----
92
96
97

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + 97 + - 58 / col2 AS col1 FROM tab0
----
92
96
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT + 27 * + CAST( NULL AS SIGNED ) / + col0 + + 99 + - 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT + 27 * + CAST ( NULL AS INTEGER ) / + col0 + + 99 + - 56 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT - COUNT ( DISTINCT ( 18 ) ) / COUNT ( * ) + + 91 FROM tab2
----
91

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - 81 + + + 53, 6 + col2 )
----

query I rowsort
SELECT ALL col0 + + - ( col0 ) * + + 69 FROM tab1
----
-3468
-5780
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL + 18 * CAST( 85 AS SIGNED ) + col0 FROM tab1
----
1581
1615
1621

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + 18 * CAST ( 85 AS INTEGER ) + col0 FROM tab1
----
1581
1615
1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 col0, + col2 FROM tab1 WHERE + col0 - - 50 * - + col1 + + - col2 IS NOT NULL
----
-40
59
-40
68
-40
96

query I rowsort
SELECT DISTINCT 1 * col1 FROM tab2 cor0 WHERE NOT 76 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-424
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 26 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0
----
NULL

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

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

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

query II rowsort
SELECT ALL + + col2 * + 64 AS col2, col1 FROM tab2 AS cor0
----
1472
51
2560
77
3712
67

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT col0 - + 75 * col2 DIV 35 AS col1 FROM tab0
----
-115
-85
66

skipif mysql # not compatible
query I rowsort label-428
SELECT col0 - + 75 * col2 / 35 AS col1 FROM tab0
----
-115
-85
66

query I rowsort
SELECT + col2 * + col0 + + + col2 AS col1 FROM tab0
----
752
880
9702

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL COUNT( + 56 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL COUNT ( + 56 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 col2, 6 FROM tab1 AS cor0
----
-17
6
-17
6
-17
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT MAX( 79 ) * + 75 FROM tab1 AS cor0
----
5925

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT MAX ( 79 ) * + 75 FROM tab1 AS cor0
----
5925

query I rowsort
SELECT ALL - col0 * 18 FROM tab0 cor0
----
-1566
-1746
-270

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT - ( + col2 ) NOT IN ( + 25 * - + col1 + + col1 + + - 19 / + ( - col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-439
SELECT - 30 DIV COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-439
SELECT - 30 / COUNT ( * ) FROM tab2
----
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + - 53 * - col1 <= NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + + col2 * 7 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-444
SELECT ALL - - CAST( NULL AS SIGNED ) * - + 41 - - + COUNT( - col2 ) AS col1, - COUNT( * ) * 48 AS col2 FROM tab0 cor0
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL - - CAST ( NULL AS INTEGER ) * - + 41 - - + COUNT ( - col2 ) AS col1, - COUNT ( * ) * 48 AS col2 FROM tab0 cor0
----
NULL
-144

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

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

query I rowsort
SELECT ALL - col0 * + - 39 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-448
SELECT + COUNT ( DISTINCT 82 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT ALL - 67 * - col0 FROM tab0 AS cor0
----
1005
5829
6499

query II rowsort
SELECT - col0, col2 * + col0 AS col0 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT ALL - 13 + + col0 AS col2 FROM tab1 AS cor0
----
38
72
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 69 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 cor0 WHERE col2 * + - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 98 + 18 * + 90 FROM tab1
----
1522

query I rowsort
SELECT + 69 - + - col1 FROM tab1
----
116
74
83

query II rowsort
SELECT DISTINCT col1 + col1 AS col1, - 74 FROM tab0
----
162
-74
2
-74
42
-74

query II rowsort
SELECT DISTINCT 9 - + + col1 - col0 * + col0, + 22 AS col1 FROM tab2
----
-2158
22
-4164
22
-5683
22

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

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

query I rowsort
SELECT DISTINCT 55 + 92 FROM tab1
----
147

query I rowsort
SELECT + 40 * col2 + - ( + - col1 ) + col2 * col1 * + col1 FROM tab1 cor0
----
152979
22670
3840

query I rowsort
SELECT - col0 + + 0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT + - ( - + 71 ) + ( 29 ) - - 79 DIV - col2 AS col0 FROM tab0 cor0
----
100
93
99

skipif mysql # not compatible
query I rowsort label-462
SELECT + - ( - + 71 ) + ( 29 ) - - 79 / - col2 AS col0 FROM tab0 cor0
----
100
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + - MIN( + 11 ) * + MIN( + col2 ) - + 36 FROM tab0 AS cor0
----
954

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + - MIN ( + 11 ) * + MIN ( + col2 ) - + 36 FROM tab0 AS cor0
----
954

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + col2 - + - 7 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT ( - SUM( DISTINCT - col1 ) ) DIV 94 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT ( - SUM ( DISTINCT - col1 ) ) / 94 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT ALL + - 55 * COUNT( * ), - 59 AS col1 FROM tab0 AS cor0
----
-165
-59

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL + - 55 * COUNT ( * ), - 59 AS col1 FROM tab0 AS cor0
----
-165
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT - SUM( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - - 89 * - COUNT( * ) * + 19 * + + COUNT( * ) FROM tab1 cor0
----
-15219

skipif mysql # not compatible
query I rowsort label-472
SELECT - - 89 * - COUNT ( * ) * + 19 * + + COUNT ( * ) FROM tab1 cor0
----
-15219

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL + COUNT( * ) col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-474
SELECT ALL + COUNT ( * ) col2 FROM tab1, tab1 cor0
----
9

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

query I rowsort
SELECT ALL - 70 * 68 FROM tab0
----
-4760
-4760
-4760

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL - + 52 DIV 72 DIV - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - + 52 / 72 / - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 95, col1 + + col2 AS col2 FROM tab0 AS cor0
----
-95
100
-95
128
-95
31

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + SUM( ALL + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + SUM ( ALL + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT COUNT( * ) * - 30 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-480
SELECT COUNT ( * ) * - 30 FROM tab0
----
-90

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

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

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

query I rowsort
SELECT col0 + - + 69 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-23
-5
6

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 88 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT MIN( ALL ( - ( 21 ) ) ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT MIN ( ALL ( - ( 21 ) ) ) FROM tab2
----
-21

query II rowsort
SELECT + 48 AS col2, 19 AS col1 FROM tab0
----
48
19
48
19
48
19

query I rowsort
SELECT ALL - ( + 33 ) - + col0 FROM tab0
----
-120
-130
-48

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

query II rowsort
SELECT 77 AS col1, + 17 AS col2 FROM tab1
----
77
17
77
17
77
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT MAX( ( - + 7 ) ) - + 69 * 7 FROM tab2
----
-490

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT MAX ( ( - + 7 ) ) - + 69 * 7 FROM tab2
----
-490

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

query I rowsort
SELECT DISTINCT 55 - - + col0 AS col1 FROM tab1 AS cor0
----
106
140
146

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col2, + 68 + + 42 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-498
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-499
SELECT + col0 / - col2, - col2 col1 FROM tab2
----
-1
-40
-1
-58
-2
-23

query I rowsort
SELECT 44 + 40 FROM ( tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 91, col2, + col1, + - 68, - 34 * - col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT ALL + - col0 - + - 24 FROM tab1 AS cor0 WHERE + 38 * + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + - col0 - + - 24 FROM tab1 AS cor0 WHERE + 38 * + CAST ( NULL AS INTEGER ) > NULL
----

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

query I rowsort
SELECT DISTINCT 87 * col0 + col0 AS col0 FROM tab1 cor0
----
4488
7480
8008

query II rowsort
SELECT - - 32 * + + col2, - col0 AS col0 FROM tab2 AS cor0
----
1280
-64
1856
-75
736
-46

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

query I rowsort
SELECT + col2 * 11 * col0 FROM tab2
----
11638
28160
47850

query II rowsort
SELECT ALL 70 + + 72 AS col2, + col0 * + col0 AS col0 FROM tab1
----
142
2601
142
7225
142
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT ALL col1 DIV - 18 AS col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL col1 / - 18 AS col2 FROM tab0
----
-1
-4
0

query I rowsort
SELECT DISTINCT 10 * + + 68 FROM tab2
----
680

query II rowsort
SELECT ALL - col1 * + col1 AS col2, + 53 AS col0 FROM tab2
----
-2601
53
-4489
53
-5929
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 33, - 73 col2 FROM tab1
----
1947
-73
2244
-73
3168
-73

query I rowsort
SELECT ALL - 42 + - col1 + - col1 + + - col0 FROM tab0
----
-141
-171
-219

query I rowsort
SELECT DISTINCT 37 * + 11 FROM tab1
----
407

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT - ( - 26 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT - ( - 26 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - 89 ) NOT BETWEEN NULL AND - 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT ALL + + CAST( + - ( + 48 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-48
-48
-48

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

query I rowsort
SELECT + - 76 * 15 + - 14 FROM tab0 AS cor0
----
-1154
-1154
-1154

query I rowsort
SELECT - + 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL col2 - - col1 - + - col2 FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ( MAX( ALL - 95 ) ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-525
SELECT ( MAX ( ALL - 95 ) ) FROM tab0
----
-95

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL - col2 DIV 81 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - col2 / 81 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT MIN( DISTINCT - ( 1 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT MIN ( DISTINCT - ( 1 ) ) AS col0 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - - col2 AS col1, 4 + col2 * + + col2 - - 98 AS col1 FROM tab2 AS cor0
----
23
631
40
1702
58
3466

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT - ( + + MIN( DISTINCT + 50 ) ) FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT - ( + + MIN ( DISTINCT + 50 ) ) FROM tab2 cor0
----
-50

query I rowsort
SELECT col1 * + col1 - + col1 AS col0 FROM tab2 AS cor0
----
2550
4422
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( 23 ) col0 FROM tab0
----
122
33
70

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT - col1 + - + 77 DIV ( 82 ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - col1 + - + 77 / ( 82 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - 98 * + col2 + + col2 FROM tab0
----
-4559
-9603
-970

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL + - 41 * ( col1 ) DIV - 85 FROM tab2 AS cor0
----
24
32
37

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + - 41 * ( col1 ) / - 85 FROM tab2 AS cor0
----
24
32
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT - + MAX( + 32 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - + MAX ( + 32 ) FROM tab2 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT - ( - - CAST( + col0 AS SIGNED ) ) * + 11 FROM tab2
----
-506
-704
-825

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - ( - - CAST ( + col0 AS INTEGER ) ) * + 11 FROM tab2
----
-506
-704
-825

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT 80 * + COUNT( * ) * + ( 92 ) FROM tab0 AS cor0
----
22080

skipif mysql # not compatible
query I rowsort label-545
SELECT 80 * + COUNT ( * ) * + ( 92 ) FROM tab0 AS cor0
----
22080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT - CAST( NULL AS SIGNED ) + - + 60 + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-546
SELECT - CAST ( NULL AS INTEGER ) + - + 60 + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col1 = 12
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col1 = 12
----
0

query II rowsort
SELECT + 87 AS col1, - 91 AS col2 FROM tab0 cor0
----
87
-91
87
-91
87
-91

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-551
SELECT ALL - 20 * + ( + + COUNT( + col2 ) ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 20 * + ( + + COUNT ( + col2 ) ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 44 + - 94 AND NULL
----

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

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

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

query I rowsort
SELECT ALL col1 * - - 1 FROM tab1
----
14
47
5

query I rowsort
SELECT 49 + - col0 FROM tab2
----
-15
-26
3

query I rowsort
SELECT + col1 * 59 * + + 45 * - col1 * - col1 * + col0 * + 26 * 30 / col1 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE + 80 * 72 NOT BETWEEN - 52 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 - - - 10 AS col2 FROM tab1
----
-5
37
4

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT - - 97 DIV + ( ( + 72 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - - 97 / + ( ( + 72 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

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

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

query I rowsort
SELECT + col2 + + + col1 * + col1 FROM tab1
----
2277
292
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-568
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col0, - 98 + - col1 FROM tab0 cor0
----
10
-119
47
-179
99
-99

skipif mysql # not compatible
query II rowsort label-568
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col0, - 98 + - col1 FROM tab0 cor0
----
10
-119
47
-179
99
-99

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 33 < - col1 OR NULL IS NULL
----
51
67
77

query I rowsort
SELECT col0 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL - - CAST( NULL AS SIGNED ) * 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - - CAST ( NULL AS INTEGER ) * 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - COUNT( * ) * + 29 AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - COUNT ( * ) * + 29 AS col0 FROM tab2
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + col2 * + 11
----

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

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + col1 + + 6 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - 93 + - 57 + + ( 84 ) AS col2 FROM tab2
----
51
-66
67
-66
77
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - SUM( ALL + + 11 ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-579
SELECT - SUM ( ALL + + 11 ) AS col1 FROM tab1
----
-33

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT + ( - col2 ) * - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-583
SELECT + ( - col2 ) * - col1 / - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 55 IN ( + col1, - col1, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 44 AS col0 FROM tab1
----
44
44
44

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 91 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-591
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, + MAX( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL
----
NULL
NULL

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 22 + + ( + 94 ) >= - + ( - col1 ) + - + col2
----

query I rowsort
SELECT ALL - col0 + + - col0 * - 40 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT COUNT( DISTINCT + ( 85 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( DISTINCT + ( 85 ) ) FROM tab1 AS cor0
----
1

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= + col2 + + 62
----
10
47
99

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

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

skipif mysql # not compatible
query I rowsort label-599
SELECT - SUM ( + col2 ) FROM tab1
----
-223

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

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL COUNT ( * ) + + 22 FROM tab0
----
25

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <= - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT - col1 + + CAST( + + 60 AS SIGNED ) FROM tab2 AS cor0
----
-17
-7
9

skipif mysql # not compatible
query I rowsort label-604
SELECT - col1 + + CAST ( + + 60 AS INTEGER ) FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT + col1 + + 35 FROM tab1 AS cor0
----
40
49
82

query I rowsort
SELECT + + 41 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 36 + + col0 col0, col1 AS col1 FROM tab1
----
121
5
127
47
87
14

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + - COUNT( DISTINCT + 7 ) - - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-608
SELECT + - COUNT ( DISTINCT + 7 ) - - COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT ALL - 23 * - - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - 23 * - - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 0 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

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

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

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

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

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

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

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

query II rowsort
SELECT - col0 AS col0, col2 + + col2 FROM tab0 cor0
----
-15
94
-87
20
-97
198

query I rowsort
SELECT DISTINCT 42 * + col0 * - + col0 FROM tab0 AS cor0
----
-317898
-395178
-9450

query I rowsort
SELECT ALL 35 * + + col1 FROM tab0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT 61 DIV + + 52 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-620
SELECT 61 / + + 52 col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL OR NULL <> + col1 / + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 12 * - - 21 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * + + col1 FROM tab0 AS cor0
----
1
441
6561

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

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

query I rowsort
SELECT ALL 54 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

query I rowsort
SELECT ALL + + col0 + 97 FROM tab1 AS cor0
----
148
182
188

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

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

query I rowsort
SELECT ALL - - 18 + + + col2 AS col2 FROM tab2 cor0
----
41
58
76

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

query II rowsort
SELECT 1 + + - col0 * + + col2 - 81 + + 30, + 22 + + col2 + + col0 AS col2 FROM tab0
----
-755
84
-920
119
-9653
218

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL 50 * - + SUM( 48 ) + 82, - 50 AS col1 FROM tab1
----
-7118
-50

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL 50 * - + SUM ( 48 ) + 82, - 50 AS col1 FROM tab1
----
-7118
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-639
SELECT DISTINCT + AVG ( col0 ) + ( + CAST( NULL AS SIGNED ) ) * + AVG ( ALL + - CAST( + 41 AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + AVG ( col0 ) + ( + CAST ( NULL AS INTEGER ) ) * + AVG ( ALL + - CAST ( + 41 AS REAL ) ) AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 * - col2 - - 98 FROM tab1 AS cor0
----
-1246
-197
-3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + 5 * - 27 col2 FROM tab2
----
-2
-31
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL + COUNT( * ) * + COUNT( * ) - - 8 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - - 8 FROM tab2
----
17

query I rowsort
SELECT DISTINCT - + ( + + 82 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-647
SELECT ALL + col1 / - col2 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + col1 / - col2 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-649
SELECT + col2 col1, + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - col2 * - 20 FROM tab0 AS cor0
----
1980
200
940

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

query I rowsort
SELECT DISTINCT - 82 * - ( + + col0 ) FROM tab2 AS cor0
----
3772
5248
6150

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

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

query I rowsort
SELECT - 6 * ( + - col2 ) - - col0 FROM tab2 cor0
----
184
304
423

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT + col1 DIV + col1 col0 FROM tab1
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-657
SELECT DISTINCT - 63, col1 DIV 25 AS col2 FROM tab0
----
-63
0
-63
3

skipif mysql # not compatible
query II rowsort label-657
SELECT DISTINCT - 63, col1 / 25 AS col2 FROM tab0
----
-63
0
-63
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT - 32 DIV 91 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-659
SELECT - 32 / 91 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( 7 ) * - - col1 + - col1 / + 11 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - COUNT( * ) * - - MIN( ALL + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-662
SELECT - COUNT ( * ) * - - MIN ( ALL + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-663
SELECT DISTINCT 83 AS col1, COUNT( * ) + 95 + - COUNT( * ) FROM tab2
----
83
95

skipif mysql # not compatible
query II rowsort label-663
SELECT DISTINCT 83 AS col1, COUNT ( * ) + 95 + - COUNT ( * ) FROM tab2
----
83
95

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT DISTINCT + MAX( + col1 ) * + 14 * - 13 + + 55 + 25 AS col2 FROM tab1
----
-8474

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT + MAX ( + col1 ) * + 14 * - 13 + + 55 + 25 AS col2 FROM tab1
----
-8474

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + COUNT( * ) * + 6 AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + COUNT ( * ) * + 6 AS col2 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-666
SELECT ALL + col2, col1 * + CAST( NULL AS SIGNED ) + 30 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT ALL + col2, col1 * + CAST ( NULL AS INTEGER ) + 30 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - ( - SUM( + + col2 ) ) * + 59 FROM tab2 AS cor0
----
7139

skipif mysql # not compatible
query I rowsort label-667
SELECT - ( - SUM ( + + col2 ) ) * + 59 FROM tab2 AS cor0
----
7139

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT col0 DIV 92 * - 8 + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-669
SELECT col0 / 92 * - 8 + col2 AS col2 FROM tab1
----
59
68
96

query II rowsort
SELECT + col1 + - col2, col1 + + col1 AS col2 FROM tab0
----
-98
2
11
42
34
162

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 25
----

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

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

query I rowsort
SELECT - - col2 * + + 87 AS col0 FROM tab1 AS cor0
----
5133
5916
8352

query II rowsort
SELECT - 98 * + col1, - col1 AS col1 FROM tab0 AS cor0
----
-2058
-21
-7938
-81
-98
-1

query I rowsort
SELECT ALL - 30 * - 68 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 54 * + - 85 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL - COUNT( * ) * + 15 + 28 - - - 56 AS col0 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - COUNT ( * ) * + 15 + 28 - - - 56 AS col0 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL - + MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - + MIN ( - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-680
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE + CAST( - 83 AS SIGNED ) * - + ( col2 ) + + - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE + CAST ( - 83 AS INTEGER ) * - + ( col2 ) + + - col2 BETWEEN NULL AND NULL
----
0

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

query I rowsort
SELECT DISTINCT 25 + + col0 * - - col1 FROM tab1
----
4302
450
739

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT DISTINCT 52 DIV col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT 52 / col2 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT - col1 * - - 45 * + col1 + + + ( - + col0 ) - col2 * col2 * + col1 + + - col2 FROM tab0
----
-10042
-22042
-474236

query I rowsort
SELECT DISTINCT 69 * + - col2 - + col0 + - col1 AS col0 FROM tab0
----
-3339
-6929
-798

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

skipif mysql # not compatible
query I rowsort label-686
SELECT + - 28 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-25

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 34 FROM tab0 WHERE NOT + 32 <= col1
----
-34

query I rowsort
SELECT - ( + 35 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

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

query II rowsort
SELECT + col1 / + col0 * + 66 + 81 * - col2 + + col2 AS col1, col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT MAX( ALL 57 ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT MAX ( ALL 57 ) AS col2 FROM tab1 AS cor0
----
57

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 85 * col2 AS col0 FROM tab1 AS cor0
----
-114240
-25075
-271660

query II rowsort
SELECT + 66 AS col0, - col0 FROM tab2 WHERE NOT col2 * - - col1 * - + 94 = NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) FROM tab1
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL <> ( 70 )
----

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

skipif mysql # not compatible
query I rowsort label-700
SELECT + ( - + SUM ( col1 ) ) FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT - 15 DIV + - 54 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-701
SELECT - 15 / + - 54 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 9 IS NOT NULL
----

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

query I rowsort
SELECT ALL ( + + col0 ) + + 44 FROM tab0
----
131
141
59

query I rowsort
SELECT + col1 * - - ( + col1 ) FROM tab1
----
196
2209
25

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

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

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

query I rowsort
SELECT - 74 + + - 6 * + col2 FROM tab0 cor0
----
-134
-356
-668

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

query I rowsort
SELECT - + col2 + + - 43 + + 71 AS col2 FROM tab0 cor0
----
-19
-71
18

query II rowsort
SELECT DISTINCT + + 90, - col0 - col2 AS col2 FROM tab0 AS cor0
----
90
-196
90
-62
90
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 <> + col1
----
3

skipif mysql # not compatible
query I rowsort label-713
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 <> + col1
----
3

query I rowsort
SELECT - col2 + - col0 * + + 6 * - + 11 * 59 AS col0 FROM tab0 AS cor0
----
338768
377619
58363

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-715
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1, tab1 AS cor0
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 69 IS NULL
----

query I rowsort
SELECT 75 + + - 54 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL + col1 + + 14 * - col2 AS col0 FROM tab2 WHERE ( + 83 + + 93 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 81 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( - + ( - 38 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( - + ( - 38 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT - ( + col1 ) * + ( - 89 ) - - CAST( - col0 AS SIGNED ) col1 FROM tab0
----
-8
1782
7194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT - ( + col1 ) * + ( - 89 ) - - CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
-8
1782
7194

query I rowsort
SELECT - col2 - + - col1 FROM tab0 WHERE NULL >= + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT COUNT( DISTINCT - col0 ), 77 AS col2 FROM tab0
----
3
77

skipif mysql # not compatible
query II rowsort label-724
SELECT COUNT ( DISTINCT - col0 ), 77 AS col2 FROM tab0
----
3
77

query I rowsort
SELECT DISTINCT + ( - + 66 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT col1 - + - 55 + - col1 + + + col1 * ( - - 66 ) * 67 DIV + col1 AS col2 FROM tab1 AS cor0
----
4477
4477
4477

skipif mysql # not compatible
query I rowsort label-726
SELECT col1 - + - 55 + - col1 + + + col1 * ( - - 66 ) * 67 / + col1 AS col2 FROM tab1 AS cor0
----
4477
4477
4477

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - ( + SUM( DISTINCT col0 ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - ( + SUM ( DISTINCT col0 ) ) FROM tab1 cor0
----
-227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL - COUNT( * ) * COUNT( * ) - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - COUNT ( * ) * COUNT ( * ) - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-56

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 * - 38 * + 12 + + col0 * ( - - 29 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 * + col2 / col1 < NULL
----

query I rowsort
SELECT ( col1 ) * + 5 + col2 FROM tab1
----
166
303
84

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

query I rowsort
SELECT col0 * + + col2 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ( - COUNT( * ) ) * + + 68 AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-736
SELECT ( - COUNT ( * ) ) * + + 68 AS col0 FROM tab0
----
-204

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

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

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab2
----
3

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

query I rowsort
SELECT + 91 + 75 FROM tab0
----
166
166
166

query I rowsort
SELECT 70 * col0 * + + col2 * col1 + col2 AS col0 FROM tab1
----
1755309
20358588
4798176

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * - 13 + + + col0 + + col2 + col1 = NULL
----

query I rowsort
SELECT ALL 96 * - 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 59dbac93aa0e4c69654d4ae9125c34fa

query I rowsort
SELECT + 77 * + + col2 + - + 79 AS col2 FROM tab0 AS cor0
----
3540
691
7544

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-748
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * + 68 * + col1 * + + CAST( - - col2 AS SIGNED ) <> - + col2 + - CAST( + + col1 AS DECIMAL )
----
-3

skipif mysql # not compatible
query I rowsort label-748
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * + 68 * + col1 * + + CAST ( - - col2 AS INTEGER ) <> - + col2 + - CAST ( + + col1 AS REAL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 92 * + 5 * COUNT( * ) FROM tab1 AS cor0
----
1380

skipif mysql # not compatible
query I rowsort label-749
SELECT 92 * + 5 * COUNT ( * ) FROM tab1 AS cor0
----
1380

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-752
SELECT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 81 + - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 81 + - - col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT ALL + col2 - + 38 FROM tab0
----
-28
61
9

query I rowsort
SELECT ALL + col1 - - 49 AS col1 FROM tab1
----
54
63
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + 96 * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-758
SELECT + 96 * - COUNT ( * ) FROM tab1
----
-288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL - 95 * + 44 + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-4171

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 95 * + 44 + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-4171

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-762
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + 55 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-762
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + 55 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT + SUM( ALL + 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-763
SELECT + SUM ( ALL + 86 ) FROM tab2 AS cor0
----
258

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

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

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

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

query I rowsort
SELECT col0 + - 33 * col0 AS col1 FROM tab0
----
-2784
-3104
-480

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL + MIN( DISTINCT + 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + MIN ( DISTINCT + 43 ) FROM tab2 AS cor0
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) * 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) * 56 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL 43 * + SUM( 58 ) FROM tab0
----
7482

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 43 * + SUM ( 58 ) FROM tab0
----
7482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT + CAST( + 81 AS SIGNED ) + col2 FROM tab1
----
140
149
177

skipif mysql # not compatible
query I rowsort label-774
SELECT + CAST ( + 81 AS INTEGER ) + col2 FROM tab1
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT MAX( 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT MAX ( 35 ) FROM tab2
----
35

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT 43 * - COUNT( * ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-781
SELECT 43 * - COUNT ( * ) FROM tab2
----
-129

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE NOT + col1 - col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + 36 - - MAX( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
111

skipif mysql # not compatible
query I rowsort label-783
SELECT + 36 - - MAX ( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT 49 * COUNT( * ) AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-784
SELECT 49 * COUNT ( * ) AS col0 FROM tab1
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 84 col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 + 43 )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 FROM tab2
----
1150
3040
3828

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + 33 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT MIN( 73 ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-789
SELECT MIN ( 73 ) AS col2 FROM tab1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) * 64 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) * 64 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT + 31 * + COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + 31 * + COUNT ( * ) AS col2 FROM tab2
----
93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT ( CAST( - col1 AS SIGNED ) ) col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-793
SELECT ( CAST ( - col1 AS INTEGER ) ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col2 / 4 - 62 FROM tab0 WHERE NOT ( + 0 ) < NULL
----

query I rowsort
SELECT ALL 89 * + 30 FROM tab0
----
2670
2670
2670

query I rowsort
SELECT DISTINCT - col1 + col1 * 78 AS col2 FROM tab0
----
1617
6237
77

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

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

query I rowsort
SELECT DISTINCT - col1 * 66 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT ALL - ( + 31 ) * col0 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT DISTINCT + col2 * ( - 50 ) AS col2 FROM tab1 AS cor0
----
-2950
-3400
-4800

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 26 IN ( - col1 )
----
51
67
77

query I rowsort
SELECT ( col0 ) * + 10 FROM tab1 WHERE NOT + col0 IS NULL
----
510
850
910

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT + col1 * CAST( - ( - col0 ) * 56 AS SIGNED ) AS col2 FROM tab1
----
23800
239512
39984

skipif mysql # not compatible
query I rowsort label-805
SELECT + col1 * CAST ( - ( - col0 ) * 56 AS INTEGER ) AS col2 FROM tab1
----
23800
239512
39984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / - col0 col2 FROM tab0 WHERE NOT NULL <> + col0 * - 1
----

query I rowsort
SELECT ALL 85 FROM tab2 WHERE NOT col0 < col1 * col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT CAST( ( 88 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-809
SELECT CAST ( ( 88 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT ALL - 88 DIV col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - 88 / col1 FROM tab1 AS cor0
----
-1
-17
-6

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

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + SUM( ALL col0 ) FROM tab1 AS cor0 WHERE ( col0 * + col0 ) IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE ( col0 * + col0 ) IS NOT NULL
----
227

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 46 + 15 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL 98 DIV 89 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL 98 / 89 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 48 * col0 FROM tab0 AS cor0 WHERE NOT 75 IS NULL
----
4176
4656
720

query I rowsort
SELECT - ( 36 ) FROM tab2 AS cor0
----
-36
-36
-36

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

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

query I rowsort
SELECT ALL col0 + + + 4 FROM tab2
----
50
68
79

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

query I rowsort
SELECT - col1 * + + ( 29 ) * + col0 FROM tab2
----
-142912
-145725
-68034

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

query I rowsort
SELECT + 78 * - 2 * + col2 FROM tab2
----
-3588
-6240
-9048

query I rowsort
SELECT - 97 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-4462
-6208
-7275

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

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

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

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

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

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

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT - - col0 + - 64 FROM tab0 AS cor0
----
-49
23
33

query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-836
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 83 * 40 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - CAST ( NULL AS REAL ) * + + 83 * 40 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + COUNT( DISTINCT + col1 ) + + 50 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + COUNT ( DISTINCT + col1 ) + + 50 FROM tab2 AS cor0
----
53

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - - col0 + 95 + - + col0 FROM tab1
----
146
180
186

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

query I rowsort
SELECT + col0 + - - col1 + - - col1 AS col1 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL - 26 + 95 AS col0 FROM tab0
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-846
SELECT + col0 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + col0 <> 73 * 71
----

skipif mysql # not compatible
query I rowsort label-846
SELECT + col0 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + col0 <> 73 * 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 35 DIV 33 - - col0 * + col2 FROM tab1 WHERE NOT - + col1 = - ( col0 )
----
4897
5016
6189

skipif mysql # not compatible
query I rowsort label-847
SELECT 35 / 33 - - col0 * + col2 FROM tab1 WHERE NOT - + col1 = - ( col0 )
----
4897
5016
6189

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

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

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL 6 * + CAST ( 49 * ( - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NOT col2 BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) )
----

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

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

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

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

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT - col2 BETWEEN - col1 AND - - 22
----
-59
-68
-96

query I rowsort
SELECT + ( + 7 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT col1 AS col2, 13 FROM tab0
----
1
13
21
13
81
13

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 - + 71 * + - 81 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - ( + 70 ) / + ( - col1 ) AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + 2 + 37 FROM tab1 AS cor0
----
39

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col2 ) = ( NULL )
----

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

query I rowsort
SELECT ALL - col2 + 18 AS col2 FROM tab0
----
-29
-81
8

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col1
----

query I rowsort
SELECT ALL ( ( + 56 ) ) FROM tab0 WHERE NOT ( + col1 * col0 NOT BETWEEN ( + 64 ) AND NULL )
----

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

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

query I rowsort
SELECT - 43 * + 63 FROM tab1
----
-2709
-2709
-2709

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

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

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

query I rowsort
SELECT DISTINCT - 98 + + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-157
-166
-194

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

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

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

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + - MIN ( DISTINCT + + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT - - 13 >= NULL )
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + 14 - - + col0 AS col1 FROM tab2 AS cor0
----
-22336
-47021
-7360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL + CAST( NULL AS SIGNED ) + col1 + ( col1 ) col1 FROM tab1 AS cor0 WHERE NOT col1 / - col0 + - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 + ( col1 ) col1 FROM tab1 AS cor0 WHERE NOT col1 / - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + - 94 FROM tab1 AS cor0
----
-5546
-6392
-9024

query I rowsort
SELECT + ( + - col1 ) * + col2 * - 16 FROM tab1 AS cor0
----
21504
4720
51136

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

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

skipif mysql # not compatible
query I rowsort label-883
SELECT CAST ( + - 76 AS INTEGER ) FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ALL + 23 AS col0, 8 * - - ( - - COUNT( * ) ) FROM tab2
----
23
24

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL + 23 AS col0, 8 * - - ( - - COUNT ( * ) ) FROM tab2
----
23
24

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT 46 DIV COUNT( * ) * - MAX( + 97 ) AS col0 FROM tab2
----
-1455

skipif mysql # not compatible
query I rowsort label-888
SELECT 46 / COUNT ( * ) * - MAX ( + 97 ) AS col0 FROM tab2
----
-1455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 WHERE - col1 + - col2 <= ( col2 * 45 / - col2 - - - ( - - CAST( + col1 AS SIGNED ) ) * col1 + 1 )
----
-2

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 WHERE - col1 + - col2 <= ( col2 * 45 / - col2 - - - ( - - CAST ( + col1 AS INTEGER ) ) * col1 + 1 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT DISTINCT - - 12 AS col0, - COUNT( * ) FROM tab2 cor0
----
12
-3

skipif mysql # not compatible
query II rowsort label-890
SELECT DISTINCT - - 12 AS col0, - COUNT ( * ) FROM tab2 cor0
----
12
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-891
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-891
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) col2 FROM tab1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-893
SELECT - ( + COUNT ( * ) ) FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 15 col1, + col1 AS col0, + + col2 / + 99 FROM tab1 AS cor0 WHERE NOT - col1 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT DISTINCT CAST( + + 33 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT CAST ( + + 33 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 70 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - + col2 + + 0 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col1 ) FROM tab1 WHERE - col1 + + + 13 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 77 + + + 7 * - + ( + col1 ) FROM tab0 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 - - + col2 col1 FROM tab0
----
175
199
41

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT 6 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT 6 / col1 FROM tab2
----
0

query I rowsort
SELECT ALL col1 + col1 - + 23 FROM tab2
----
111
131
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-902
SELECT * FROM tab2 WHERE + - col1 > + CAST( NULL AS SIGNED ) + col2 * col0 * + col2
----

skipif mysql # not compatible
query III rowsort label-902
SELECT * FROM tab2 WHERE + - col1 > + CAST ( NULL AS INTEGER ) + col2 * col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-903
SELECT * FROM tab2 WHERE NOT + col1 IN ( + ( - 40 ), 80 ) AND NOT CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-903
SELECT * FROM tab2 WHERE NOT + col1 IN ( + ( - 40 ), 80 ) AND NOT CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

query I rowsort
SELECT - 11 / - ( - + col0 ) FROM tab1 cor0 WHERE col0 IN ( - col0 )
----

query II rowsort
SELECT ALL col1, 9 + - - 48 AS col1 FROM tab2 AS cor0
----
51
57
67
57
77
57

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

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

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

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

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND 46
----

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

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

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

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

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

query I rowsort
SELECT + + col2 * + - 15 + 67 FROM tab0 AS cor0
----
-1418
-638
-83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT ALL - + MIN( DISTINCT 91 ) * + COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( 43 + - + col1 + CAST( 1 AS SIGNED ) + - + ( - 15 ) / + 41 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - + MIN ( DISTINCT 91 ) * + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( 43 + - + col1 + CAST ( 1 AS INTEGER ) + - + ( - 15 ) / + 41 ) <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - - 6 * + + COUNT( * ) + + 91 FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-916
SELECT - - 6 * + + COUNT ( * ) + + 91 FROM tab0 AS cor0
----
109

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

query I rowsort
SELECT + col2 * + + col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT + 39 * - col0 FROM tab0 cor0
----
-3393
-3783
-585

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab1
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL 12 * - COUNT( * ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 12 * - COUNT ( * ) AS col2 FROM tab1
----
-36

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 92 - - - col1 + - + col0 * - + col0 - + 31 + - + col1 * + + 68 col2 FROM tab1
----
14
1696
47
5099
5
6941

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

query I rowsort
SELECT DISTINCT ( - 3 ) AS col1 FROM tab0 AS cor0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT + + ( - CAST( - col0 AS SIGNED ) ) + - + col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-933
SELECT + + ( - CAST ( - col0 AS INTEGER ) ) + - + col1 FROM tab0 AS cor0
----
-66
66
96

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

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0 WHERE - 3 <> + 40
----
-21
-21
-21

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col1 BETWEEN + 44 * col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT - 41 + + SUM( + + col0 ) col0 FROM tab0 AS cor0
----
158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-937
SELECT - 41 + + SUM ( + + col0 ) col0 FROM tab0 AS cor0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL + 95 + + COUNT( * ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + 95 + + COUNT ( * ) AS col0 FROM tab1
----
98

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL COUNT( * ) - - - 47 + + ( 96 ), SUM( DISTINCT col2 ) AS col1 FROM tab0
----
52
156

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL COUNT ( * ) - - - 47 + + ( 96 ), SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
52
156

query I rowsort
SELECT + + 55 AS col1 FROM tab2 WHERE + col2 * - col1 + + col1 IS NOT NULL
----
55
55
55

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

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

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

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

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

query II rowsort
SELECT col0 - + - 60 AS col2, - col1 + - - 5 FROM tab2 AS cor0
----
106
-46
124
-72
135
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL + 99 * MIN( col2 ) FROM tab0
----
990

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 99 * MIN ( col2 ) FROM tab0
----
990

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

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

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

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

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

query I rowsort
SELECT ALL ( + col0 ) * + - 44 AS col2 FROM tab0 AS cor0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-954
SELECT ALL - 49 DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-954
SELECT ALL - 49 / COUNT ( * ) col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT 78 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + - 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + COUNT( DISTINCT 70 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + COUNT ( DISTINCT 70 ) FROM tab1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-958
SELECT * FROM tab0 WHERE CAST( + - col0 AS SIGNED ) IS NULL AND - CAST( NULL AS SIGNED ) NOT BETWEEN + - 72 AND CAST( col2 AS SIGNED ) * + - col1 * - col1 + + - col2
----

skipif mysql # not compatible
query III rowsort label-958
SELECT * FROM tab0 WHERE CAST ( + - col0 AS INTEGER ) IS NULL AND - CAST ( NULL AS INTEGER ) NOT BETWEEN + - 72 AND CAST ( col2 AS INTEGER ) * + - col1 * - col1 + + - col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-960
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-961
SELECT ALL * FROM tab2 WHERE NOT - + CAST( - col0 AS SIGNED ) - 47 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-961
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( - col0 AS INTEGER ) - 47 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT ALL + COUNT( ALL col0 ), + 79 AS col0 FROM tab1
----
3
79

skipif mysql # not compatible
query II rowsort label-963
SELECT ALL + COUNT ( ALL col0 ), + 79 AS col0 FROM tab1
----
3
79

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT + MAX( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT + MAX ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 WHERE NOT 31 * - - col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT - 5 - - 45 FROM tab2 AS cor0 WHERE 82 * 65 + - col0 IS NOT NULL
----
40
40
40

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL col0 * - 12 + + + 23, col0 FROM tab0
----
-1021
87
-1141
97
-157
15

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

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

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

query I rowsort
SELECT col1 - - 88 FROM tab0
----
109
169
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT COUNT( * ) * + - COUNT( * ) + + + 37 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-979
SELECT COUNT ( * ) * + - COUNT ( * ) + + + 37 FROM tab1
----
28

query I rowsort
SELECT DISTINCT col2 * ( - 40 ) + - col2 * col2 FROM tab2
----
-1449
-3200
-5684

query I rowsort
SELECT ALL + 47 * - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e814a0eb11727b0eb776536f2339cb6

query I rowsort
SELECT DISTINCT + 61 + - col0 AS col1 FROM tab1
----
-24
-30
10

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

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

skipif mysql # not compatible
query I rowsort label-988
SELECT - 19 / - 51 * + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 24 * + col1 AS col1 FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT 38 * COUNT( * ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT 38 * COUNT ( * ) FROM tab0 AS cor0
----
114

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE 90 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - + ( 80 ) * - col1 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT DISTINCT - 70 * 23 + - col2 + - + 99 AS col2 FROM tab0 AS cor0
----
-1719
-1756
-1808

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

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT + + 35 DIV - + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + + 35 / - + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab2
----
121

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

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

query I rowsort
SELECT ALL + 28 * - col2 FROM tab0
----
-1316
-2772
-280

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

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT - col1 / + + col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL > ( + col1 ) + + col0 + col0 * - - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT col2 * + col0 * + 79 - + - col0 DIV col2 AS col2 FROM tab2 AS cor0
----
202241
343651
83584

skipif mysql # not compatible
query I rowsort label-1003
SELECT col2 * + col0 * + 79 - + - col0 / col2 AS col2 FROM tab2 AS cor0
----
202241
343651
83584

query I rowsort
SELECT ALL ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT * FROM tab1 WHERE ( - col1 - - 74 + + ( - col2 ) - + - col2 + - ( col2 ) / - col2 * + + CAST( NULL AS SIGNED ) NOT BETWEEN - - 16 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT * FROM tab1 WHERE ( - col1 - - 74 + + ( - col2 ) - + - col2 + - ( col2 ) / - col2 * + + CAST ( NULL AS INTEGER ) NOT BETWEEN - - 16 AND NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1008
SELECT 46 + + COUNT ( DISTINCT + + col2 ) / - ( 28 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL + + SUM( DISTINCT 61 ) AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + + SUM ( DISTINCT 61 ) AS col1 FROM tab2 AS cor0
----
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT col1 + - col0 DIV - - 14 FROM tab1 cor0
----
-1
11
41

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT col1 + - col0 / - - 14 FROM tab1 cor0
----
-1
11
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + ( + 63 ) + - - COUNT( * ) - - 81 AS col2 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + ( + 63 ) + - - COUNT ( * ) - - 81 AS col2 FROM tab1
----
147

query I rowsort
SELECT 65 * - col2 AS col1 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - COUNT( * ) + + 66 * + 69 col0 FROM tab0
----
4551

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1015
SELECT DISTINCT - COUNT ( * ) + + 66 * + 69 col0 FROM tab0
----
4551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL col1 - - 55 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-43
66
89

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL col1 - - 55 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-43
66
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - SUM( + + 24 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1017
SELECT - SUM ( + + 24 ) AS col0 FROM tab2
----
-72

query I rowsort
SELECT 14 - + + col0 + - ( 83 ) * + col1 + col1 AS col2 FROM tab2
----
-4214
-5555
-6364

query I rowsort
SELECT col0 - - + col2 + + + ( + + col2 ) AS col2 FROM tab0
----
107
109
295

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT DISTINCT - 48 - + 20 / + col0 * CAST( NULL AS SIGNED ) * - col2 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1021
SELECT DISTINCT - 48 - + 20 / + col0 * CAST ( NULL AS INTEGER ) * - col2 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1023
SELECT COUNT( - 71 ) DIV COUNT( * ) col1, + 5 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 )
----
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1023
SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 )
----
1
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1026
SELECT ALL * FROM tab2 WHERE NOT + CAST( - 16 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1026
SELECT ALL * FROM tab2 WHERE NOT + CAST ( - 16 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1027
SELECT ALL CAST( NULL AS DECIMAL ), + ( + col0 ) - col1 col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1027
SELECT ALL CAST ( NULL AS REAL ), + ( + col0 ) - col1 col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT + + 41 * + MIN( + col1 ) FROM tab2 cor0
----
2091

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + + 41 * + MIN ( + col1 ) FROM tab2 cor0
----
2091

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col2 ) IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ( - MAX( DISTINCT + - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1036
SELECT ( - MAX ( DISTINCT + - col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT ( 75 ) * + col0 * + + col1 FROM tab2
----
175950
369600
376875

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1038
SELECT ALL + COUNT( * ) + - - CAST( NULL AS DECIMAL ) * - + AVG ( DISTINCT + col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL + COUNT ( * ) + - - CAST ( NULL AS REAL ) * - + AVG ( DISTINCT + col0 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL 14 * + SUM( - 74 ) FROM tab1
----
-3108

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 14 * + SUM ( - 74 ) FROM tab1
----
-3108

query I rowsort
SELECT DISTINCT - + 23 FROM tab0 cor0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL 32 * - + COUNT( * ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL 32 * - + COUNT ( * ) FROM tab2 AS cor0
----
-96

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

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT - - MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + COUNT( * ) * 35 - SUM( DISTINCT - 39 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1046
SELECT + COUNT ( * ) * 35 - SUM ( DISTINCT - 39 ) FROM tab2 AS cor0
----
144

query I rowsort
SELECT + - col2 - - + col1 * - - 25 * col0 AS col0 FROM tab0 AS cor0
----
2326
30328
45665

query I rowsort
SELECT + - col0 - - - 10 AS col1 FROM tab0 AS cor0
----
-107
-25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - 67 + - - COUNT( - - 4 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 67 + - - COUNT ( - - 4 ) FROM tab0
----
-64

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 - - + 86 FROM tab0
----
91
91
91

query I rowsort
SELECT + 74 + col0 - + - ( + col1 ) * col1 FROM tab0
----
172
602
6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE col1 < NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT ALL - - 38 AS col2, COUNT( DISTINCT + 4 ) AS col2 FROM tab1 AS cor0
----
38
1

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL - - 38 AS col2, COUNT ( DISTINCT + 4 ) AS col2 FROM tab1 AS cor0
----
38
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1056
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1056
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

query I rowsort
SELECT ALL - - AVG ( ALL col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 - - - 33 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT MIN( ALL 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1059
SELECT MIN ( ALL 71 ) FROM tab2 AS cor0
----
71

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

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

query I rowsort
SELECT ALL - 51 FROM tab0 cor0 WHERE NOT 11 IS NULL
----
-51
-51
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1064
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL + COUNT( * ) * + 78 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + COUNT ( * ) * + 78 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

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

query II rowsort
SELECT DISTINCT - 93 + + col0, col2 AS col0 FROM tab0 AS cor0
----
-6
10
-78
47
4
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1069
SELECT - SUM( - + col1 ), CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
103
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1069
SELECT - SUM ( - + col1 ), CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + MAX( DISTINCT col0 ) + + MIN( DISTINCT col2 ) + + 73 AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-1070
SELECT + MAX ( DISTINCT col0 ) + + MIN ( DISTINCT col2 ) + + 73 AS col2 FROM tab2
----
171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1071
SELECT + col0 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) >= + + ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-1071
SELECT + col0 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) >= + + ( - + col2 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 + + col2 AS col0 FROM tab1
----
3535
4645
9298

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

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 44 / + - COUNT ( * ) AS col2 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - ( + COUNT( * ) ) * + 33 col2 FROM tab0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL 91 * - - COUNT( * ) * + 93 * + 40 FROM tab1 AS cor0
----
1015560

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 91 * - - COUNT ( * ) * + 93 * + 40 FROM tab1 AS cor0
----
1015560

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - ( col0 ) + + + ( + col1 ) <= + 39
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT 11 + + + COUNT( * ) + - COUNT( * ) * 14 * 74 FROM tab1 AS cor0
----
-3094

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT 11 + + + COUNT ( * ) + - COUNT ( * ) * 14 * 74 FROM tab1 AS cor0
----
-3094

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL + 4 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + 4 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT 43 + col0 - col2 FROM tab2
----
60
66
67

query I rowsort
SELECT + 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 26 ) IS NOT NULL
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) / COUNT( * ) + - ( - + 5 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / COUNT ( * ) + - ( - + 5 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 34 * col0 + + + col1 * - - ( - - col2 ) - - 19 AS col2 FROM tab2
----
2756
5275
6455

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1085
SELECT * FROM tab2 WHERE + col2 NOT IN ( + - 59 + + ( 76 ), col1, + CAST( NULL AS SIGNED ), col1, - 19, col1 )
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab2 WHERE + col2 NOT IN ( + - 59 + + ( 76 ), col1, + CAST ( NULL AS INTEGER ), col1, - 19, col1 )
----

query I rowsort
SELECT ALL - + col2 * + 32 * + 86 * - - col2 - - - col1 + - 76 FROM tab0 AS cor0
----
-26972429
-275297
-6079325

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 66 >= NULL
----

query I rowsort
SELECT - 82 * 84 + + + col1 AS col1 FROM tab2 AS cor0
----
-6811
-6821
-6837

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + - 8, + col0 * 23, - + 88, - + 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT - col2 DIV + - 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT - col2 / + - 61 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT CAST( + COUNT( - - col0 ) AS SIGNED ) AS col0 FROM tab1
----
3

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

query II rowsort
SELECT ALL 67 * 4 + + 0 + col2 * + 98 AS col2, - col0 + col2 FROM tab0
----
1248
-77
4874
32
9970
2

query I rowsort
SELECT - 16 * + 37 FROM tab1
----
-592
-592
-592

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 / - 99 * ( - - ( - - col1 ) ) NOT BETWEEN - - 11 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT 23 FROM tab1 AS cor0 WHERE NOT NULL = col2 * + - col2 + - - col2
----

query II rowsort
SELECT DISTINCT - + col0 AS col1, ( - col1 ) * + 20 + + col1 AS col0 FROM tab0 AS cor0
----
-15
-1539
-87
-399
-97
-19

query II rowsort
SELECT - col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

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

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 16 * col0 AS col2 FROM tab2
----
1024
1200
736

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

query I rowsort
SELECT ALL + 44 FROM tab2 WHERE NOT - 68 * col0 + + - 15 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col1, + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-14
192
-47
136
-5
118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT + COUNT( * ) + - 33 FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + COUNT ( * ) + - 33 FROM tab2 cor0
----
-30

query I rowsort
SELECT + 23 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - - MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT 9 + - SUM( DISTINCT - 51 ) col1 FROM tab0 AS cor0
----
60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT + col1 DIV + col2 + + - col2 AS col1 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + col1 / + col2 + + - col2 AS col1 FROM tab0
----
-46
-8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1112
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

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

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

query I rowsort
SELECT DISTINCT + 22 + - col0 AS col2 FROM tab1
----
-29
-63
-69

query I rowsort
SELECT + 5 FROM tab2 AS cor0 WHERE NULL > - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL - - COUNT( DISTINCT 39 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - - COUNT ( DISTINCT 39 ) FROM tab1 AS cor0
----
1

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

query II rowsort
SELECT col0 + - - col0 AS col2, 51 FROM tab1 AS cor0
----
102
51
170
51
182
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - COUNT( * ) * + MIN( ALL + + 60 ) col0 FROM tab0 AS cor0
----
-180

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

query I rowsort
SELECT col2 + - 77 + - col1 + 72 AS col0 FROM tab1 AS cor0
----
16
49
77

query II rowsort
SELECT - 54 + - + col0 AS col1, + ( - 63 ) FROM tab0 AS cor0
----
-141
-63
-151
-63
-69
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 + + 70 * - col2 col1 FROM tab1
----
-4130
-4760
-6720

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + - 37 - ( + 89 ) col0 FROM tab1 AS cor0
----
-1976
-3234
-3456

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 16 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT DISTINCT CAST( ( - 96 ) AS SIGNED ) * 42 AS col2 FROM tab2 AS cor0
----
-4032

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT CAST ( ( - 96 ) AS INTEGER ) * 42 AS col2 FROM tab2 AS cor0
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----

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

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

query I rowsort
SELECT ALL 5 * 75 AS col1 FROM tab0 AS cor0
----
375
375
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT + + MAX( DISTINCT + 45 ) DIV - MAX( ALL + - 56 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT + + MAX ( DISTINCT + 45 ) / - MAX ( ALL + - 56 ) FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL
----

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - + ( + 34 ) - + col0 * - - ( - + 15 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT ALL + MIN( ALL + ( - col0 ) ) DIV + 5 AS col2, - SUM( - col1 ) FROM tab2
----
-15
195

skipif mysql # not compatible
query II rowsort label-1136
SELECT ALL + MIN ( ALL + ( - col0 ) ) / + 5 AS col2, - SUM ( - col1 ) FROM tab2
----
-15
195

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0 WHERE NOT 92 * - col2 BETWEEN NULL AND + - col1
----

query I rowsort
SELECT ( - col0 ) * - + col0 AS col1 FROM tab2
----
2116
4096
5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - SUM( ALL 13 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - SUM ( ALL 13 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT DISTINCT MIN( + col0 ) AS col2, 88 AS col0 FROM tab0 AS cor0
----
15
88

skipif mysql # not compatible
query II rowsort label-1141
SELECT DISTINCT MIN ( + col0 ) AS col2, 88 AS col0 FROM tab0 AS cor0
----
15
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - 45 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 45 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
405

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT + col2 DIV - - 47 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT + col2 / - - 47 FROM tab2
----
0
0
1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + 98 + + CAST( NULL AS SIGNED ) + - 45 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + 98 + + CAST ( NULL AS INTEGER ) + - 45 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT - col1 AS col1, 38 + + 54 FROM tab1 AS cor0
----
-14
92
-47
92
-5
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL - 68 + 91 DIV - col2 FROM tab0 AS cor0
----
-68
-69
-77

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 68 + 91 / - col2 FROM tab0 AS cor0
----
-68
-69
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT - 95 + - col1 - + + ( + col1 ) + ( + col1 ) DIV - col1 + + - col0 FROM tab1 AS cor0
----
-175
-191
-281

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 95 + - col1 - + + ( + col1 ) + ( + col1 ) / - col1 + + - col0 FROM tab1 AS cor0
----
-175
-191
-281

query I rowsort
SELECT DISTINCT + - 81 + col2 FROM tab2 AS cor0
----
-23
-41
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 19 FROM tab1 AS cor0 WHERE col1 * - 6 * - col2 * + - col1 + 83 IS NOT NULL
----
19
19
19

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( col1 ) + - 7 IN ( - + col0 / + - col2, col2 * - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col2 + + 65 - col1 FROM tab2
----
28
37
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT col0 + - 33 DIV + 95 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1159
SELECT col0 + - 33 / + 95 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL - MIN( 45 ) AS col0 FROM tab1 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - MIN ( 45 ) AS col0 FROM tab1 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - COUNT( * ) - + + SUM( - col2 ) FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-1162
SELECT - COUNT ( * ) - + + SUM ( - col2 ) FROM tab1 AS cor0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT ALL CAST( NULL AS SIGNED ) + 1 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL CAST ( NULL AS INTEGER ) + 1 + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT COUNT( * ) * - 29 + COUNT( * ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1164
SELECT COUNT ( * ) * - 29 + COUNT ( * ) FROM tab1
----
-84

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col2 + + + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + + col0 ), col1, + 92, + 80 + col0 )
----

query I rowsort
SELECT ALL + ( + 75 ) FROM tab0 cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT - + ( col1 ) DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - + ( col1 ) / col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT 97 DIV + 36 AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1171
SELECT 97 / + 36 AS col2 FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( col0 ) - - - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT 78 * - col1 AS col0 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT col1 * - 84 FROM tab1
----
-1176
-3948
-420

query II rowsort
SELECT ALL 16 AS col1, col0 FROM tab2
----
16
46
16
64
16
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + ( - SUM( DISTINCT + 46 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-1179
SELECT + ( - SUM ( DISTINCT + 46 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT - COUNT( + col2 ) * - 7 AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1180
SELECT - COUNT ( + col2 ) * - 7 AS col2 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT 6 * + 65 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
390
-3

skipif mysql # not compatible
query II rowsort label-1181
SELECT 6 * + 65 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
390
-3

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL + 39 + + COUNT( DISTINCT - col1 ) + + + 64 AS col0 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + 39 + + COUNT ( DISTINCT - col1 ) + + + 64 AS col0 FROM tab1
----
106

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

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

query I rowsort
SELECT DISTINCT col1 - - + col0 + + col2 * + 50 FROM tab1
----
3040
3538
4865

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1189
SELECT * FROM tab0 WHERE + 80 = - CAST( + 13 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1189
SELECT * FROM tab0 WHERE + 80 = - CAST ( + 13 AS INTEGER )
----

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

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

query I rowsort
SELECT + - 21 * - col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT - - 82 DIV 36 + - COUNT( ALL col2 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1192
SELECT - - 82 / 36 + - COUNT ( ALL col2 ) col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col0 * + + col1 * - + 50 FROM tab1
----
-21250
-213850
-35700

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 72 col2 FROM tab0 AS cor0 WHERE NOT - 28 * + 80 IS NULL
----
-25
-62
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT DISTINCT + 89 + + - ( MAX( ALL - col0 ) ) AS col0, + 71 col2 FROM tab2 AS cor0 WHERE NOT 74 <> NULL
----
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1201
SELECT DISTINCT + 89 + + - ( MAX ( ALL - col0 ) ) AS col0, + 71 col2 FROM tab2 AS cor0 WHERE NOT 74 <> NULL
----
NULL
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL col0 * + 83 FROM tab2
----
3818
5312
6225

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT 8 DIV 2 AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1208
SELECT 8 / 2 AS col1 FROM tab1
----
4
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1209
SELECT ALL - CAST( NULL AS DECIMAL ) * + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - CAST ( NULL AS REAL ) * + 54 FROM tab2
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT DISTINCT 92 DIV - ( + col0 ) FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT 92 / - ( + col0 ) FROM tab2
----
-1
-2

query I rowsort
SELECT 47 + + col1 AS col0 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - 34 DIV + COUNT( * ) + ( + + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1214
SELECT - 34 / + COUNT ( * ) + ( + + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab0 WHERE ( - 15 * - col1 ) IS NOT NULL
----
-1215
-1827
-97

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

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

query II rowsort
SELECT DISTINCT col0 + + + 57 * col2 * + ( + col1 ) AS col2, col0 FROM tab0
----
12057
87
217014
15
5740
97

query I rowsort
SELECT ALL col1 * + col2 + + + col1 AS col1 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - + - 23 * - 82 * + 7 FROM tab1
----
-13155
-13188
-13197

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - + - 23 * - 82 * + 7 FROM tab1
----
-13155
-13188
-13197

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - - ( + + 64 ) - - - MAX( DISTINCT - col1 ) AS col1, 31 AS col1 FROM tab2 AS cor0
----
115
31

skipif mysql # not compatible
query II rowsort label-1220
SELECT - - ( + + 64 ) - - - MAX ( DISTINCT - col1 ) AS col1, 31 AS col1 FROM tab2 AS cor0
----
115
31

query I rowsort
SELECT ALL - - col2 - + + col0 + col1 * - col2 FROM tab1 cor0
----
-1299
-321
-3219

query II rowsort
SELECT + col2, 13 * - - col0 * + 64 FROM tab1
----
59
70720
68
75712
96
42432

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1225
SELECT CAST( NULL AS SIGNED ), + AVG ( ALL - 7 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 73 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1225
SELECT CAST ( NULL AS INTEGER ), + AVG ( ALL - 7 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 73 IS NOT NULL
----
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - ( - col0 ) - + 91 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT - CAST( 80 AS SIGNED ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - CAST ( 80 AS INTEGER ) FROM tab1 AS cor0
----
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 15 ) * 1 * - 55 col2 FROM tab1
----
-825
-825
-825

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

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

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

query II rowsort
SELECT col2 AS col2, ( 79 ) * - col0 AS col1 FROM tab1
----
59
-6715
68
-7189
96
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - MAX( col1 ) * 27 AS col1 FROM tab1
----
-1269

skipif mysql # not compatible
query I rowsort label-1235
SELECT - MAX ( col1 ) * 27 AS col1 FROM tab1
----
-1269

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

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

query I rowsort
SELECT + col2 * + col2 * + 55 AS col2 FROM tab1
----
191455
254320
506880

query I rowsort
SELECT ALL + 86 * - + col2 * - + col1 FROM tab0
----
18060
327402
8514

query I rowsort
SELECT - col0 * - + 66 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT - ( - 75 ) * + + col2 AS col2 FROM tab1
----
4425
5100
7200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT COUNT( * ) * - 10 * - 81 AS col2 FROM tab2
----
2430

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT COUNT ( * ) * - 10 * - 81 AS col2 FROM tab2
----
2430

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + ( - 29 ) ) + - col0 col0, 83 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - + 86 + + - 41 FROM tab0 AS cor0
----
-127
-127
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) + + - MIN( - 6 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) + + - MIN ( - 6 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT DISTINCT col1 * + col0 + + col2 + - - col0 * ( + - ( col1 ) ) DIV + col0 + + + col2 + col0 * col0 AS col0 FROM tab0
----
1453
9395
9703

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT col1 * + col0 + + col2 + - - col0 * ( + - ( col1 ) ) / + col0 + + + col2 + col0 * col0 AS col0 FROM tab0
----
1453
9395
9703

query I rowsort
SELECT ALL + col2 * 70 + + 20 FROM tab2
----
1630
2820
4080

query I rowsort
SELECT DISTINCT col1 * + 80 + + col0 + + col1 AS col0 FROM tab2
----
4177
5502
6301

query I rowsort
SELECT ALL - 29 - ( + 58 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT ALL - col2 - - - col2 AS col1 FROM tab0 cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + 52 >= - 50
----

query I rowsort
SELECT ALL - 66 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT col1 * + + 70 * - col1 FROM tab1 AS cor0
----
-13720
-154630
-1750

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - col0 + + 12
----

query I rowsort
SELECT + col0 * + + ( col1 ) - col2 AS col1 FROM tab1 cor0
----
366
4209
618

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

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

query I rowsort
SELECT + + col0 - - 93 AS col1 FROM tab0 AS cor0
----
108
180
190

query I rowsort
SELECT - col1 - - - col1 AS col2 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT + col2 + 68 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL col0 + - 80 FROM tab0
----
-65
17
7

query I rowsort
SELECT ALL - 58 + - + col1 AS col2 FROM tab1
----
-105
-63
-72

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - - 42 + + col0 col2, 68 + - 74 AS col1 FROM tab2
----
1978
-6
2752
-6
3225
-6

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1272
SELECT CAST( NULL AS DECIMAL ) * col1 + - 56 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT CAST ( NULL AS REAL ) * col1 + - 56 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 WHERE - 80 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + 63 - - COUNT ( * ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT col2 DIV + col1 + + col1 FROM tab1 WHERE + 82 <= col0 + + 86
----
16
20
48

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT col2 / + col1 + + col1 FROM tab1 WHERE + 82 <= col0 + + 86
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - SUM( ALL + col2 ) + + 44 FROM tab1
----
-179

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - SUM ( ALL + col2 ) + + 44 FROM tab1
----
-179

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( ( - col0 ) - col2 ) > ( + 2 )
----

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

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

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

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

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

query I rowsort
SELECT ALL 41 AS col2 FROM tab0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL 73 / - col0 AS col0 FROM tab0 WHERE NOT 28 > ( - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT ALL col1 FROM tab2 WHERE NOT CAST( - col2 AS SIGNED ) = - col1 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL col1 FROM tab2 WHERE NOT CAST ( - col2 AS INTEGER ) = - col1 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL + CAST( 53 AS SIGNED ) FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + CAST ( 53 AS INTEGER ) FROM tab2
----
53
53
53

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

query I rowsort
SELECT DISTINCT + 78 * + 31 FROM tab1
----
2418

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

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

query I rowsort
SELECT ALL col0 * 99 AS col2 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE 5 < col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - col0 * - 6 AS col1 FROM tab0
----
522
582
90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT + SUM( - 69 ) + + SUM( 7 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + SUM ( - 69 ) + + SUM ( 7 ) FROM tab1
----
-186

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

query I rowsort
SELECT DISTINCT - 42 + + 48 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( col2 ) - col1 col1 FROM tab0 AS cor0 WHERE - col1 + ( - col0 ) * - 17 = col1
----

query I rowsort
SELECT ALL + col2 + 20 * - col2 FROM tab2 AS cor0
----
-1102
-437
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - SUM( ALL 93 ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1300
SELECT - SUM ( ALL 93 ) AS col2 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT 60 + - COUNT( * ) * + 27 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT 60 + - COUNT ( * ) * + 27 FROM tab1
----
-21

query I rowsort
SELECT 54 + + col1 FROM tab0
----
135
55
75

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL > + 4 + - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 + 37 * col1 col0 FROM tab0 cor0
----
1647
3702
9640

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 44 + - 46 * ( 95 * + 37 ) ) NOT BETWEEN + 45 AND ( - 77 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 - - 87 AS col2 FROM tab0 AS cor0
----
-138
-7482
-9322

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

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

query I rowsort
SELECT - + 44 + + 34 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

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

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

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

query I rowsort
SELECT ALL - col0 * - ( - col2 ) + 13 FROM tab0 AS cor0
----
-692
-857
-9590

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 < ( 15 )
----
87
21
10

query I rowsort
SELECT - 87 FROM tab2 WHERE NULL IS NULL
----
-87
-87
-87

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

query I rowsort
SELECT - ( - 36 ) FROM tab2
----
36
36
36

query I rowsort
SELECT DISTINCT - 92 + - ( + col2 ) * - 88 FROM tab2
----
1932
3428
5012

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT + ( - ( COUNT ( * ) ) ) + 8 FROM tab1
----
5

query I rowsort
SELECT ALL + 24 + 50 AS col2 FROM tab1
----
74
74
74

query I rowsort
SELECT DISTINCT col0 * - col2 * - col2 AS col0 FROM tab2
----
102400
24334
252300

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

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

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

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-1324
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - 73 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1324
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - 73 FROM tab0 AS cor0
----
-219

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

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

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

skipif mysql # not compatible
query I rowsort label-1326
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 60 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - COUNT( DISTINCT 9 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - COUNT ( DISTINCT 9 ) FROM tab2
----
-1

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 30 > NULL
----

query I rowsort
SELECT DISTINCT 8 * - col0 + 93 AS col2 FROM tab2 AS cor0
----
-275
-419
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT ALL + col0 DIV - ( 21 ) AS col1 FROM tab1 cor0
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + col0 / - ( 21 ) AS col1 FROM tab1 cor0
----
-2
-4
-4

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1334
SELECT - 2 col1 FROM tab2 cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
-2
-2
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1337
SELECT + MIN ( col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL col2 * - col2 + - col2 + 39 AS col1 FROM tab2 AS cor0
----
-1601
-3383
-513

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <= + - 68
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1345
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) IN ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1345
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IN ( + + col0 )
----

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL = - + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 10 col1 FROM tab2
----
-460
-640
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT + 52 DIV ( ( 11 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - col0 ) ) IS NOT NULL )
----
4

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + 52 / ( ( 11 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - col0 ) ) IS NOT NULL )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT - CAST( col1 AS SIGNED ) + + 1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1350
SELECT - CAST ( col1 AS INTEGER ) + + 1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT col2 * + col1 + + - ( + + col2 ) * - col2 + + 28 * col0 AS col1 FROM tab1 AS cor0
----
10368
11988
6156

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1353
SELECT + + CAST ( NULL AS REAL ) col0 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 + - + col0 AS col2 FROM tab1
----
-131
-165
-171

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + - col2 / + col1 / + col2
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( + col1 * + 0 ) AND 24
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT + 89 - COUNT( ALL - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1360
SELECT + 89 - COUNT ( ALL - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT - col1 / + col2 + + col1 * col1 AS col1 FROM tab0 AS cor0 WHERE + col1 - + col2 * + col2 * - col2 IN ( col2 * - 66 )
----

query I rowsort
SELECT - + 68 - + col0 AS col2 FROM tab1 AS cor0
----
-119
-153
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT 66 * + MAX( DISTINCT 48 ) FROM tab2 AS cor0
----
3168

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT 66 * + MAX ( DISTINCT 48 ) FROM tab2 AS cor0
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + COUNT( * ) + - - COUNT( * ) + + COUNT( * ) * + 82 - + ( - 66 ) FROM tab2 AS cor0
----
318

skipif mysql # not compatible
query I rowsort label-1364
SELECT + COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) * + 82 - + ( - 66 ) FROM tab2 AS cor0
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT 75 + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1365
SELECT 75 + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - col0 + - col1 - + + 30 FROM tab2 AS cor0
----
-127
-171
-172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1367
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) <= - col2
----

skipif mysql # not compatible
query III rowsort label-1367
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1368
SELECT col1, - CAST( NULL AS SIGNED ) * + 1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1368
SELECT col1, - CAST ( NULL AS INTEGER ) * + 1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT ALL + col2, + 51 + + - col2 * - col2 * 14 FROM tab1
----
59
48785
68
64787
96
129075

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT COUNT( * ) * 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT COUNT ( * ) * 27 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - COUNT( * ) * - 43 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - COUNT ( * ) * - 43 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( + ( + + col0 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + ( + + col0 ) ) IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1374
SELECT MIN ( col2 ) FROM tab2 AS cor0
----
23

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

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - col1 NOT BETWEEN ( 73 ) AND col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT + col0 * - 86 AS col2, col0 AS col1 FROM tab1 AS cor0
----
-4386
51
-7310
85
-7826
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL + ( + col2 ) DIV + + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + ( + col2 ) / + + col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - 26 + + - 68 NOT IN ( 97 + - 79, col2 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1385
SELECT - + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
-10

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

query II rowsort
SELECT DISTINCT - ( + 61 ) AS col1, - col2 FROM tab2 AS cor0
----
-61
-23
-61
-40
-61
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1390
SELECT 34 + COUNT( * ) DIV + 8 * + 21 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1390
SELECT 34 + COUNT ( * ) / + 8 * + 21 FROM tab1
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL - 30 + + - CAST( col1 AS SIGNED ) * 4 FROM tab2
----
-234
-298
-338

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - 30 + + - CAST ( col1 AS INTEGER ) * 4 FROM tab2
----
-234
-298
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) * + - col2 + - col0 col0 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT SUM( DISTINCT 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1394
SELECT SUM ( DISTINCT 8 ) FROM tab0
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT MAX( DISTINCT 3 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1396
SELECT MAX ( DISTINCT 3 ) col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 5 * + 70 + - 28, 12 AS col0 FROM tab2 AS cor0
----
322
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1398
SELECT DISTINCT 61, SUM( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
61
199

skipif mysql # not compatible
query II rowsort label-1398
SELECT DISTINCT 61, SUM ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
61
199

query I rowsort
SELECT + col1 + + 56 FROM tab2
----
107
123
133

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col1 - + col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-10
0
-47
0
-99
0

query I rowsort
SELECT - 5 + - col2 - - col1 * + + 21 AS col0 FROM tab0
----
-83
1649
426

query II rowsort
SELECT DISTINCT + col0 + + + 41, + col2 AS col0 FROM tab1
----
126
59
132
68
92
96

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

query I rowsort
SELECT - + col1 + col0 * + col1 AS col1 FROM tab1 cor0
----
420
4230
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + 52 * - MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-5148

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 52 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-5148

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT COUNT( ALL 60 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT COUNT ( ALL 60 ) FROM tab1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 4 * - - ( - COUNT( * ) ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1412
SELECT 4 * - - ( - COUNT ( * ) ) AS col0 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT COUNT( ALL 8 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1413
SELECT COUNT ( ALL 8 ) FROM tab0
----
3

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

query I rowsort
SELECT - ( + 12 ) AS col1 FROM tab1 cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1416
SELECT ALL + col1, - 95 - + col0 * - + CAST( - col1 AS SIGNED ) * + ( col1 ) FROM tab2
----
51
-119741
67
-336770
77
-379551

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL + col1, - 95 - + col0 * - + CAST ( - col1 AS INTEGER ) * + ( col1 ) FROM tab2
----
51
-119741
67
-336770
77
-379551

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

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

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

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

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

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE col0 > ( + col2 )
----
59
68

query I rowsort
SELECT 6 FROM tab1 cor0 WHERE NULL IS NULL
----
6
6
6

query I rowsort
SELECT DISTINCT + + col2 + 70 + - 65 * col0 FROM tab0 AS cor0 WHERE + 70 <> NULL
----

query I rowsort
SELECT ALL - + ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - - 52 AS col2 FROM tab0
----
-35
-45
37

query I rowsort
SELECT ALL col0 + - + ( - col1 ) + 46 AS col1 FROM tab1
----
111
136
184

query II rowsort
SELECT DISTINCT ( + + col2 ) + - - col0 AS col1, col1 * 57 AS col1 FROM tab0
----
196
57
62
4617
97
1197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + col2 col2 FROM tab0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL - COUNT( * ) + + - MAX( - + col2 ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) + + - MAX ( - + col2 ) AS col1 FROM tab2
----
20

query I rowsort
SELECT - col1 + + 5 FROM tab1 AS cor0
----
-42
-9
0

query I rowsort
SELECT ALL - 51 - + - 51 + + col1 * - - col2 AS col1 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - 62 * - + 41 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
7626

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 62 * - + 41 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7626

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

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

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

query I rowsort
SELECT - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

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

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

skipif mysql # not compatible
query II rowsort label-1439
SELECT - + COUNT ( * ) AS col0, 47 FROM tab2 cor0
----
-3
47

query II rowsort
SELECT + ( + col1 ) * - col1, col0 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

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

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

query I rowsort
SELECT - ( - 92 ) FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT col2 * - + 10 FROM tab0 AS cor0
----
-100
-470
-990

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1445
SELECT + col1 DIV 80 + - - col1 FROM tab1 WHERE NOT - 29 + + + 48 + col0 * + col2 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1445
SELECT + col1 / 80 + - - col1 FROM tab1 WHERE NOT - 29 + + + 48 + col0 * + col2 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - ( - SUM( + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1447
SELECT - ( - SUM ( + col0 ) ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT - SUM( + + col0 ) * - 11 FROM tab1 AS cor0
----
2497

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - SUM ( + + col0 ) * - 11 FROM tab1 AS cor0
----
2497

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT + + col0 * - col0 + + 44 AS col0 FROM tab1 cor0
----
-2557
-7181
-8237

query I rowsort
SELECT + col1 * + col1 + - col0 * ( - col1 ) * + + col2 - - 62 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
203111
296001
56621

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT 29 DIV - - ( - col1 ) + - - 92 * col0 FROM tab1 AS cor0
----
4690
7815
8372

skipif mysql # not compatible
query I rowsort label-1452
SELECT 29 / - - ( - col1 ) + - - 92 * col0 FROM tab1 AS cor0
----
4690
7815
8372

query I rowsort
SELECT col0 + 18 * - col0 + col1 - + + 65 FROM tab2 AS cor0
----
-1076
-1273
-796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT + SUM( ALL - col2 ) DIV + 95 + - 20 DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1454
SELECT + SUM ( ALL - col2 ) / + 95 + - 20 / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL 29 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col0 + - 37 AS col1 FROM tab2 AS cor0
----
-101
-112
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * - + col2 col0 FROM tab0 AS cor0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL 91 * - COUNT( ALL + col0 ) + - COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 91 * - COUNT ( ALL + col0 ) + - COUNT ( * ) FROM tab1
----
-276

query I rowsort
SELECT ALL col0 * + col2 * col0 * + col1 FROM tab1 WHERE + col1 IS NOT NULL
----
2131375
26466076
3495744

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT COUNT( * ), - 57 AS col0 FROM tab2
----
3
-57

skipif mysql # not compatible
query II rowsort label-1460
SELECT COUNT ( * ), - 57 AS col0 FROM tab2
----
3
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL SUM( + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL SUM ( + col2 ) FROM tab2
----
121

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

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

query II rowsort
SELECT + col1, - ( + - 64 ) + 91 * col1 * + 28 FROM tab1
----
14
35736
47
119820
5
12804

query I rowsort
SELECT DISTINCT ( + - 16 ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT - 13, 28 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-13
25

skipif mysql # not compatible
query II rowsort label-1465
SELECT - 13, 28 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-13
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT - MIN( DISTINCT 50 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1468
SELECT - MIN ( DISTINCT 50 ) AS col1 FROM tab2
----
-50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * col2 col0 FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab2 cor0
----
77

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

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

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

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

query I rowsort
SELECT 63 * - - col2 FROM tab2
----
1449
2520
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT - col0 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col0 / 83 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT ( - 54 ) DIV + + 38 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT ( - 54 ) / + + 38 FROM tab0
----
-1

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

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

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

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

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

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

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

query II rowsort
SELECT col0 + 99 AS col2, + col1 FROM tab2
----
145
51
163
77
174
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL MIN( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL MIN ( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

query II rowsort
SELECT DISTINCT 90 + - col2 AS col0, + col1 FROM tab2 AS cor0
----
32
67
50
77
67
51

query I rowsort
SELECT + 4 - + + col1 AS col2 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT DISTINCT - col1 + - 87 * + col0 FROM tab0 AS cor0
----
-1386
-7590
-8440

query II rowsort
SELECT - ( 59 ) - + 45, col1 FROM tab1
----
-104
14
-104
47
-104
5

query I rowsort
SELECT - 37 + - col1 FROM tab1
----
-42
-51
-84

query I rowsort
SELECT DISTINCT col0 + - 69 - - 36 FROM tab0
----
-18
54
64

query I rowsort
SELECT DISTINCT 90 - + col2 + + + 76 FROM tab2
----
108
126
143

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

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

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

query I rowsort
SELECT - + col0 FROM tab0 WHERE - + ( + - col0 ) = + 83 + - ( - col1 )
----

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

query I rowsort
SELECT - ( + + col0 ) + + 17 FROM tab0 AS cor0
----
-70
-80
2

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 14 BETWEEN NULL AND + 37
----

query I rowsort
SELECT DISTINCT - col0 - - + col1 FROM tab2 AS cor0
----
-8
13
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - 45 * + + COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 45 * + + COUNT ( * ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL col0 * + + col2 * + + 82 AS col2 FROM tab0 AS cor0
----
57810
71340
787446

query I rowsort
SELECT DISTINCT - col2 * + - 80 AS col2 FROM tab0 AS cor0
----
3760
7920
800

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT + col0 DIV - + col1 AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + col0 / - + col1 AS col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT - 76 * 2 + + col0 FROM tab1 AS cor0
----
-101
-61
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1508
SELECT ALL + 43 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + 43 / + 90 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 * - - 73 col2 FROM tab2 AS cor0
----
-224840
-283678
-85629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT MAX( DISTINCT - col0 ) DIV + COUNT( + col1 ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT MAX ( DISTINCT - col0 ) / + COUNT ( + col1 ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + - col1 * - - col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT ALL - - ( + CAST( NULL AS DECIMAL ) ) / 0 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - - ( + CAST ( NULL AS REAL ) ) / 0 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1513
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * + col0 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL - 19 DIV + 32 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 19 / + 32 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col1 + + - col1, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT - + COUNT( * ) * - + MIN( ALL 18 ) + 58 + SUM( - + 32 ) col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1520
SELECT DISTINCT - + COUNT ( * ) * - + MIN ( ALL 18 ) + 58 + SUM ( - + 32 ) col1 FROM tab0 AS cor0
----
16

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT DISTINCT + 62 - + ( - CAST( + COUNT( - - ( - + 57 ) ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - 42 * col0 * col2 < + 82 * - col0
----
62

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + 62 - + ( - CAST ( + COUNT ( - - ( - + 57 ) ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - 42 * col0 * col2 < + 82 * - col0
----
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT + col0 * - - CAST( 19 AS SIGNED ) * - + col1 AS col2 FROM tab0 AS cor0
----
-1843
-23085
-34713

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + col0 * - - CAST ( 19 AS INTEGER ) * - + col1 AS col2 FROM tab0 AS cor0
----
-1843
-23085
-34713

query I rowsort
SELECT DISTINCT + 61 * - col0 FROM tab1 cor0
----
-3111
-5185
-5551

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

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0 WHERE + col1 > NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NULL < + col0
----
0

query I rowsort
SELECT + 54 - col1 FROM tab2
----
-13
-23
3

query I rowsort
SELECT DISTINCT col1 - 28 AS col0 FROM tab1
----
-14
-23
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + COUNT( DISTINCT + col2 ) * - - 89 AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + COUNT ( DISTINCT + col2 ) * - - 89 AS col0 FROM tab0
----
267

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) >= - + col2 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - ( - 38 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 56 col2 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT ( + 77 ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT ( + 77 ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT ALL col1 DIV - 77 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL col1 / - 77 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 37 FROM tab0 AS cor0 WHERE NOT - col1 * 59 IS NULL
----
37
37
37

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT COUNT( * ) * + + 11 AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1545
SELECT COUNT ( * ) * + + 11 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - COUNT( DISTINCT - ( - 97 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1546
SELECT - COUNT ( DISTINCT - ( - 97 ) ) FROM tab2
----
-1

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

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

query II rowsort
SELECT + col0 AS col1, + 63 + 0 * + col2 AS col2 FROM tab2
----
46
63
64
63
75
63

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 86, - col2 col2 FROM tab1 cor0
----
86
-59
86
-68
86
-96

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1556
SELECT DISTINCT + - 91 + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + 84 + col2 * + col1 FROM tab2 AS cor0
----
1257
3164
3970

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT MAX( col0 ) AS col1, COUNT( ALL - ( 95 ) ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-1558
SELECT MAX ( col0 ) AS col1, COUNT ( ALL - ( 95 ) ) FROM tab0
----
97
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT - col0 - ( col2 ) DIV - col2 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - col0 - ( col2 ) / - col2 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT - 32 * col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2805
-3105
-561

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - - 44 DIV - + col0 + col2 + col2 AS col0 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1564
SELECT - - 44 / - + col0 + col2 + col2 AS col0 FROM tab2 cor0
----
116
46
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + ( 42 ) + ( + + MAX( 43 ) ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + ( 42 ) + ( + + MAX ( 43 ) ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL 96 - COUNT( * ) - - + 55 FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL 96 - COUNT ( * ) - - + 55 FROM tab0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT COUNT( * ) AS col1, 77 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-1568
SELECT COUNT ( * ) AS col1, 77 FROM tab2
----
3
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT MAX( - CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1569
SELECT MAX ( - CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + ( - col0 ) * + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT + - 89 DIV - col2 - col0 * + col0 FROM tab1 AS cor0
----
-2601
-7224
-8280

skipif mysql # not compatible
query I rowsort label-1575
SELECT + - 89 / - col2 - col0 * + col0 FROM tab1 AS cor0
----
-2601
-7224
-8280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + - MIN( DISTINCT - 97 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - MIN ( DISTINCT - 97 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + ( - + col1 ) + + 30 + + col1 + - 56 FROM tab0 AS cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT ALL ( - 97 ) + 30 AS col1 FROM tab1
----
-67
-67
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT ALL SUM( DISTINCT 23 ) DIV 68 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT ALL SUM ( DISTINCT 23 ) / 68 col2 FROM tab2
----
0

query I rowsort
SELECT - + col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 94 FROM tab2
----
19
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL COUNT( * ) * + COUNT( * ) * - MAX( - - col0 ) FROM tab2
----
-675

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - MAX ( - - col0 ) FROM tab2
----
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * - ( + - 29 ) * + col0 col1 FROM tab1
----
1047625
1056006
11287003

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT + + ( - col1 ) + col0 DIV + col1 + + col2 FROM tab2 AS cor0
----
-28
-37
-8

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + + ( - col1 ) + col0 / + col1 + + col2 FROM tab2 AS cor0
----
-28
-37
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT ALL 64 DIV - col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
168
194
29

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL 64 / - col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
168
194
29

query I rowsort
SELECT ALL col1 - + col0 + col1 FROM tab0
----
-45
-95
147

query I rowsort
SELECT 19 + ( 96 ) FROM tab0
----
115
115
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT - 16 * - CAST( + - col1 AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1592
SELECT - 16 * - CAST ( + - col1 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + 96 IN ( - col0 + - col0 / + - col0, col1, col0, 86, - ( - - 12 ) * + col0 * - col0 + ( - + 44 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT 57 DIV 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT 57 / 62 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL - MIN( 46 ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - MIN ( 46 ) AS col1 FROM tab1
----
-46

query I rowsort
SELECT + ( + col2 ) * - 55 FROM tab1
----
-3245
-3740
-5280

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 <= - ( - - col2 ) ) OR NOT + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1600
SELECT + COUNT ( + col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 / - - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT - 83 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 + CAST( - + col2 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - 82 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1607
SELECT DISTINCT + col2 AS col2, 30 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1607
SELECT DISTINCT + col2 AS col2, 30 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 86 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1610
SELECT COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL + COUNT( * ) + - - ( - MIN( + 68 ) ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + COUNT ( * ) + - - ( - MIN ( + 68 ) ) FROM tab2
----
-65

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col1 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1613
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ), 78 AS col1 FROM tab2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1613
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ), 78 AS col1 FROM tab2
----
NULL
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT + 60 * - MAX( - 98 ) + - 67 - 9 DIV + 46 FROM tab1
----
5813

skipif mysql # not compatible
query I rowsort label-1615
SELECT + 60 * - MAX ( - 98 ) + - 67 - 9 / + 46 FROM tab1
----
5813

query I rowsort
SELECT ALL col2 + - + 85 AS col1 FROM tab0
----
-38
-75
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col0, col0 * + 6 AS col1 FROM tab1 AS cor0
----
NULL
306
NULL
510
NULL
546

skipif mysql # not compatible
query II rowsort label-1617
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col0, col0 * + 6 AS col1 FROM tab1 AS cor0
----
NULL
306
NULL
510
NULL
546

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE + 64 NOT BETWEEN NULL AND 68
----

query I rowsort
SELECT ALL 46 + - 50 FROM tab0
----
-4
-4
-4

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT + 83 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - - col1 * - col0, col1 col2 FROM tab2 AS cor0
----
-2397
51
-5005
77
-5092
67

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT + 94 - - + COUNT( * ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + 94 - - + COUNT ( * ) FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL - 4 DIV + 57 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - 4 / + 57 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( NULL ) = - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - col2 * - 45 + + - 7 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - col2 * - 45 + + - 7 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - + 24 * - col0 AS col1 FROM tab0 AS cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT - col1 * + - 76 * + col1 FROM tab1 AS cor0
----
14896
167884
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT + COUNT( 67 ) DIV - + 47 - - 20 AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COUNT ( 67 ) / - + 47 - - 20 AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + - 74 * - 70 AS col0 FROM tab1 cor0
----
5180
5180
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL MIN( ALL - - col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT ALL MIN ( ALL - - col1 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1632
SELECT - - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NOT 91 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1632
SELECT - - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE NOT 91 >= NULL
----

query II rowsort
SELECT col0 AS col1, - 84 * col0 AS col2 FROM tab1 AS cor0
----
51
-4284
85
-7140
91
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 64 ) col0 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + - col1 IS NULL
----

query I rowsort
SELECT + 57 * col0 * + col2 FROM tab1
----
279072
285855
352716

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 15
----

query I rowsort
SELECT - ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + - col1, col0, - 1, - col2 - + col1, - col2 )
----

query I rowsort
SELECT - col1 * + - 90 FROM tab2 AS cor0
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT + COUNT( * ) + + - 52 AS col0, + 94 FROM tab0 cor0
----
-49
94

skipif mysql # not compatible
query II rowsort label-1641
SELECT + COUNT ( * ) + + - 52 AS col0, + 94 FROM tab0 cor0
----
-49
94

query I rowsort
SELECT DISTINCT col1 + 67 * - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT + 21 * + ( + 76 ) AS col2 FROM tab2 AS cor0
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1644
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2, + 85 * - CAST( - - 10 AS SIGNED ) FROM tab1 AS cor0
----
0
-850

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2, + 85 * - CAST ( - - 10 AS INTEGER ) FROM tab1 AS cor0
----
0
-850

query III rowsort
SELECT * FROM tab0 WHERE - 94 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL - 20 DIV + + col1 + + col2 col0 FROM tab1
----
55
68
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT ALL - 20 / + + col1 + + col2 col0 FROM tab1
----
55
68
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 + ( - col2 ) col1 FROM tab2
----
-11
-29
6

query I rowsort
SELECT col0 + - col1 FROM tab2 WHERE col2 IS NOT NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT 56 - - - COUNT( col0 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 56 - - - COUNT ( col0 ) FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1650
SELECT + COUNT ( - col0 ) FROM tab0
----
3

query II rowsort
SELECT ALL 20, 55 AS col2 FROM tab0
----
20
55
20
55
20
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, + col0 * + 96 col1 FROM tab2
----
-46
4416
-64
6144
-75
7200

query I rowsort
SELECT col2 * + 93 AS col0 FROM tab1
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT COUNT( * ) * + 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1654
SELECT COUNT ( * ) * + 66 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT ALL ( COUNT ( * ) ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT 57 * - - MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
1311

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 57 * - - MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
1311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + + 64 > col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + COUNT( col0 ) - + MAX( + - ( + - col2 ) ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL AND NOT + col1 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + COUNT ( col0 ) - + MAX ( + - ( + - col2 ) ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL AND NOT + col1 <> + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT + COUNT( * ) - - 54 - COUNT( * ) * - 30 col0 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT DISTINCT + COUNT ( * ) - - 54 - COUNT ( * ) * - 30 col0 FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 / + - col1, col2 - - - col2, - + col0, + col0, - 31 )
----

query II rowsort
SELECT + col1 + + - col0, - col0 FROM tab2 AS cor0 WHERE NOT col2 + col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1663
SELECT DISTINCT - - COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - - COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL - col2 DIV 96 * + 58 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - col2 / 96 * + 58 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL MAX( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL MAX ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 63 * - - col2 FROM tab0 AS cor0
----
2961
6237
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col2 col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL COUNT( * ), - 88 + + - COUNT( * ) AS col0 FROM tab0
----
3
-91

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL COUNT ( * ), - 88 + + - COUNT ( * ) AS col0 FROM tab0
----
3
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT - COUNT( * ) * + + 67 AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-1671
SELECT - COUNT ( * ) * + + 67 AS col2 FROM tab2
----
-201

query II rowsort
SELECT + 80 * + col0 * + col0, - col0 AS col0 FROM tab0
----
18000
-15
605520
-87
752720
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MAX( + 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MAX ( + 50 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL COUNT( ALL + 48 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL COUNT ( ALL + 48 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT - + 21 * SUM( - - 6 ) AS col0 FROM tab2 WHERE + + 98 * - - 99 * - - col1 * + 91 + + + 9 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - + 21 * SUM ( - - 6 ) AS col0 FROM tab2 WHERE + + 98 * - - 99 * - - col1 * + 91 + + + 9 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1679
SELECT MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 23 * 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL - - col2 DIV col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1681
SELECT ALL - - col2 / col0 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT + 95 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-1682
SELECT + 95 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT - ( - col2 ) + - + col0 DIV col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - ( - col2 ) + - + col0 / col0 FROM tab0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT 92 + - COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1684
SELECT 92 + - COUNT ( * ) FROM tab1
----
89

query I rowsort
SELECT ALL + col0 * col0 * 31 * - - col0 FROM tab1
----
19037875
23360701
4112181

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT ALL + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT DISTINCT MAX( ALL col2 ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-1689
SELECT DISTINCT MAX ( ALL col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99
3

query I rowsort
SELECT + 77 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 72 * + + 88 * + - col1 AND + col0 * - + 68 + - + col1 / 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ( + - ( + + COUNT( ALL col2 ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1691
SELECT ( + - ( + + COUNT ( ALL col2 ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE col0 + - ( + col1 ) + + col1 / + + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1693
SELECT - col2 DIV - + CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT - col2 / - + CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 35 + col2 + - - 33 + + col0 col2 FROM tab2 AS cor0
----
137
172
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - MIN( ALL - 61 ) AS col2 FROM tab1 WHERE col1 - 2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - MIN ( ALL - 61 ) AS col2 FROM tab1 WHERE col1 - 2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - 5 + + - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-1697
SELECT - 5 + + - COUNT ( * ) FROM tab1
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 98 col1 FROM tab0
----
17
77
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT + col0 DIV - 52 + 11 FROM tab0
----
10
11

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + col0 / - 52 + 11 FROM tab0
----
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + + col0 * + col1 col0 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT ALL - ( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - ( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1703
SELECT ALL * FROM tab1 WHERE - col0 + + - col0 + + col2 * - col0 NOT IN ( - ( - - CAST( + col1 AS SIGNED ) ) * 53, + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1703
SELECT ALL * FROM tab1 WHERE - col0 + + - col0 + + col2 * - col0 NOT IN ( - ( - - CAST ( + col1 AS INTEGER ) ) * 53, + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1704
SELECT ALL + 36 AS col2, col2 DIV - 85 FROM tab0
----
36
-1
36
0
36
0

skipif mysql # not compatible
query II rowsort label-1704
SELECT ALL + 36 AS col2, col2 / - 85 FROM tab0
----
36
-1
36
0
36
0

query I rowsort
SELECT DISTINCT - col2 * 48 FROM tab0 AS cor0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1706
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 IN ( + - col1 * - col2, - col2, + CAST( NULL AS SIGNED ), - 77 / - 10 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-1706
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 IN ( + - col1 * - col2, - col2, + CAST ( NULL AS INTEGER ), - 77 / - 10 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - COUNT( ALL 78 ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT - COUNT ( ALL 78 ) col1 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT 50 * + col1 DIV col1 * - - col0 FROM tab1 AS cor0
----
2550
4250
4550

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT 50 * + col1 / col1 * - - col0 FROM tab1 AS cor0
----
2550
4250
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT + COUNT( * ) * - 63 * - + 20 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
3780

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COUNT ( * ) * - 63 * - + 20 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3780

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - AVG ( + col2 ) + 84 FROM tab0 AS cor0 WHERE NOT ( + - col2 ) * 56 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT - col0 > - ( + - col2 ) / + col2 + - + 75 + + 80
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * - col2 * + 25 AS col1 FROM tab0
----
-2475
-5250
-95175

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT COUNT( * ) * - 35 * - - MIN( - 99 ) FROM tab1
----
10395

skipif mysql # not compatible
query I rowsort label-1714
SELECT COUNT ( * ) * - 35 * - - MIN ( - 99 ) FROM tab1
----
10395

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 87 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1718
SELECT CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1720
SELECT ALL + col1, + col1 + + col0 DIV + 26 - - col0 AS col0 FROM tab0 AS cor0
----
1
101
21
111
81
96

skipif mysql # not compatible
query II rowsort label-1720
SELECT ALL + col1, + col1 + + col0 / + 26 - - col0 AS col0 FROM tab0 AS cor0
----
1
101
21
111
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL + - 41 * - COUNT( * ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + - 41 * - COUNT ( * ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT DISTINCT - 54 DIV 97 * + COUNT( * ) + + 33 AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - 54 / 97 * + COUNT ( * ) + + 33 AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT - + CAST( - + col1 AS SIGNED ) * + 30 + 91 + + col1 + + + col2 - - - col0 + - - 20 - + col2 FROM tab0 AS cor0
----
2607
45
675

skipif mysql # not compatible
query I rowsort label-1723
SELECT - + CAST ( - + col1 AS INTEGER ) * + 30 + 91 + + col1 + + + col2 - - - col0 + - - 20 - + col2 FROM tab0 AS cor0
----
2607
45
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 89 FROM tab2 cor0 WHERE - 13 = NULL
----

query I rowsort
SELECT ALL 2 - - col0 - + col2 AS col0 FROM tab1
----
-43
25
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN - col0 * col0 AND 28 + - - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT - COUNT( DISTINCT + 31 ) + + MIN( ALL - + 31 ) col0 FROM tab2
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1728
SELECT DISTINCT - COUNT ( DISTINCT + 31 ) + + MIN ( ALL - + 31 ) col0 FROM tab2
----
-32

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - 20 FROM tab1 WHERE NULL IS NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT CAST( 11 AS SIGNED ) FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1732
SELECT CAST ( 11 AS INTEGER ) FROM tab0
----
11
11
11

query II rowsort
SELECT ALL col2 AS col1, - 0 AS col2 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT 78 - + + 70 AS col0 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 42 * - + col2 + + - 5 ) IN ( + col1 / 89, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 42 * - + col2 + + - 5 ) IN ( + col1 / 89, col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1736
SELECT DISTINCT + 43 AS col0, CAST( NULL AS SIGNED ) + - 46 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1736
SELECT DISTINCT + 43 AS col0, CAST ( NULL AS INTEGER ) + - 46 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
43
NULL

query II rowsort
SELECT DISTINCT + + 79 AS col2, + 33 * + + col0 / + - 95 - - col1 FROM tab1 WHERE NOT NULL BETWEEN + 73 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + + SUM( - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + + SUM ( - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 58 ) col2 FROM tab2 AS cor0
----
58
58
58

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1742
SELECT - SUM( DISTINCT + + CAST( + + col2 AS SIGNED ) ) AS col0, + 48 AS col1 FROM tab2
----
-121
48

skipif mysql # not compatible
query II rowsort label-1742
SELECT - SUM ( DISTINCT + + CAST ( + + col2 AS INTEGER ) ) AS col0, + 48 AS col1 FROM tab2
----
-121
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + COUNT( ALL - 9 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1743
SELECT + COUNT ( ALL - 9 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 53 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 53 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - 47, col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT - MAX( + + 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - MAX ( + + 90 ) FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1748
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col0 + CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
query III rowsort label-1748
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col0 + CAST ( NULL AS INTEGER ) >= col0
----

query I rowsort
SELECT DISTINCT + - col0 + 65 FROM tab2 AS cor0
----
-10
1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1750
SELECT ALL + 6 AS col0, 16 + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
6
13

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL + 6 AS col0, 16 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
6
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1751
SELECT ALL * FROM tab1 cor0 WHERE - ( - - ( - - col2 ) ) <= CAST( - col2 AS SIGNED ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1751
SELECT ALL * FROM tab1 cor0 WHERE - ( - - ( - - col2 ) ) <= CAST ( - col2 AS INTEGER ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0, col0 + + col1 * - + 90, + col1 / + - 81 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL 39 * + 73 + col2 * CAST( col1 AS SIGNED ) FROM tab2
----
4020
5927
6733

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 39 * + 73 + col2 * CAST ( col1 AS INTEGER ) FROM tab2
----
4020
5927
6733

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL COUNT( * ) * - SUM( 51 ) FROM tab2
----
-459

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COUNT ( * ) * - SUM ( 51 ) FROM tab2
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - SUM( - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - SUM ( - col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 52 ) + col2 ) IS NULL
----

query I rowsort
SELECT 48 * 81 FROM tab1 WHERE NOT + 54 * - col1 + + col2 IN ( - col0 * 95 )
----
3888
3888
3888

query I rowsort
SELECT DISTINCT + AVG ( 25 ) AS col1 FROM tab2 WHERE NOT col1 + col2 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND - 78
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT - SUM( - 47 ) + COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-1761
SELECT - SUM ( - 47 ) + COUNT ( * ) FROM tab0
----
144

query III rowsort
SELECT * FROM tab1 WHERE 67 - 72 > col0 * + ( col0 )
----

query I rowsort
SELECT DISTINCT - 78 + - col1 AS col2 FROM tab0
----
-159
-79
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 35 * ( - col0 ) IN ( ( 86 ) * col1 )
----

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE ( col0 * col0 ) IN ( - ( 88 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + 25 AS col2 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL COUNT( * ) * - 46 AS col0 FROM tab1 WHERE ( NULL ) <= ( - col2 / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( * ) * - 46 AS col0 FROM tab1 WHERE ( NULL ) <= ( - col2 / col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + 80 * - 15 + COUNT( * ) col1 FROM tab0
----
-1197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT + 80 * - 15 + COUNT ( * ) col1 FROM tab0
----
-1197

query I rowsort
SELECT col0 + col0 * 43 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT DISTINCT 38 * + col0 AS col2 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT 49 + + MIN( ALL + 85 ) AS col1 FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT 49 + + MIN ( ALL + 85 ) AS col1 FROM tab0
----
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 32 col0 FROM tab0
----
2592
32
672

query I rowsort
SELECT 88 * col2 AS col0 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT - ( 37 ) * - col0 AS col2 FROM tab0
----
3219
3589
555

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT - col2 NOT BETWEEN - col0 AND + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT MAX( DISTINCT + 74 ) * + COUNT( * ) AS col1 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-1778
SELECT MAX ( DISTINCT + 74 ) * + COUNT ( * ) AS col1 FROM tab1
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL - ( - col0 ) DIV col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - ( - col0 ) / col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 WHERE NOT col0 * col0 NOT IN ( - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 WHERE NOT col0 * col0 NOT IN ( - 15 )
----
0

query I rowsort
SELECT ( + 68 ) - col0 FROM tab1
----
-17
-23
17

query I rowsort
SELECT DISTINCT - col0 * + 14 FROM tab2
----
-1050
-644
-896

query III rowsort
SELECT * FROM tab0 WHERE 81 BETWEEN 3 AND col1
----
15
81
47

query I rowsort
SELECT DISTINCT + col1 + + 17 FROM tab0 WHERE NOT col0 IN ( - col0 + 28 )
----
18
38
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT - ( + col2 ) DIV col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - ( + col2 ) / col0 AS col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT DISTINCT - 15 - + 44 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + 96 FROM tab0 AS cor0 WHERE NOT ( 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1789
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = col1
----

skipif mysql # not compatible
query III rowsort label-1789
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT ALL CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - SUM( 92 ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1791
SELECT - SUM ( 92 ) FROM tab2 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - ( - 21 ) * COUNT( * ) col1 FROM tab1 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1793
SELECT - ( - 21 ) * COUNT ( * ) col1 FROM tab1 cor0
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 71 FROM tab2 AS cor0 CROSS JOIN tab0
----
-71

query I rowsort
SELECT ( + 5 ) AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 47 ) IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL ( 36 ) FROM tab2 AS cor0 WHERE ( - 54 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1803
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - ( - MIN( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1804
SELECT - ( - MIN ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 * - 63 col1 FROM tab1 cor0 WHERE NULL <> ( col1 )
----

query I rowsort
SELECT DISTINCT - - col1 * + 48 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT - col2 / - ( col0 * - 70 ) BETWEEN - 32 + 83 AND col0 * col2
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 96 + - ( col2 + col2 ) BETWEEN 92 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 58 ) IN ( 74 + - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 + 0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT CAST( + + SUM( + col0 ) AS SIGNED ) * + 31 AS col2 FROM tab2
----
5735

skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( + + SUM ( + col0 ) AS INTEGER ) * + 31 AS col2 FROM tab2
----
5735

query I rowsort
SELECT - 36 * col1 * 13 FROM tab1
----
-21996
-2340
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1814
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1815
SELECT + - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + + 98 + COUNT( * ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + + 98 + COUNT ( * ) FROM tab1 AS cor0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT col1 + - col2 + - col0 - col2 DIV col2 FROM tab2
----
-19
-28
-67

skipif mysql # not compatible
query I rowsort label-1817
SELECT col1 + - col2 + - col0 - col2 / col2 FROM tab2
----
-19
-28
-67

query I rowsort
SELECT DISTINCT - col1 + 93 FROM tab0 cor0 WHERE + ( + + col0 ) - 32 * 12 IS NOT NULL
----
12
72
92

query I rowsort
SELECT 83 * - + col2 AS col0 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 + + col0 AS col2 FROM tab1 AS cor0
----
4415
515
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL + COUNT( + col1 ) * 70 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL + COUNT ( + col1 ) * 70 AS col1 FROM tab1 AS cor0
----
210

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - 32 * + - col2 < col1
----
15
87
97

query I rowsort
SELECT ALL - 47 * + col0 + + 62 AS col0 FROM tab2 AS cor0
----
-2100
-2946
-3463

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col0 - + col1 + + col1 * col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL - ( - 51 ) + + MIN( - 0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - ( - 51 ) + + MIN ( - 0 ) AS col2 FROM tab1
----
51

query II rowsort
SELECT + ( - col0 ) AS col1, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT 43 * + 58 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2494

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( + ( + 61 ) * + + col2 * col0 )
----

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0 cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 * - 56 * ( - 11 ) AS col2 FROM tab0 AS cor0
----
129360
2345112
60984

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 16 / - 31 NOT IN ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 35 * + + col2 + + - col0 * + col0 FROM tab1 AS cor0
----
-5160
-5901
759

query I rowsort
SELECT col1 * - 86 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - MIN( - 73 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-1835
SELECT - MIN ( - 73 ) AS col0 FROM tab2
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1837
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 < - - ( - col1 ) - CAST( col0 AS SIGNED ) + + col2 * - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1837
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 < - - ( - col1 ) - CAST ( col0 AS INTEGER ) + + col2 * - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 83 + - col0 + + col2 / - col2 * - 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 72 ) BETWEEN 53 + + ( - - 83 ) + - col0 * 2 AND col1
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT + MIN( + 72 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1842
SELECT + MIN ( + 72 ) AS col2 FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 < + + col2 * 42 * + col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT + CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1844
SELECT + CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

query II rowsort
SELECT ALL 75 + ( - col1 ) AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-2
-64
24
-46
8
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

query II rowsort
SELECT - col1 AS col2, - 57 * - - 2 * + - col0 FROM tab1
----
-14
5814
-47
10374
-5
9690

query I rowsort
SELECT - col1 * + col1 * - - 98 AS col2 FROM tab0
----
-43218
-642978
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - 49 + - - SUM( ALL + col0 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - 49 + - - SUM ( ALL + col0 ) FROM tab0
----
150

query I rowsort
SELECT + 26 * + + col1 AS col0 FROM tab0
----
2106
26
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + + col2 + + - col0 + - col0 * 21 col1 FROM tab0
----
-1904
-2035
-283

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 69 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab0 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT ALL - + CAST( NULL AS SIGNED ) col0, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1855
SELECT ALL - + CAST ( NULL AS INTEGER ) col0, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT col1 * col1 DIV - col0 + + + 47 + + + col0 FROM tab0
----
-375
129
144

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT col1 * col1 / - col0 + + + 47 + + + col0 FROM tab0
----
-375
129
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE 88 <= ( - col2 / - + col2 + + 87 + col2 * 45 + - 68 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 75 IS NULL
----

query I rowsort
SELECT ALL - col0 * 53 AS col0 FROM tab0 AS cor0
----
-4611
-5141
-795

query I rowsort
SELECT + + 49 * - 9 - - col0 FROM tab2 AS cor0
----
-366
-377
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT - - COUNT( * ) + - + COUNT( - 25 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT - - COUNT ( * ) + - + COUNT ( - 25 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 BETWEEN ( 42 ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT - + 45 + - col1 DIV + 77 FROM tab0 cor0
----
-45
-45
-46

skipif mysql # not compatible
query I rowsort label-1863
SELECT - + 45 + - col1 / + 77 FROM tab0 cor0
----
-45
-45
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + - col1 DIV 2 AS col0 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-1864
SELECT + - col1 / 2 AS col0 FROM tab0 AS cor0
----
-10
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - COUNT( * ) * + + SUM( ALL 91 ) FROM tab0 cor0
----
-819

skipif mysql # not compatible
query I rowsort label-1865
SELECT - COUNT ( * ) * + + SUM ( ALL 91 ) FROM tab0 cor0
----
-819

query I rowsort
SELECT + 68 * + - col2 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1867
SELECT - MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 52 * - + 60 FROM tab1
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + + 59 * - + MIN( DISTINCT - col0 ) / + MIN( + col2 ) AS col1 FROM tab1 WHERE NOT NULL <> + col0 * col2 * col1 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT + + 59 * - + MIN ( DISTINCT - col0 ) / + MIN ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL <> + col0 * col2 * col1 * - 12
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT - 64 * - - 0 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - 64 * - - 0 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 66 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ( + ( 44 ) ) AS col1 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1876
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - col2, + 16 - + 88 FROM tab1 AS cor0 WHERE NOT 19 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL SUM( 80 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL SUM ( 80 ) FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT DISTINCT - + COUNT( * ) + + 18 col2, + COUNT( ALL + + 1 ) FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1879
SELECT DISTINCT - + COUNT ( * ) + + 18 col2, + COUNT ( ALL + + 1 ) FROM tab1 AS cor0
----
15
3

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NULL >= - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT + 82 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + 82 / col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - - col0 + + + col1 * - + 69 * + + col1 AS col0 FROM tab1 AS cor0
----
-13473
-152330
-1640

query I rowsort
SELECT DISTINCT - ( - 80 ) * + + 65 + 89 + - col2 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
5231
5249
5266

query II rowsort
SELECT ALL - 31, col1 + 89 AS col1 FROM tab1
----
-31
103
-31
136
-31
94

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - ( - 93 ) * - col0 * col0
----

query I rowsort
SELECT + ( 84 ) AS col2 FROM tab2
----
84
84
84

query I rowsort
SELECT + 45 * - col1 AS col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT - 11 * - 66 FROM tab0
----
726
726
726

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT - 31 DIV - col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - 31 / - col1 AS col0 FROM tab1
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1891
SELECT 32 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-1891
SELECT 32 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
32
NULL
32
NULL
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + 94 * COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1892
SELECT + 94 * COUNT ( * ) FROM tab1 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT COUNT( - col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT COUNT ( - col1 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + col1 + 39 AS col0 FROM tab1 cor0
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT + col1 * - col0 - + + col0 + 17 DIV + col0 FROM tab0
----
-1229
-1914
-194

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + col1 * - col0 - + + col0 + 17 / + col0 FROM tab0
----
-1229
-1914
-194

query II rowsort
SELECT DISTINCT + 42 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
42
59
42
68
42
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT - 16 * - ( - col0 ) AS col2 FROM tab2
----
-1024
-1200
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT col1 DIV 29 * col0 FROM tab2
----
128
150
46

skipif mysql # not compatible
query I rowsort label-1900
SELECT col1 / 29 * col0 FROM tab2
----
128
150
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * + - col0 ) BETWEEN + col2 * - - 72 AND - ( + 36 ) - - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL - - ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + MAX( ALL ( - + 15 ) ) * 90 col2 FROM tab1
----
-1350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT ALL + MAX ( ALL ( - + 15 ) ) * 90 col2 FROM tab1
----
-1350

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1908
SELECT + COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
70
70
70

query I rowsort
SELECT - col2 * - 56 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - - SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1911
SELECT - - SUM ( + col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col1 * 58
----

query I rowsort
SELECT 51 + - col2 FROM tab2
----
-7
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL col1 + + - 30 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL col1 + + - 30 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 + - col2 col2, ( 42 ) FROM tab2
----
34
42
52
42
69
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + ( + col0 ) / - col0 + col1 NOT BETWEEN + 47 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + 58 - - 36 AS col2 FROM tab0
----
5082
5662
906

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col1 * + - col2 / 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - 71 + COUNT( * ) AS col2 FROM tab0 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 71 + COUNT ( * ) AS col2 FROM tab0 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + COUNT( - col2 ) - - MIN( DISTINCT - ( + + col1 ) ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + COUNT ( - col2 ) - - MIN ( DISTINCT - ( + + col1 ) ) AS col1 FROM tab0
----
-78

query I rowsort
SELECT + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT - 69 * CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT - 69 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 41 * 46 AS col0 FROM tab1
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL + 48 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + 48 / col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT - - 16 AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 96 AS col0, col1 col1 FROM tab2 AS cor0
----
-96
51
-96
67
-96
77

query II rowsort
SELECT DISTINCT 6 AS col0, col2 FROM tab1 AS cor0
----
6
59
6
68
6
96

query I rowsort
SELECT - + col1 * + + col2 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) / - + 17 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 63 AS col1, 91 FROM tab0
----
63
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - MAX( ALL + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1938
SELECT - MAX ( ALL + col1 ) AS col1 FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 * + col0 AND NULL
----

query I rowsort
SELECT + col1 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 22, + col2 + + col1 AS col1 FROM tab2 cor0
----
22
117
22
125
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + - COUNT( * ) * 8 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1942
SELECT + - COUNT ( * ) * 8 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT ALL 58, col0 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
58
51
58
67
58
77

query I rowsort
SELECT DISTINCT + 66 + 36 AS col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT MIN( + + 79 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
79

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT MIN ( + + 79 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT DISTINCT - 39 * col1, CAST( NULL AS SIGNED ) * - - 20 / + col0 * - 46 + + + col1 AS col2 FROM tab2
----
-1989
NULL
-2613
NULL
-3003
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT DISTINCT - 39 * col1, CAST ( NULL AS INTEGER ) * - - 20 / + col0 * - 46 + + + col1 AS col2 FROM tab2
----
-1989
NULL
-2613
NULL
-3003
NULL

query I rowsort
SELECT 92 + 97 AS col0 FROM tab0
----
189
189
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE + 26 IS NULL AND NOT ( + CAST( - 75 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1948
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE + 26 IS NULL AND NOT ( + CAST ( - 75 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT + CAST( NULL AS SIGNED ) + - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT + CAST ( NULL AS INTEGER ) + - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + 32 FROM tab2 AS cor0
----
19
35
45

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT + + col1 DIV + + 22 - + 38 + - - col1 AS col1 FROM tab2 AS cor0
----
15
32
42

skipif mysql # not compatible
query I rowsort label-1952
SELECT + + col1 / + + 22 - + 38 + - - col1 AS col1 FROM tab2 AS cor0
----
15
32
42

query I rowsort
SELECT - 2 + + + col1 * + col1 FROM tab1 cor0
----
194
2207
23

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT ALL col1 + + col0 DIV 35 FROM tab1 AS cor0
----
15
49
7

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL col1 + + col0 / 35 FROM tab1 AS cor0
----
15
49
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1956
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + MIN( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + MIN ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 16 FROM tab2 WHERE col1 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 28 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - 76 IS NULL
----
-23
-40
-58

query II rowsort
SELECT - col1, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 23 / + + 54 * + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col2 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 65 NOT BETWEEN + col0 * + col2 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - SUM( 85 ) AS col1 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-1965
SELECT - SUM ( 85 ) AS col1 FROM tab0
----
-255

query I rowsort
SELECT ( - + col1 ) * col0 * col1 FROM tab0 cor0 WHERE NOT NULL <= 73
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND + 51 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( DISTINCT + + 73 ) * - + 61 AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( DISTINCT + + 73 ) * - + 61 AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + 43 * - COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 43 * - COUNT ( * ) FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL COUNT( * ) * + 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL COUNT ( * ) * + 87 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1971
SELECT ALL + CAST( col0 AS SIGNED ) DIV - col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + CAST ( col0 AS INTEGER ) / - col2 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT SUM( DISTINCT - col0 ) * 16 AS col0 FROM tab2
----
-2960

skipif mysql # not compatible
query I rowsort label-1972
SELECT SUM ( DISTINCT - col0 ) * 16 AS col0 FROM tab2
----
-2960

query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( DISTINCT - - col1 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( DISTINCT - - col1 ) FROM tab2
----
3
3

query II rowsort
SELECT col0, + col0 * col2 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1976
SELECT + col2 / CAST( NULL AS DECIMAL ) * col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + col2 / CAST ( NULL AS REAL ) * col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + SUM( DISTINCT - 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + SUM ( DISTINCT - 1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1978
SELECT - COUNT( * ) DIV + 21 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT - COUNT ( * ) / + 21 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 + 54 FROM tab0 cor0
----
-27
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MAX( col2 ) + 22 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MAX ( col2 ) + 22 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT + 74 * 43 FROM tab2
----
3182
3182
3182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + 1 col0 FROM tab0 cor0
----
-15
1
-87
1
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT ALL - COUNT( * ) AS col0, - 83 FROM tab1 AS cor0
----
-3
-83

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL - COUNT ( * ) AS col0, - 83 FROM tab1 AS cor0
----
-3
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * + - col2 col2 FROM tab2 AS cor0
----
1817
3160
4582

query I rowsort
SELECT - 12 AS col0 FROM tab0 AS cor0 WHERE NULL = 6
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - 3 FROM tab0 AS cor0
----
10
-3
47
-3
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, - col2 col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT 70 + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE + col1 >= col0
----
70

skipif mysql # not compatible
query I rowsort label-1989
SELECT 70 + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 >= col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT COUNT( * ) - + 47 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1990
SELECT COUNT ( * ) - + 47 AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL + + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT DISTINCT - ( 13 ) - - col0, col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 3 * + col2 = NULL
----

query I rowsort
SELECT - - ( - col1 ) + col1 - + - col2 + + col1 * 52 * 53 + col1 FROM tab0 AS cor0
----
223364
2856
57907

query I rowsort
SELECT col1 + + + 77 * col0 AS col2 FROM tab2
----
3593
5005
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT 51 + - + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1995
SELECT 51 + - + COUNT ( * ) FROM tab0
----
48

query I rowsort
SELECT DISTINCT 15 + col1 AS col1 FROM tab2
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT + MIN( + 0 ) - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + MIN ( + 0 ) - + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - col2 + + 98 * - 98 FROM tab1
----
-9663
-9672
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( * ) AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 70 * + 13 col0 FROM tab2 AS cor0
----
41860
58240
68250

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - 96 + + col1 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 BETWEEN col1 AND + ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 0 * + col0 * - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT + - COUNT( * ) + + + ( - ( - - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT + - COUNT ( * ) + + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT - 38 * - - 86 * - - COUNT( * ) FROM tab0
----
-9804

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - 38 * - - 86 * - - COUNT ( * ) FROM tab0
----
-9804

query I rowsort
SELECT ALL col0 * + col2 * + - 58 AS col2 FROM tab2 AS cor0
----
-148480
-252300
-61364

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE + 30 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( 25 ) AS col0 FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 * + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 * + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2012
SELECT ALL - col1 * CAST( 95 AS SIGNED ) * + 14 AS col0, 7 FROM tab0 AS cor0
----
-107730
7
-1330
7
-27930
7

skipif mysql # not compatible
query II rowsort label-2012
SELECT ALL - col1 * CAST ( 95 AS INTEGER ) * + 14 AS col0, 7 FROM tab0 AS cor0
----
-107730
7
-1330
7
-27930
7

query II rowsort
SELECT + col2, - 31 * + + col1 AS col0 FROM tab1 AS cor0
----
59
-155
68
-1457
96
-434

query I rowsort
SELECT + col2 * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL ( + 99 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, col0 col2 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - MAX( + - 28 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2017
SELECT - MAX ( + - 28 ) AS col1 FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT + col0 / - - col2 * - - col1 * + col2 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT ALL + - 10 DIV 60 * - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + - 10 / 60 * - col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col0 + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2023
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - CAST( 20 AS SIGNED ) FROM tab1
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - CAST ( 20 AS INTEGER ) FROM tab1
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + MIN ( - col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT col0 + - col0 * - 90 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + COUNT( * ) + 20 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2027
SELECT + COUNT ( * ) + 20 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - COUNT( * ) + - MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2029
SELECT - COUNT ( * ) + - MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + 45 + - - 64 AS col1 FROM tab0 AS cor0
----
109
109
109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 23 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL + col0 * 17 * + 1 + - 18 DIV + col0 + - - col1 + - col0 FROM tab0 AS cor0
----
1413
1553
320

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + col0 * 17 * + 1 + - 18 / + col0 + - - col1 + - col0 FROM tab0 AS cor0
----
1413
1553
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) + + 90 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) + + 90 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2035
SELECT DISTINCT + COUNT( * ) * + ( - MAX( DISTINCT + col2 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-2035
SELECT DISTINCT + COUNT ( * ) * + ( - MAX ( DISTINCT + col2 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-288
NULL

query II rowsort
SELECT + col1 * - col2 AS col2, col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL + col1 + - + col1 DIV + + col0 AS col1 FROM tab0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + col1 + - + col1 / + + col0 AS col1 FROM tab0
----
1
21
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2038
SELECT ALL - col2 * CAST( - - col1 AS DECIMAL ) * + col2 + col1 AS col0 FROM tab2 WHERE NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - col2 * CAST ( - - col1 AS REAL ) * + col2 + col1 AS col0 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT 12 - col1 AS col1 FROM tab2
----
-39
-55
-65

query I rowsort
SELECT DISTINCT ( - 80 ) FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT 89 - - SUM( DISTINCT 15 ) col0 FROM tab2
----
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT 89 - - SUM ( DISTINCT 15 ) col0 FROM tab2
----
104

query II rowsort
SELECT - col0 AS col0, - ( + col2 ) + - 90 FROM tab1 cor0
----
-51
-186
-85
-149
-91
-158

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 BETWEEN + 38 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT - 29 * - + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - 29 * - + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 * col2 + - col0 + - - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2046
SELECT ALL - COUNT( * ) DIV - 36 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - COUNT ( * ) / - 36 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2 * + 61, col2 AS col2 FROM tab1 AS cor0
----
3599
59
4148
68
5856
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2048
SELECT DISTINCT CAST( + + col1 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT ALL COUNT( * ) * 83 AS col1, - 67 FROM tab0 AS cor0
----
249
-67

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL COUNT ( * ) * 83 AS col1, - 67 FROM tab0 AS cor0
----
249
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL col2 DIV ( - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL col2 / ( - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * 52 FROM tab0
----
2444
5148
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT + CAST( + - 40 AS SIGNED ) FROM tab0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2053
SELECT + CAST ( + - 40 AS INTEGER ) FROM tab0
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> - ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 66 ) AS col1 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - - col1 - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col2 col0, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL ( + col2 ) DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL ( + col2 ) / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - col2 * - + 4 - + col1 FROM tab2 AS cor0
----
165
41
83

query I rowsort
SELECT - col1 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-11
-34
98

query I rowsort
SELECT + 6 + 22 * col1 * - + 23 AS col1 FROM tab0 cor0
----
-10620
-40980
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT 78 DIV 22 + - + col0 + - - ( + - col0 ) DIV - + 87 FROM tab1
----
-48
-82
-87

skipif mysql # not compatible
query I rowsort label-2064
SELECT 78 / 22 + - + col0 + - - ( + - col0 ) / - + 87 FROM tab1
----
-48
-82
-87

query I rowsort
SELECT - 67 + + 23 FROM tab0
----
-44
-44
-44

query II rowsort
SELECT ALL col1 + + col2 - 29, ( - col1 ) + - col2 AS col0 FROM tab1
----
35
-64
81
-110
86
-115

query I rowsort
SELECT ALL col0 - + 7 + - 39 FROM tab0
----
-31
41
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND - - col1 * + ( col0 ) + + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col1 / - + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT CAST( - 41 AS SIGNED ) col1 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT CAST ( - 41 AS INTEGER ) col1 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + 87 * + 74 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 11 AND col0 + 41 OR col0 NOT BETWEEN - 19 AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 79 AS col2, col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 59 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
59
59
59

query II rowsort
SELECT - + col1 AS col2, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) AS col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL <> col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT + CAST( - + 45 AS SIGNED ) col2 FROM tab1 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2081
SELECT + CAST ( - + 45 AS INTEGER ) col2 FROM tab1 AS cor0
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - - col0 NOT IN ( + + col1 * + col1, 0, - 21 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT col1 + + 74 + + col0 * 85 FROM tab1 AS cor0
----
4423
7304
7856

query I rowsort
SELECT - - 78 + col0 * - col0 + col2 FROM tab0 AS cor0
----
-100
-7481
-9232

query I rowsort
SELECT - col2 * + 32 + + 63 FROM tab0 AS cor0
----
-1441
-257
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + - col1 col0 FROM tab2 AS cor0
----
-12
-28
-38

query II rowsort
SELECT DISTINCT col0 + + - col1, col0 AS col2 FROM tab1
----
37
51
44
91
80
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT CAST( - + AVG ( + col2 ) AS SIGNED ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-2089
SELECT CAST ( - + AVG ( + col2 ) AS INTEGER ) FROM tab0
----
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT 3 DIV - MIN( DISTINCT + 7 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT 3 / - MIN ( DISTINCT + 7 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2093
SELECT DISTINCT + col1, 10 AS col0 FROM tab2 cor0 WHERE NOT col0 + + ( + - CAST( 67 AS SIGNED ) ) >= + 26
----
51
10
67
10
77
10

skipif mysql # not compatible
query II rowsort label-2093
SELECT DISTINCT + col1, 10 AS col0 FROM tab2 cor0 WHERE NOT col0 + + ( + - CAST ( 67 AS INTEGER ) ) >= + 26
----
51
10
67
10
77
10

query II rowsort
SELECT col2 * col0 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
1058
-51
2560
-77
4350
-67

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( NOT 35 + col2 + + 40 >= + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 * 24 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2098
SELECT + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 99 FROM tab0 AS cor0 WHERE - ( - col1 ) > 25
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - ( + ( col2 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - ( + ( col2 ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT 32 DIV + + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT 32 / + + col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + + col0 NOT BETWEEN - col2 - + 62 AND - + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + - + 3 >= NULL
----

query II rowsort
SELECT 4 * + + col1 AS col0, col0 * + col1 AS col0 FROM tab2
----
204
2346
268
5025
308
4928

query I rowsort
SELECT 83 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
83
83
83

query I rowsort
SELECT ALL + 43 * 92 FROM tab2 AS cor0
----
3956
3956
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2107
SELECT + SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + - 43 + + - 82 AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 23726b3acc81d0da778ac9662bc92c2b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 97 * - col2 col0 FROM tab2
----
102626
248320
421950

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col1 + + + col2 / - - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT 34 < col1
----
1
21

query I rowsort
SELECT DISTINCT + + col0 * + col1 + - col1 FROM tab0 AS cor0
----
1134
1806
96

query II rowsort
SELECT + - 91 - - 14 * + col2 AS col0, col2 FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL + col2 + - - 70 AS col0 FROM tab0 AS cor0
----
117
169
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT col1 + - CAST( - col0 AS SIGNED ) col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2118
SELECT col1 + - CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
138
65
90

query I rowsort
SELECT 85 + + col2 AS col1 FROM tab2
----
108
125
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT col0 * - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT col0 * - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT ALL col1 AS col2, + col2 + + col2 FROM tab2
----
51
46
67
116
77
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - 94 + - col1 + 56 + 0 + - + 84 / 19 * - + CAST( + - 2 AS SIGNED ) * - - col1 col1 FROM tab2 WHERE ( 10 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT - 94 + - col1 + 56 + 0 + - + 84 / 19 * - + CAST ( + - 2 AS INTEGER ) * - - col1 col1 FROM tab2 WHERE ( 10 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT 4 + + 44 - + + MIN( + col0 ) AS col1 FROM tab0 WHERE NULL IN ( col1, col2, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT 4 + + 44 - + + MIN ( + col0 ) AS col1 FROM tab0 WHERE NULL IN ( col1, col2, - col1 )
----
NULL

query II rowsort
SELECT DISTINCT 93, - 46 AS col1 FROM tab0 AS cor0
----
93
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + - COUNT( * ) + 20 + + MIN( ALL - col0 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-2127
SELECT + - COUNT ( * ) + 20 + + MIN ( ALL - col0 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-208

query I rowsort
SELECT - + col2 * - + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT - 55 AS col0 FROM tab0 AS cor0 WHERE col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT DISTINCT - CAST( NULL AS SIGNED ) + SUM( + 51 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + SUM ( + 51 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - + COUNT( * ) FROM tab1 WHERE 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE 41 IS NULL
----
0

query I rowsort
SELECT + - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL 96 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * - + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL - - col1 * + + 68 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + COUNT( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2137
SELECT + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * + 29 AS col2 FROM tab0 AS cor0
----
1363
2871
290

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 79 * 45 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 67 DIV - 27 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2141
SELECT 67 / - 27 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col1 * col0 * col0 AS col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT NULL > + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( - col2, col0 + + ( col0 ), + - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL MAX ( + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT - 35 col0, COUNT( * ) AS col0 FROM tab1
----
-35
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2146
SELECT - 35 col0, COUNT ( * ) AS col0 FROM tab1
----
-35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * + 6 FROM tab2 cor0
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT - + SUM( + 37 ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - + SUM ( + 37 ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN - 59 AND + 26 * + col0 + - - col2
----
14
47
5

query I rowsort
SELECT 89 * + col2 FROM tab2 cor0
----
2047
3560
5162

query I rowsort
SELECT ALL - + ( - 34 ) FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + 63 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT 13 + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 13 + COUNT ( * ) FROM tab2
----
16

query III rowsort
SELECT * FROM tab1 WHERE NOT - 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 75
----

query I rowsort
SELECT - col0 + - col0 + 47 FROM tab1 cor0
----
-123
-135
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + SUM( - 21 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + SUM ( - 21 ) FROM tab1 AS cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 12 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL col1 + - col2 + + col0 + + col2 - - col2 FROM tab2
----
120
181
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 - + col1 + - col0 col1 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - col1 + col2 * 14 AS col1 FROM tab0 WHERE + - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 59 / + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT 18 + + 9 FROM tab0
----
27

query II rowsort
SELECT + col2 AS col0, col0 * - col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT ALL + col1 * col1 * - - 31 AS col2 FROM tab0 AS cor0
----
13671
203391
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - COUNT( * ) * - SUM( ALL + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col0 ) + - + col0 col2 FROM tab2 AS cor0 WHERE NOT col1 * 23 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT col1 DIV - 73 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT col1 / - 73 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 66 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( 90 ) FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT SUM( - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2181
SELECT SUM ( - col1 ) col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + MIN( col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT - 35 DIV col2 AS col0 FROM tab0 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 35 / col2 AS col0 FROM tab0 cor0
----
-3
0

query I rowsort
SELECT DISTINCT - + 47 + col2 AS col0 FROM tab1 AS cor0
----
12
21
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 60 - - col0 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT 58 + 77 + + 1 * + - COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 58 + 77 + + 1 * + - COUNT ( * ) FROM tab0
----
132

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( + col0 ) + + 89 < NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE + col2 * col0 NOT BETWEEN + 12 AND - col1
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2189
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2189
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT - 36 - - ( - col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - ( + - col0 ) + + 33 AS col0 FROM tab1 AS cor0
----
118
124
84

query I rowsort
SELECT 44 + + + col2 + - - col1 FROM tab1
----
108
154
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + 77 + MAX( ALL col1 ) FROM tab2
----
154

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 77 + MAX ( ALL col1 ) FROM tab2
----
154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + 97 * - - col0
----

query II rowsort
SELECT ALL col0 - - + 11, + col0 AS col2 FROM tab0
----
108
97
26
15
98
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + - 23 AS col0 FROM tab2
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL - CAST( NULL AS SIGNED ) + 16 / + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - CAST ( NULL AS INTEGER ) + 16 / + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 69 + col2 FROM tab0
----
3290
6930
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - + 10 AS col2, col2 col2 FROM tab2
----
-56
23
-74
40
-85
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2204
SELECT CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab0 WHERE + col2 <> - col2 + - + col0 / + - col1
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2204
SELECT CAST ( NULL AS REAL ) AS col1, col1 FROM tab0 WHERE + col2 <> - col2 + - + col0 / + - col1
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + COUNT( * ) + + ( + - ( + MAX( - col1 ) ) ) + + - 53 * COUNT( * ) * - COUNT( * ) FROM tab2
----
531

skipif mysql # not compatible
query I rowsort label-2205
SELECT + COUNT ( * ) + + ( + - ( + MAX ( - col1 ) ) ) + + - 53 * COUNT ( * ) * - COUNT ( * ) FROM tab2
----
531

query I rowsort
SELECT DISTINCT - 21 * + + col1 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + ( - 98 ) AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT 55 AS col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT - 65 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT + col1 * - col0 * - 4 AS col2 FROM tab1 AS cor0
----
1700
17108
2856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 col2, + col1 - col0 AS col1, - - col0 FROM tab2 AS cor0
----
9 values hashing to 1e3f6dc3dffcfdb1d2928f44b2fcffbf

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2213
SELECT - SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 3 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153
-255
-273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2215
SELECT - + col2 AS col1, CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-2215
SELECT - + col2 AS col1, CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - COUNT( * ) * - 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - COUNT ( * ) * - 67 FROM tab2 AS cor0
----
201

query I rowsort
SELECT ALL + - ( - 43 ) FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT 3 * + + col0 * - 43 AS col2 FROM tab0
----
-11223
-12513
-1935

query I rowsort
SELECT DISTINCT + 35 * - - col1 * - 33 FROM tab2
----
-58905
-77385
-88935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + col2 col1 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + 55 * - ( COUNT( * ) ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 55 * - ( COUNT ( * ) ) FROM tab0
----
-165

query I rowsort
SELECT 81 * + - col0 AS col2 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT - + 54 DIV - col2 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - + 54 / - col2 AS col1 FROM tab2 AS cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 / - + 9 IS NULL
----

query I rowsort
SELECT ALL - col2 + + col1 + + col0 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT + - CAST( - ( col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2226
SELECT + - CAST ( - ( col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab2 cor0
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - ( - 29 ) AND col0 / + ( + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - ( - 29 ) AND col0 / + ( + + 54 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT DISTINCT - 93 DIV col2 DIV - + 94 * col0 + - 48 col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT DISTINCT - 93 / col2 / - + 94 * col0 + - 48 col2 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2231
SELECT ALL - col1 * + col2 AS col2, - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-2231
SELECT ALL - col1 * + col2 AS col2, - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT DISTINCT + - col0 DIV + 91 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + - col0 / + 91 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2233
SELECT DISTINCT - col0 DIV col1 AS col2, + col1 FROM tab0 AS cor0
----
-4
21
-97
1
0
81

skipif mysql # not compatible
query II rowsort label-2233
SELECT DISTINCT - col0 / col1 AS col2, + col1 FROM tab0 AS cor0
----
-4
21
-97
1
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * + - col2 + + col1 col1 FROM tab1 AS cor0
----
3899
4535
6350

query I rowsort
SELECT ALL - 70 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

query II rowsort
SELECT ALL - 75 + + - 6 AS col2, col0 FROM tab0 AS cor0
----
-81
15
-81
87
-81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE col2 * + col1 * + col1 + + + ( + 17 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE col2 * + col1 * + col1 + + + ( + 17 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL 40 + + COUNT( * ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL 40 + + COUNT ( * ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT COUNT( * ) - COUNT( ALL + 30 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2240
SELECT COUNT ( * ) - COUNT ( ALL + 30 ) FROM tab2
----
0

query I rowsort
SELECT ALL ( - 79 ) - - ( - + col2 ) FROM tab2
----
-102
-119
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 55 col2 FROM tab2 AS cor0
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 9 >= 6 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( 28 ) > NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2247
SELECT MIN ( + col0 ) FROM tab2
----
46

query I rowsort
SELECT ALL - 7 - - col2 AS col0 FROM tab2
----
16
33
51

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 44 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( 21 ) IS NULL
----

query I rowsort
SELECT ALL + 47 * 56 + + col2 FROM tab1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 IN ( col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * col0 + ( + 15 - col0 * col2 ) * + col0 AS col0 FROM tab0 WHERE 71 IS NOT NULL
----
-11055
-75255
-939639

query I rowsort
SELECT DISTINCT - col0 + - 33 * 9 FROM tab0
----
-312
-384
-394

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( - 89 + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT COUNT( * ) - 86 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-2256
SELECT COUNT ( * ) - 86 FROM tab2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT - col1 - col1 DIV col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2257
SELECT - col1 - col1 / col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT 68 * col1 + CAST( col0 + - col2 AS SIGNED ) AS col2 FROM tab1
----
3219
366
907

skipif mysql # not compatible
query I rowsort label-2258
SELECT 68 * col1 + CAST ( col0 + - col2 AS INTEGER ) AS col2 FROM tab1
----
3219
366
907

query I rowsort
SELECT 19 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT ALL col2 * + 85 FROM tab1
----
5015
5780
8160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2261
SELECT col0 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT col0 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL ( MIN( ALL col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL ( MIN ( ALL col1 ) ) FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2263
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + CAST( col2 AS SIGNED ) * - col0 AND + 12 / + col0
----

skipif mysql # not compatible
query III rowsort label-2263
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + CAST ( col2 AS INTEGER ) * - col0 AND + 12 / + col0
----

query I rowsort
SELECT ALL 83 FROM tab2 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 < ( + ( 19 ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL MAX( ALL 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL MAX ( ALL 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - SUM( DISTINCT + 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - SUM ( DISTINCT + 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL - col2 + col1 * + 91 AS col2 FROM tab0 AS cor0
----
-8
1901
7324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT CAST( ( - col1 ) AS SIGNED ) * col2 + + 4 AS col2 FROM tab1 AS cor0
----
-1340
-291
-3192

skipif mysql # not compatible
query I rowsort label-2269
SELECT CAST ( ( - col1 ) AS INTEGER ) * col2 + + 4 AS col2 FROM tab1 AS cor0
----
-1340
-291
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / - col2 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( * ) * SUM( DISTINCT col1 ) - 5 col2 FROM tab2 AS cor0 WHERE ( - 85 + 63 ) IS NOT NULL
----
580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT COUNT ( * ) * SUM ( DISTINCT col1 ) - 5 col2 FROM tab2 AS cor0 WHERE ( - 85 + 63 ) IS NOT NULL
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT + + ( + 76 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + + ( + 76 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT + - 25 * - col0 - + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT + - 25 * - col0 - + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT + CAST( NULL AS SIGNED ) - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT + CAST ( NULL AS INTEGER ) - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) - + 34 AS col1 FROM tab0 AS cor0
----
-115
-35
-55

query I rowsort
SELECT 22 - + 49 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + + col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT DISTINCT 7 + - col1 * + 59 AS col1 FROM tab1 AS cor0
----
-2766
-288
-819

query I rowsort
SELECT + - col0 + - 23 AS col0 FROM tab0 AS cor0
----
-110
-120
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2282
SELECT CAST( NULL AS DECIMAL ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT CAST ( NULL AS REAL ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT ( ( MIN( ALL - col1 ) ) ) * - 43 + - 99 FROM tab1
----
1922

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT ( ( MIN ( ALL - col1 ) ) ) * - 43 + - 99 FROM tab1
----
1922

query I rowsort
SELECT ALL 4 + + 69 + - 38 AS col0 FROM tab0
----
35
35
35

query I rowsort
SELECT - 99 + + col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 49 - - col0 FROM tab1
----
100
134
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT - ( - - col1 ) + + ( col0 ) DIV - 73 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - ( - - col1 ) + + ( col0 ) / - 73 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT DISTINCT col0 * - - col2 - - col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT + 38 AS col0 FROM tab0 WHERE col0 / - col1 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL IN ( + 53 / + col0 + + col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( 99 / 96 ) NOT IN ( col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - COUNT( * ) * + COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 * 23 - col0 ) > + ( + col0 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT + + ( CAST( NULL AS SIGNED ) ) + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2294
SELECT + + ( CAST ( NULL AS INTEGER ) ) + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT 76 IS NULL
----
14
47
5

query I rowsort
SELECT 56 + - 38 FROM tab0 WHERE NOT + 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 * - 14 + + 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-793

query II rowsort
SELECT DISTINCT + col1, + col1 + 81 AS col0 FROM tab1 AS cor0
----
14
95
47
128
5
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 / - col1 col1 FROM tab1 AS cor0 WHERE NOT col2 * 68 * + 22 NOT BETWEEN ( 29 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + col2 IN ( - col2 - - 57 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - ( 67 ) FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + 91 * + + col1 AS col1 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT - ( + + 60 ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 25 * + col2 )
----

query II rowsort
SELECT ALL col1, 30 FROM tab2 AS cor0
----
51
30
67
30
77
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + 34 * col1 < + ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2308
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + 34 * col1 < + ( - col0 )
----
3

query I rowsort
SELECT ALL - 53 / + col1 + 6 AS col1 FROM tab1 cor0 WHERE ( col2 ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2310
SELECT 84 + + - CAST( NULL AS DECIMAL ) + + AVG ( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT 84 + + - CAST ( NULL AS REAL ) + + AVG ( col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 53 - + CAST( col0 AS SIGNED ) + col0 / - 56 BETWEEN col0 AND NULL
----
87
97

skipif mysql # not compatible
query I rowsort label-2312
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 53 - + CAST ( col0 AS INTEGER ) + col0 / - 56 BETWEEN col0 AND NULL
----
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT DISTINCT - SUM( + + col2 ), - COUNT( * ) AS col2 FROM tab2
----
-121
-3

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT - SUM ( + + col2 ), - COUNT ( * ) AS col2 FROM tab2
----
-121
-3

query I rowsort
SELECT ALL col0 + 60 + - - col1 AS col0 FROM tab0
----
156
158
168

query I rowsort
SELECT ALL + 40 + + - col0 * - ( 29 ) FROM tab2
----
1374
1896
2215

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 93 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + CAST( - + col2 AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + CAST ( - + col2 AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 - + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - ( + col0 ) FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 13 ) BETWEEN NULL AND - col1 * col1 + + 11
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + MAX( - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2322
SELECT + MAX ( - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - COUNT( * ) * + - SUM( 40 ) AS col1 FROM tab2
----
360

skipif mysql # not compatible
query I rowsort label-2323
SELECT - COUNT ( * ) * + - SUM ( 40 ) AS col1 FROM tab2
----
360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( ( + ( 54 ) ) + col0 )
----

query I rowsort
SELECT 70 * + col2 FROM tab1 AS cor0
----
4130
4760
6720

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + col1 * + + col2 * - col2 DIV - col2 + - - col0 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2327
SELECT + col1 * + + col2 * - col2 / - col2 + - - col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE 7 IS NULL
----

query I rowsort
SELECT - 51 * col2 + - 43 FROM tab0 AS cor0
----
-2440
-5092
-553

query I rowsort
SELECT DISTINCT col0 * + - ( - 51 ) FROM tab2 AS cor0
----
2346
3264
3825

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 >= NULL
----

query I rowsort
SELECT ALL - + col1 * - 95 AS col2 FROM tab1 AS cor0
----
1330
4465
475

query I rowsort
SELECT DISTINCT col0 * + 19 AS col2 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT 28 * + 43 AS col1 FROM tab1 cor0
----
1204
1204
1204

query I rowsort
SELECT DISTINCT col2 * - 69 FROM tab0 cor0
----
-3243
-6831
-690

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 3 < + + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - 10
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - 10
----
0

query I rowsort
SELECT ALL - - 24 + col2 FROM tab2 AS cor0
----
47
64
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2339
SELECT ALL 66 FROM tab2 AS cor0 WHERE NOT - CAST( ( + col2 ) AS DECIMAL ) < - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 66 FROM tab2 AS cor0 WHERE NOT - CAST ( ( + col2 ) AS REAL ) < - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 * col1 * + + col0 * 49 FROM tab1
----
104125
489804
9849931

query II rowsort
SELECT - col2 AS col0, 71 AS col2 FROM tab0
----
-10
71
-47
71
-99
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT DISTINCT 19 DIV + 24 * col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT 19 / + 24 * col0 FROM tab0
----
0

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab1
----
-51
-51
-85
-85
-91
-91

query II rowsort
SELECT ALL col2, col0 + - - col2 * - 68 FROM tab2
----
23
-1518
40
-2656
58
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 col0, - col0 * + col2 col1 FROM tab0 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
1
-705
1
-870
1
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col2 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----
0

query I rowsort
SELECT + 85 * - col2 AS col1 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT ALL + - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( + col1 + + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * + - col1 >= NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + + - 85 * - col2 ) < ( col0 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + ( - MIN( + - col0 ) ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2356
SELECT + ( - MIN ( + - col0 ) ) col2 FROM tab1 AS cor0
----
91

query II rowsort
SELECT ( ( + col1 ) ), 88 FROM tab1
----
14
88
47
88
5
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - + col2 * + 92 / + - col1 + col2 > ( + 57 )
----
97
1
99

query II rowsort
SELECT ALL - col2 AS col2, - ( 91 ) + - 26 AS col0 FROM tab2
----
-23
-117
-40
-117
-58
-117

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 >= + + col1
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2362
SELECT col2 AS col2, 25 + + col0 + + - col2 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
10
102
47
-7
99
23

skipif mysql # not compatible
query II rowsort label-2362
SELECT col2 AS col2, 25 + + col0 + + - col2 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
10
102
47
-7
99
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL col0 + CAST( NULL AS SIGNED ) / col0 * + col2 - - 4 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / col0 * + col2 - - 4 + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col0 FROM tab1
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 42 > NULL
----

query II rowsort
SELECT ALL col0, + col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + - ( ( ( + - MIN( 33 ) ) ) ) AS col2 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + - ( ( ( + - MIN ( 33 ) ) ) ) AS col2 FROM tab2 cor0
----
33

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 * + col1 + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT + - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT COUNT( * ) + ( + - SUM( 63 ) ) col2 FROM tab1
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2372
SELECT DISTINCT COUNT ( * ) + ( + - SUM ( 63 ) ) col2 FROM tab1
----
-186

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT 71 * - + MAX( ALL - col2 ) FROM tab1
----
4189

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 71 * - + MAX ( ALL - col2 ) FROM tab1
----
4189

query I rowsort
SELECT ALL + 18 * - - 46 FROM tab0
----
828
828
828

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 16 FROM tab0 cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - - 9 * + + COUNT( + - col1 ) - + COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2378
SELECT - - 9 * + + COUNT ( + - col1 ) - + COUNT ( * ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 * - + col0
----

query I rowsort
SELECT ALL - 4 FROM tab1 cor0 WHERE NOT col1 + - - 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 * - col0 AS col0, + col2 * - - col0 * col1 + + 85 col0 FROM tab2 cor0
----
-2392
54043
-3328
197205
-3900
291535

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2383
SELECT ALL CAST( col2 AS SIGNED ) col1, 9 AS col0 FROM tab0 AS cor0
----
10
9
47
9
99
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2383
SELECT ALL CAST ( col2 AS INTEGER ) col1, 9 AS col0 FROM tab0 AS cor0
----
10
9
47
9
99
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2384
SELECT + - col2 * + col0 AS col1, col1 * + col1 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

skipif mysql # not compatible
query II rowsort label-2384
SELECT + - col2 * + col0 AS col1, col1 * + col1 + - + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - + col1 + col0 + 52 * + col0, + col0 / col0 / 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT - + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - + col1 / + col0 AS col2 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL ) > ( + col1 ) ) )
----

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col0 BETWEEN + col0 AND NULL
----
-59
59
-68
68
-96
96

query II rowsort
SELECT ALL - 2 AS col0, col0 FROM tab0
----
-2
15
-2
87
-2
97

query I rowsort
SELECT ALL + ( - col1 ) * + + 17 * + + col2 + 89 FROM tab0 AS cor0
----
-1594
-3481
-64630

query I rowsort
SELECT DISTINCT - - 95 + - 88 + col1 FROM tab1 AS cor0
----
12
21
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - 44 + + - 22 + + 3 col1, col0 AS col0 FROM tab2 AS cor0
----
100
75
71
46
89
64

query I rowsort
SELECT + 99 * - - col2 + col1 + + col1 AS col1 FROM tab1 cor0
----
5851
6826
9532

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT + 80 DIV col2 FROM tab1 AS cor0 WHERE 0 >= + - col2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 80 / col2 FROM tab1 AS cor0 WHERE 0 >= + - col2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + COUNT( * ) col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2395
SELECT + COUNT ( * ) col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - 94 + + 26 AS col2 FROM tab2 AS cor0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col0 + + col0, 81 + 8 AS col1 FROM tab0
----
174
89
194
89
30
89

query I rowsort
SELECT DISTINCT + 44 + col1 FROM tab1
----
49
58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT 45 * - col1 DIV - + col1 AS col2 FROM tab1
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2400
SELECT 45 * - col1 / - + col1 AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT - ( + ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 14 * + - col0 AS col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ( + ( - MIN( col1 ) ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2403
SELECT ( + ( - MIN ( col1 ) ) ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + + col2 * + col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col2 * - - 92 AS col2 FROM tab0 cor0
----
4324
9108
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT - - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 24 * - + col0 FROM tab0 AS cor0
----
2088
2328
360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / - col1 - - - col1 IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( 89 ) IS NOT NULL
----

query I rowsort
SELECT 46 + + col1 * 72 - + + 70 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3648
4800
5520

query II rowsort
SELECT DISTINCT + - col0, col0 * - col2 - + + col2 * 23 AS col1 FROM tab1 AS cor0
----
-51
-7104
-85
-6372
-91
-7752

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT SUM( - col2 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT SUM ( - col2 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2414
SELECT - COUNT( * ) DIV 33 col0, MIN( DISTINCT + col0 ) FROM tab0
----
0
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2414
SELECT - COUNT ( * ) / 33 col0, MIN ( DISTINCT + col0 ) FROM tab0
----
0
15

query II rowsort
SELECT - ( - ( - - 79 ) ) * - 15 AS col1, + ( - + col2 ) FROM tab2
----
-1185
-23
-1185
-40
-1185
-58

query I rowsort
SELECT ALL 27 * + - col1 AS col2 FROM tab0
----
-2187
-27
-567

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 NOT IN ( - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) * + 99 + + - ( - 49 ) > - 55 * - + 70
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT - 39 * - COUNT( * ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - 39 * - COUNT ( * ) FROM tab2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT - - 92 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2420
SELECT - - 92 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( 82 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT col0 DIV 85 DIV col0 + 92 + - col2 DIV - col0 AS col0, - 42 + col2 FROM tab0
----
92
-32
93
57
95
5

skipif mysql # not compatible
query II rowsort label-2423
SELECT col0 / 85 / col0 + 92 + - col2 / - col0 AS col0, - 42 + col2 FROM tab0
----
92
-32
93
57
95
5

query I rowsort
SELECT ALL 12 + - 44 - 46 AS col1 FROM tab1
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT - CAST( + 73 AS SIGNED ) + + col1 FROM tab1
----
-26
-59
-68

skipif mysql # not compatible
query I rowsort label-2425
SELECT - CAST ( + 73 AS INTEGER ) + + col1 FROM tab1
----
-26
-59
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT ALL COUNT( * ) AS col1, 1 AS col0 FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-2426
SELECT ALL COUNT ( * ) AS col1, 1 AS col0 FROM tab0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL + COUNT( * ) - + + 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + COUNT ( * ) - + + 42 FROM tab0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 > + col1 * + + col2 - - - col1 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + ( - 85 ) ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT + COUNT( * ) - 78 * + SUM( DISTINCT - col1 ) FROM tab2
----
15213

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + COUNT ( * ) - 78 * + SUM ( DISTINCT - col1 ) FROM tab2
----
15213

query I rowsort
SELECT DISTINCT + - 12 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 74 FROM tab2 AS cor0 WHERE NOT col1 * + col0 * + col0 * col1 * + + 22 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * ( - 66 ) + - + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 16 FROM tab2 cor0
----
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2437
SELECT 9 DIV - 47 AS col2, 31 AS col1 FROM tab2 cor0
----
0
31
0
31
0
31

skipif mysql # not compatible
query II rowsort label-2437
SELECT 9 / - 47 AS col2, 31 AS col1 FROM tab2 cor0
----
0
31
0
31
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - - ( - - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - ( - - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 6 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 6 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col2 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ( - MIN( DISTINCT - - col2 ) ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT ( - MIN ( DISTINCT - - col2 ) ) col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT MIN( ALL + - 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT MIN ( ALL + - 41 ) AS col1 FROM tab2
----
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT SUM( - 55 ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
-165

skipif mysql # not compatible
query I rowsort label-2446
SELECT SUM ( - 55 ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL - COUNT( * ) col2, + 95 AS col0 FROM tab1 AS cor0
----
-3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2447
SELECT ALL - COUNT ( * ) col2, + 95 AS col0 FROM tab1 AS cor0
----
-3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - ( - SUM( col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2448
SELECT - ( - SUM ( col0 ) ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL MAX( + + col2 ) FROM tab2 AS cor0 WHERE + col0 + + ( 75 ) - col2 + + + col1 >= + col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL MAX ( + + col2 ) FROM tab2 AS cor0 WHERE + col0 + + ( 75 ) - col2 + + + col1 >= + col0 * col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 66 - - col1 + + 65 * - ( 42 ) + + 19 - ( + col0 ) * + 49 FROM tab1 AS cor0
----
-5079
-6720
-6966

query II rowsort
SELECT - col1 AS col1, + 36 AS col0 FROM tab0 AS cor0
----
-1
36
-21
36
-81
36

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 13 / + col2 <> 5
----

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT * FROM tab2 WHERE + - col2 IN ( col2 * - 39 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2455
SELECT 43 + + COUNT( DISTINCT + + 29 ) * - - 50 DIV + 2 AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-2455
SELECT 43 + + COUNT ( DISTINCT + + 29 ) * - - 50 / + 2 AS col2 FROM tab2
----
68

query I rowsort
SELECT col2 + + - 73 FROM tab0 AS cor0
----
-26
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col1 FROM tab1 AS cor0 WHERE ( + col0 * - col2 IS NOT NULL )
----
-18
-18
-18

query II rowsort
SELECT + col0 + col1 AS col2, - col0 AS col2 FROM tab2 cor0
----
141
-64
142
-75
97
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT - SUM( + - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT - 8 ) * - 62 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT - 8 ) * - 62 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2460
SELECT + + CAST( - col0 AS SIGNED ) DIV + col0 + - col1 AS col2, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2
99
-22
210
-82
3807

skipif mysql # not compatible
query II rowsort label-2460
SELECT + + CAST ( - col0 AS INTEGER ) / + col0 + - col1 AS col2, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2
99
-22
210
-82
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col2, - 8 + - 87 col2 FROM tab1 AS cor0 WHERE NOT 84 + col0 * + col2 IS NULL
----
-59
-95
-68
-95
-96
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT - + col2 DIV - - col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + col2 / - - col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT ALL CAST( + - 21 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL CAST ( + - 21 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + COUNT( * ) + - MAX( ALL + + 32 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + COUNT ( * ) + - MAX ( ALL + + 32 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT 18 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - - 15 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND + ( - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT + COUNT( * ) + + + 74 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + COUNT ( * ) + + + 74 FROM tab1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 + + col2 col0 FROM tab0
----
107
109
295

query I rowsort
SELECT col1 * - + ( + col2 ) - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL MIN( ALL + 92 ) * - - COUNT( * ) + - COUNT( * ) + COUNT( * ) * + 94 * 86 FROM tab2
----
24525

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL MIN ( ALL + 92 ) * - - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * + 94 * 86 FROM tab2
----
24525

query I rowsort
SELECT - col0 FROM tab0 WHERE 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 53 * + MIN( + - 41 ) + ( - + 24 ) col1 FROM tab2 AS cor0
----
-2197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2473
SELECT + 53 * + MIN ( + - 41 ) + ( - + 24 ) col1 FROM tab2 AS cor0
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT COUNT( * ) - - 72 + + COUNT( * ) FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT COUNT ( * ) - - 72 + + COUNT ( * ) FROM tab2 cor0
----
78

query I rowsort
SELECT DISTINCT + col2 * + + col0 + - 20 AS col0 FROM tab0 cor0
----
685
850
9583

query I rowsort
SELECT DISTINCT 88 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 * - + CAST( + col1 AS SIGNED ) * - 17 * + 19 * - col0 + - 92 / - col1 * - + col0 BETWEEN - 56 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 * - + CAST ( + col1 AS INTEGER ) * - 17 * + 19 * - col0 + - 92 / - col1 * - + col0 BETWEEN - 56 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL + ( - COUNT( - CAST( 35 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + ( - COUNT ( - CAST ( 35 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 + - - 96 AS col1 FROM tab2 AS cor0
----
1269
3176
3982

query II rowsort
SELECT + col2, col1 + + ( - col1 ) FROM tab2 AS cor0
----
23
0
40
0
58
0

query II rowsort
SELECT ALL + col0, 39 AS col1 FROM tab0 AS cor0
----
15
39
87
39
97
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + 79 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + MIN( - 61 ) col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT DISTINCT + MIN ( - 61 ) col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT ( + 65 ) FROM tab1
----
65
65
65

query I rowsort
SELECT 86 FROM tab0 WHERE NOT col2 / col1 + - 96 * col2 + - col2 + 8 + + col0 >= + col0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT MIN( + + ( 91 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2487
SELECT MIN ( + + ( 91 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2488
SELECT COUNT( * ) DIV - 1, + COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2488
SELECT COUNT ( * ) / - 1, + COUNT ( * ) AS col2 FROM tab0
----
-3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2489
SELECT col0 DIV - - col0 AS col1, col1 + + 59 FROM tab0
----
1
140
1
60
1
80

skipif mysql # not compatible
query II rowsort label-2489
SELECT col0 / - - col0 AS col1, col1 + + 59 FROM tab0
----
1
140
1
60
1
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL 5 DIV - + 19 * - 91 - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 5 / - + 19 * - 91 - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 28 col1 FROM tab1
----
1316
140
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT - 13 DIV COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2492
SELECT - 13 / COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT ( - 98 ) AS col2 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2495
SELECT - CAST( + 18 AS SIGNED ), col2 - + - col0 + 23 AS col2 FROM tab0
----
-18
120
-18
219
-18
85

skipif mysql # not compatible
query II rowsort label-2495
SELECT - CAST ( + 18 AS INTEGER ), col2 - + - col0 + 23 AS col2 FROM tab0
----
-18
120
-18
219
-18
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT - 88 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT - 88 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 71 ) col0 FROM tab0 cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + + 20 FROM tab0 cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT + col1 + + col0 DIV col0 col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2501
SELECT + col1 + + col0 / col0 col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col1 * 31 + col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-1604
-2094
-2411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2504
SELECT CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + 0 FROM tab2 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT COUNT( * ) + + ( - 79 ) FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2507
SELECT COUNT ( * ) + + ( - 79 ) FROM tab2 cor0
----
-76

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 6 = 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 + + - col2 - col2 col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col2 + + col0 - 64 + + ( + 6 ) FROM tab0
----
138
39
4

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( - 80 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 22 FROM tab2, tab1 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT + col0 DIV - col1 - - col1 FROM tab1 cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + col0 / - col1 - - col1 FROM tab1 cor0
----
-12
11
46

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + + MAX( ( - 21 ) ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + + MAX ( ( - 21 ) ) FROM tab0 cor0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2516
SELECT ALL - 19 / col1 * + + CAST( NULL AS DECIMAL ) * - col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - 19 / col1 * + + CAST ( NULL AS REAL ) * - col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT COUNT( - - col0 ) AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2518
SELECT COUNT ( - - col0 ) AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + MIN( + - 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-2519
SELECT + MIN ( + - 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2520
SELECT ALL - AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - AVG ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 32 * + 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to edf385a3df64b15ca096a627e886a624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - MIN( - + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2523
SELECT - MIN ( - + col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - - 37 FROM tab1 AS cor0 WHERE 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT + - 44 * + CAST( NULL AS SIGNED ) * - 13 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT + - 44 * + CAST ( NULL AS INTEGER ) * - 13 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT MIN( ALL - 25 ) AS col2 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2526
SELECT MIN ( ALL - 25 ) AS col2 FROM tab2 cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, + 28 col2 FROM tab2 cor0
----
-46
28
-64
28
-75
28

query I rowsort
SELECT - 23 * + col0 * + col2 FROM tab2
----
-100050
-24334
-58880

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT + 19 <= + col1
----
-1

query II rowsort
SELECT ALL 7, col1 + + 31 + + 71 * - col0 + + col2 AS col0 FROM tab1
----
7
-3480
7
-5940
7
-6315

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT DISTINCT COUNT( * ) AS col2, MAX( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-2531
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
3
-46

query II rowsort
SELECT ALL - - 93 AS col0, - col1 + col2 FROM tab0 AS cor0
----
93
-11
93
-34
93
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + - + col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query II rowsort
SELECT + 44 + + 94, 35 AS col2 FROM tab1 AS cor0
----
138
35
138
35
138
35

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < 0
----

query I rowsort
SELECT + 49 + + col2 AS col0 FROM tab1 cor0
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL MIN ( col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE col2 + + + col2 IS NULL
----

query I rowsort
SELECT col1 - - ( - col1 ) * - - col2 + + + 82 AS col2 FROM tab2
----
-1040
-2921
-3737

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT COUNT( DISTINCT - + col1 ) - - 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2543
SELECT COUNT ( DISTINCT - + col1 ) - - 70 FROM tab1
----
73

query I rowsort
SELECT ALL col1 - - - col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-2545
SELECT - col2 DIV + col2 - + - col0, - col0 AS col1 FROM tab0
----
14
-15
86
-87
96
-97

skipif mysql # not compatible
query II rowsort label-2545
SELECT - col2 / + col2 - + - col0, - col0 AS col1 FROM tab0
----
14
-15
86
-87
96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - col2 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT col2 - - + 15 FROM tab0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL col1 * - 40 * - 45 * + col2 AS col0 FROM tab2
----
2111400
5544000
6994800

query I rowsort
SELECT DISTINCT - 10 * + ( - + 35 ) AS col1 FROM tab2 AS cor0
----
350

query II rowsort
SELECT ALL - 52 * + - ( - + 43 ), col0 * + + 23 AS col2 FROM tab1 AS cor0
----
-2236
1173
-2236
1955
-2236
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + 37 * ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 37 * ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1 WHERE NOT NULL BETWEEN - - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1 WHERE NOT NULL BETWEEN - - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT + 1 DIV + col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 1 / + col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT - COUNT( * ) * 10 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - COUNT ( * ) * 10 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) * - + 21 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) * - + 21 FROM tab0 cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 65
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT DISTINCT + COUNT( * ) DIV - 9 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + COUNT ( * ) / - 9 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT - COUNT( * ) AS col1, 93 col0 FROM tab2
----
-3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2560
SELECT - COUNT ( * ) AS col1, 93 col0 FROM tab2
----
-3
93

query I rowsort
SELECT ( + col0 ) * + 95 AS col2 FROM tab0
----
1425
8265
9215

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2562
SELECT ALL * FROM tab1 WHERE ( - col2 * col2 * + CAST( NULL AS DECIMAL ) / col0 - col1 + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2562
SELECT ALL * FROM tab1 WHERE ( - col2 * col2 * + CAST ( NULL AS REAL ) / col0 - col1 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 + + - 72 FROM tab0
----
-19

query I rowsort
SELECT DISTINCT ( 29 ) * col1 * + col0 FROM tab2
----
142912
145725
68034

query II rowsort
SELECT + 2 + - ( + col1 ), + col2 AS col2 FROM tab0
----
-19
10
-79
47
1
99

query I rowsort
SELECT ALL - col2 + ( col0 ) + - col1 + 13 FROM tab0
----
-100
10
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2567
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT col0 + - + col1, col1 + + - 11 AS col1 FROM tab2
----
-13
66
-5
40
8
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT - + col1 + - col1 - col1 / + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT - + col1 + - col1 - col1 / + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 + - - col1 col2, + ( - + 38 ) * - col1 + + 91 * - col0 FROM tab0 AS cor0
----
-11
-7119
-31
-8789
49
1713

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT + + col0 DIV + + col1 - 63 + - col0 FROM tab2 cor0 WHERE ( NOT + + col1 IS NULL )
----
-109
-127
-137

skipif mysql # not compatible
query I rowsort label-2571
SELECT + + col0 / + + col1 - 63 + - col0 FROM tab2 cor0 WHERE ( NOT + + col1 IS NULL )
----
-109
-127
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT DISTINCT 3 + - + CAST( - - col1 AS SIGNED ) * - - col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-2343
NULL
-4925
NULL
-5022
NULL

skipif mysql # not compatible
query II rowsort label-2572
SELECT DISTINCT 3 + - + CAST ( - - col1 AS INTEGER ) * - - col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-2343
NULL
-4925
NULL
-5022
NULL

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL ( + col0 ) + + + 7 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT COUNT( * ) * SUM( ALL 45 ) col1 FROM tab2
----
405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2576
SELECT COUNT ( * ) * SUM ( ALL 45 ) col1 FROM tab2
----
405

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2578
SELECT * FROM tab2 WHERE NOT col0 * - - CAST( - col2 AS SIGNED ) BETWEEN - col1 AND col1 + - CAST( NULL AS SIGNED ) * - col2 + + col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2578
SELECT * FROM tab2 WHERE NOT col0 * - - CAST ( - col2 AS INTEGER ) BETWEEN - col1 AND col1 + - CAST ( NULL AS INTEGER ) * - col2 + + col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 * + - 2 AS col2, col1 + + + col2 + - col0 FROM tab1
----
-118
-21
-136
24
-192
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL - - CAST( + ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT ALL - COUNT( 29 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2581
SELECT ALL - COUNT ( 29 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT SUM( DISTINCT - - 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT SUM ( DISTINCT - - 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL CAST( NULL AS SIGNED ) * - - 41 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL CAST ( NULL AS INTEGER ) * - - 41 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT + col2 * col2 * CAST( 39 AS SIGNED ) * + - col0 FROM tab1 AS cor0
----
-11539515
-16410576
-18330624

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + col2 * col2 * CAST ( 39 AS INTEGER ) * + - col0 FROM tab1 AS cor0
----
-11539515
-16410576
-18330624

query II rowsort
SELECT DISTINCT - + 99 AS col1, + 95 AS col2 FROM tab0 AS cor0
----
-99
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT DISTINCT - - COUNT( DISTINCT - col2 ) DIV - + 52 + + MIN( - col1 ) + - + MIN( ALL + - col1 ) * - COUNT( * ) + - + 53 FROM tab2 cor0
----
-361

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - - COUNT ( DISTINCT - col2 ) / - + 52 + + MIN ( - col1 ) + - + MIN ( ALL + - col1 ) * - COUNT ( * ) + - + 53 FROM tab2 cor0
----
-361

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + COUNT( + - 84 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + COUNT ( + - 84 ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - 29 + ( + col2 ) FROM tab0
----
-19
18
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL COUNT( * ) * - + 64 * - 11 FROM tab2
----
2112

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL COUNT ( * ) * - + 64 * - 11 FROM tab2
----
2112

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN + col2 * + col0 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT DISTINCT - col0 DIV - - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col0 / - - col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COUNT( * ) * + 98 + 89 FROM tab2 WHERE 19 BETWEEN + col0 AND - + col2
----
89

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COUNT ( * ) * + 98 + 89 FROM tab2 WHERE 19 BETWEEN + col0 AND - + col2
----
89

query I rowsort
SELECT ALL col1 * + - col2 + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT + 58 * col0 DIV - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-116
-75
-92

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 58 * col0 / - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-116
-75
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT CAST( + 15 AS SIGNED ) DIV + - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT CAST ( + 15 AS INTEGER ) / + - col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 IN ( + col1, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN - ( + 64 ) + - 21 + 98 AND - + col2 - - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + 67 AS col0 FROM tab0
----
114
166
77

query I rowsort
SELECT ALL 36 - + 42 FROM tab1
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL MIN( DISTINCT - 27 ) - - SUM( col2 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL MIN ( DISTINCT - 27 ) - - SUM ( col2 ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + MAX( col1 ) FROM tab0 AS cor0 WHERE NOT + 63 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + MAX ( col1 ) FROM tab0 AS cor0 WHERE NOT + 63 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2605
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab0
----
3

query I rowsort
SELECT ( + 51 ) AS col1 FROM tab0
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT col2 AS col1, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - ( MAX( DISTINCT + 54 ) ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2611
SELECT - ( MAX ( DISTINCT + 54 ) ) FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - - col2 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - - col2 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + - col2 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * + col0, col2 AS col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT - 32 * + - col0 AS col1 FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + SUM( + - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-2617
SELECT + SUM ( + - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT 5 DIV - col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT 5 / - col1 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL MAX( - ( - 96 ) ) AS col2 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL MAX ( - ( - 96 ) ) AS col2 FROM tab2 cor0
----
96

query I rowsort
SELECT ALL - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - + 66 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT 15 * + MAX( - - 44 ) + - + SUM( ALL + + col1 ) * ( + - COUNT( * ) ) FROM tab0 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 15 * + MAX ( - - 44 ) + - + SUM ( ALL + + col1 ) * ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
969

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2624
SELECT ALL + 29 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + 29 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT 44 + - SUM( DISTINCT - - col0 ) + + CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT 44 + - SUM ( DISTINCT - - col0 ) + + CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
-145

query I rowsort
SELECT ALL + + 54 * - - col1 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
5100
8643
9086

query I rowsort
SELECT 69 + col2 FROM tab2
----
109
127
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 30 col2 FROM tab0
----
2610
2910
450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT col1 + + col2 DIV 67 AS col0 FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2630
SELECT col1 + + col2 / 67 AS col0 FROM tab0
----
2
21
81

query I rowsort
SELECT + ( - col2 ) + - ( - col0 ) FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab1 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 AS col2, + col0 col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL COUNT( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL COUNT ( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT + MIN( + - col0 ) DIV - - 3 AS col1 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2635
SELECT + MIN ( + - col0 ) / - - 3 AS col1 FROM tab2 cor0
----
-25

query I rowsort
SELECT DISTINCT 25 * - col2 * - col0 + - col0 FROM tab0 AS cor0
----
17610
21663
239978

query I rowsort
SELECT DISTINCT + ( - - 77 ) + col1 FROM tab0 AS cor0
----
158
78
98

query I rowsort
SELECT ( col1 ) - - 73 AS col0 FROM tab2
----
124
140
150

query I rowsort
SELECT ALL - 91 * + - 69 FROM tab2
----
6279
6279
6279

query I rowsort
SELECT + + 46 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
46
46
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 * col2 * - - 26 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL - - 72 * - + MAX( 88 ) + + SUM( - CAST( NULL AS SIGNED ) ) * - ( COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - - 72 * - + MAX ( 88 ) + + SUM ( - CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT + + COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2643
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( * ) * - - 27 + 80 AS col2 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( * ) * - - 27 + 80 AS col2 FROM tab2 AS cor0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) * + 72 * - col0 AS col2 FROM tab0 cor0
----
-16200
-544968
-677448

skipif mysql # not compatible
query I rowsort label-2645
SELECT CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) * + 72 * - col0 AS col2 FROM tab0 cor0
----
-16200
-544968
-677448

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2646
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT - col2 DIV + - 32 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2647
SELECT - col2 / + - 32 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 65 * 7 FROM tab2
----
-455
-455
-455

query III rowsort
SELECT * FROM tab2 WHERE NOT + 41 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - COUNT( * ) * - 33 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2651
SELECT - COUNT ( * ) * - 33 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab1
----
-91

query I rowsort
SELECT ALL col1 * 37 AS col2 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + 24 * - + MIN( DISTINCT + - 99 ) + + MAX( ALL - 31 ) AS col1 FROM tab2 cor0
----
2345

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 24 * - + MIN ( DISTINCT + - 99 ) + + MAX ( ALL - 31 ) AS col1 FROM tab2 cor0
----
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + - COUNT( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + - COUNT ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 97 col1, - col2 * - - col1 * col0 FROM tab0 AS cor0
----
-97
-18270
-97
-57105
-97
-9603

query I rowsort
SELECT ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT + col1 DIV - col1 + col2 + - + col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2659
SELECT + col1 / - col1 + col2 + - + col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 + + + col1 AS col0 FROM tab1 cor0
----
10
28
94

query II rowsort
SELECT DISTINCT ( - col2 ) AS col1, - col1 + col1 FROM tab0 cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL COUNT( DISTINCT 28 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL COUNT ( DISTINCT 28 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2663
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - + 1 + - + 43 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT col0 + + 47 FROM tab2 AS cor0
----
111
122
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 28 + 39 col0 FROM tab1 cor0
----
118
152
158

query I rowsort
SELECT - + col0 * + - col1 AS col2 FROM tab2 WHERE NULL BETWEEN - + 64 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 45 >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL - col1 + col0 * + col2 DIV - col2 AS col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - col1 + col0 * + col2 / - col2 AS col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 3 ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT ALL MIN( DISTINCT + col2 ) AS col2, ( + 24 ) - + COUNT( * ) AS col1 FROM tab0
----
10
21

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL MIN ( DISTINCT + col2 ) AS col2, ( + 24 ) - + COUNT ( * ) AS col1 FROM tab0
----
10
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - ( + + 82 ) - col0 + 85 DIV col0 AS col1 FROM tab1
----
-132
-166
-173

skipif mysql # not compatible
query I rowsort label-2673
SELECT - ( + + 82 ) - col0 + 85 / col0 AS col1 FROM tab1
----
-132
-166
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 45 + - + col1 col2 FROM tab0
----
2034
429
4454

query II rowsort
SELECT DISTINCT - 71 * - col0 AS col2, - col0 FROM tab0 AS cor0
----
1065
-15
6177
-87
6887
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + - col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 * - col1, col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2678
SELECT * FROM tab0 WHERE ( + 38 * - 54 * col1 * + + CAST( NULL AS DECIMAL ) + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2678
SELECT * FROM tab0 WHERE ( + 38 * - 54 * col1 * + + CAST ( NULL AS REAL ) + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT ALL + ( col0 ) - CAST( col2 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + ( col0 ) - CAST ( col2 AS INTEGER ) FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col2 col0 FROM tab0
----
3807
8019
810

query I rowsort
SELECT DISTINCT col2 * col0 * col0 * - 13 + + 32 AS col1 FROM tab2 AS cor0
----
-2129888
-4241218
-632652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ( - + MAX( ALL + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2685
SELECT ( - + MAX ( ALL + col1 ) ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2686
SELECT * FROM tab2 WHERE + col1 * + 64 + - CAST( NULL AS SIGNED ) BETWEEN - col1 AND + + 40 / + + col1 + ( + - 94 ) + col2 + - col2 * - + col2 * - 24 * col2 OR NOT ( col1 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2686
SELECT * FROM tab2 WHERE + col1 * + 64 + - CAST ( NULL AS INTEGER ) BETWEEN - col1 AND + + 40 / + + col1 + ( + - 94 ) + col2 + - col2 * - + col2 * - 24 * col2 OR NOT ( col1 IS NOT NULL )
----

query I rowsort
SELECT 93 * + 48 * 87 * col0 FROM tab0
----
33788016
37671696
5825520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT + + MAX( + 46 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + + MAX ( + 46 ) AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL 26 AS col0 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT ALL + ( col2 ) + 91 FROM tab2
----
114
131
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 14 + - 79 * + 79 col0 FROM tab1
----
-6136
-6142
-6176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - 45 ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2695
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col0 FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col2 AND - col2
----

query II rowsort
SELECT - - col1 * 73 + - col0 * col2 + - 56 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-9586
1
5152
81
607
21

query I rowsort
SELECT + col0 * col1 + - col2 FROM tab2 cor0
----
2323
4888
4967

query I rowsort
SELECT ALL 12 * + + col0 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT ALL - 26 + - col1 FROM tab1
----
-31
-40
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2702
SELECT - 26 * - col2 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT - 26 * - col2 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 34 * + 15 - - col1 FROM tab2
----
561
577
587

query I rowsort
SELECT DISTINCT 68 + - col0 * - col0 FROM tab2
----
2184
4164
5693

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 * col0 + + 14 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 * col0 + + 14 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 93 = NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 40 - - + col1 - + 97 + col1 * - - col0 FROM tab0
----
2591
41
4439

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2709
SELECT - + col1 * + + CAST( NULL AS DECIMAL ) + + - 85 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT - + col1 * + + CAST ( NULL AS REAL ) + + - 85 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT col0 - - + col2 AS col0, ( + 17 ) AS col1, col1 FROM tab0 AS cor0
----
9 values hashing to 307ccaf4f5b5f352da15d6ae29c2f652

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NULL <> col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NULL <> col0 * + col2
----
0

query I rowsort
SELECT DISTINCT 35 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - COUNT( ALL 81 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - COUNT ( ALL 81 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT 23 * + COUNT( * ) * - + 5 * - - COUNT( col0 ) FROM tab0 AS cor0
----
-1035

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT 23 * + COUNT ( * ) * - + 5 * - - COUNT ( col0 ) FROM tab0 AS cor0
----
-1035

query I rowsort
SELECT + ( col1 ) * - 90 FROM tab0 AS cor0
----
-1890
-7290
-90

query I rowsort
SELECT col1 * col2 * 8 * + col2 * col1 AS col0 FROM tab1
----
14450688
696200
81715328

query I rowsort
SELECT 2 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2718
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2718
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL ( COUNT( * ) ) * - 49 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL ( COUNT ( * ) ) * - 49 FROM tab0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * - col0 AS col0 FROM tab1
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * - col0 AS col0 FROM tab1
----
-3366
-5610
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT 13 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT 13 / col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL - 98 * col0 DIV + - col0 AS col0 FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - 98 * col0 / + - col0 AS col0 FROM tab0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL - 92 DIV col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - 92 / col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + 79 * + 47 AS col1 FROM tab1 AS cor0
----
-3713
-3713
-3713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT ALL - col2 * 64 AS col1 FROM tab1
----
-3776
-4352
-6144

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = col1
----

query I rowsort
SELECT ( 50 ) * col2 AS col0 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL 56 + 45 FROM tab2
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2731
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + col2 BETWEEN - col0 + + col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + col2 BETWEEN - col0 + + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COUNT( * ) * SUM( DISTINCT 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COUNT ( * ) * SUM ( DISTINCT 1 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT ALL col0 DIV - col0 + + col1 AS col0 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL col0 / - col0 + + col1 AS col0 FROM tab1
----
13
4
46

query I rowsort
SELECT 76 + - 65 FROM tab1 WHERE col1 NOT IN ( 9 )
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 * - 19 + - col1 * + ( 33 ) IS NULL
----

query I rowsort
SELECT + col1 * col0 + 33 AS col2 FROM tab0
----
1248
130
1860

query I rowsort
SELECT + col0 * - 48 FROM tab0
----
-4176
-4656
-720

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - 42 / - 45
----

query I rowsort
SELECT 97 * + ( col1 ) + 44 AS col0 FROM tab1
----
1402
4603
529

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT + col0 DIV - 49 + ( 81 ) * - col1 AS col0 FROM tab1 WHERE NOT + 62 * + 29 IS NULL
----
-1135
-3808
-406

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + col0 / - 49 + ( 81 ) * - col1 AS col0 FROM tab1 WHERE NOT + 62 * + 29 IS NULL
----
-1135
-3808
-406

query I rowsort
SELECT ALL 98 * col2 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL col1 * 93 FROM tab1
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 WHERE - 67 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + 79 * - MIN( + ( + 75 ) ) AS col1 FROM tab2
----
-5925

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + 79 * - MIN ( + ( + 75 ) ) AS col1 FROM tab2
----
-5925

query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 WHERE NOT ( col0 ) > ( + col2 )
----
4896

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col1 ) <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND ( - col1 )
----

query I rowsort
SELECT ALL + 20 - col2 AS col1 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT DISTINCT col0 * - 9 AS col1 FROM tab1 WHERE - col1 * - 94 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 > + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT col1 DIV ( + 5 ) col2 FROM tab0
----
0
16
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT col1 / ( + 5 ) col2 FROM tab0
----
0
16
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT ALL 47 DIV COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL 47 / COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT col2 - 81 * 9 FROM tab1
----
-633
-661
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 85 + col0 col2 FROM tab2
----
4381
5770
6609

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2755
SELECT ALL - CAST( NULL AS DECIMAL ) * + col2 - 40 AS col0 FROM tab2 WHERE - 73 IN ( 96 )
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - CAST ( NULL AS REAL ) * + col2 - 40 AS col0 FROM tab2 WHERE - 73 IN ( 96 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 38 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 86 * - 79 ) IN ( 15 * 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * - col1 FROM tab2
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT COUNT( * ) FROM tab0 WHERE NOT + ( - 5 ) - + col1 NOT IN ( col2 * 50 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( * ) FROM tab0 WHERE NOT + ( - 5 ) - + col1 NOT IN ( col2 * 50 + - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2760
SELECT COUNT ( DISTINCT - col2 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 46 ) > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST ( NULL AS INTEGER ) * col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT 99 + 59 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 - col1 * + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT 99 + 59 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 - col1 * + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 6 NOT IN ( + CAST( - col0 AS SIGNED ) * 93 )
----

skipif mysql # not compatible
query I rowsort label-2767
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 6 NOT IN ( + CAST ( - col0 AS INTEGER ) * 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL COUNT( 96 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL COUNT ( 96 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + ( - col2 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + ( - col2 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 3 AS col0 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT DISTINCT + 58 * col0 AS col0 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - MAX( col0 ) col1 FROM tab2 WHERE NOT ( - col2 ) = 74
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2773
SELECT - MAX ( col0 ) col1 FROM tab2 WHERE NOT ( - col2 ) = 74
----
-75

query I rowsort
SELECT ALL - 25 * + - col2 AS col2 FROM tab2
----
1000
1450
575

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( + 60 )
----
-59
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) * 61 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) * 61 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 1 * col2 * col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col0 BETWEEN + col1 AND 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT 91 * COUNT( * ) AS col0 FROM tab2 WHERE NOT 39 / 90 BETWEEN ( col0 * col2 ) AND ( + col0 )
----
273

skipif mysql # not compatible
query I rowsort label-2780
SELECT 91 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT 39 / 90 BETWEEN ( col0 * col2 ) AND ( + col0 )
----
273

query I rowsort
SELECT ALL ( + 23 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 67 / 65 AND + 33 + 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 cor0 WHERE NOT ( - 57 ) < 52 * + col1
----

query I rowsort
SELECT + + col1 + - col0 * - 14 FROM tab1 AS cor0
----
1195
1321
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + 14 + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE col2 IN ( col1 )
----
14

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 14 + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IN ( col1 )
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= col2
----

query II rowsort
SELECT 68, - 85 AS col1 FROM tab1
----
68
-85
68
-85
68
-85

query I rowsort
SELECT - 69 AS col1 FROM tab0 WHERE ( + 91 ) NOT BETWEEN col2 * - 69 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT ALL + + COUNT( * ) col2, 89 + 93 col1 FROM tab1 AS cor0
----
3
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2788
SELECT ALL + + COUNT ( * ) col2, 89 + 93 col1 FROM tab1 AS cor0
----
3
182

query I rowsort
SELECT + + col2 * + - col2 * - 77 - col2 FROM tab0 AS cor0
----
170046
754578
7690

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND ( - + 56 )
----

query I rowsort
SELECT + col0 * + col2 * - col2 + 5 FROM tab1 AS cor0
----
-295880
-420779
-470011

query I rowsort
SELECT 2 + - col2 AS col2 FROM tab1 cor0
----
-57
-66
-94

query I rowsort
SELECT + - col2 + + - col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT DISTINCT col0 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT col0 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT + 75 + - + col2 * + col0 FROM tab0
----
-630
-795
-9528

query I rowsort
SELECT 92 + - ( + col2 ) - + ( + 62 ) * - col2 AS col1 FROM tab0
----
2959
6131
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT DISTINCT - 31 + CAST( - col1 AS SIGNED ) FROM tab0
----
-112
-32
-52

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 31 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-112
-32
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT ALL + CAST( NULL AS SIGNED ) / + 84 + + col2 + + col2 + 16 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + CAST ( NULL AS INTEGER ) / + 84 + + col2 + + col2 + 16 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT ALL - col1 + ( + + 81 ) + - col0 DIV ( 14 + col1 ) FROM tab1
----
33
66
72

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - col1 + ( + + 81 ) + - col0 / ( 14 + col1 ) FROM tab1
----
33
66
72

query I rowsort
SELECT ALL + - col1 * col1 FROM tab1 WHERE + col0 IS NOT NULL
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT + MIN( col2 ) FROM tab0 WHERE ( - col2 / col1 ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + MIN ( col2 ) FROM tab0 WHERE ( - col2 / col1 ) IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL col2 DIV - ( + 66 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL col2 / - ( + 66 ) AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2808
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) * - 69 * + COUNT( * ) FROM tab0 AS cor0
----
3
621

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) * - 69 * + COUNT ( * ) FROM tab0 AS cor0
----
3
621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2809
SELECT - CAST( NULL AS SIGNED ) / + + 57 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2809
SELECT - CAST ( NULL AS INTEGER ) / + + 57 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * col0 * + 41 FROM tab1
----
200736
205615
253708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2813
SELECT DISTINCT COUNT( * ), - COUNT( * ) DIV - 35 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
0

skipif mysql # not compatible
query II rowsort label-2813
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) / - 35 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - - MAX( ALL + - 63 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2814
SELECT - - MAX ( ALL + - 63 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 7 col1 FROM tab1
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT MAX( ALL 40 ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col2 AND - 66
----
40

skipif mysql # not compatible
query I rowsort label-2817
SELECT MAX ( ALL 40 ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col2 AND - 66
----
40

query I rowsort
SELECT - 43 FROM tab2 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - COUNT( * ) * 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2819
SELECT - COUNT ( * ) * 37 FROM tab0
----
-111

query I rowsort
SELECT + col1 * + 97 AS col0 FROM tab1
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - COUNT( * ) * - COUNT( ALL col2 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2821
SELECT - COUNT ( * ) * - COUNT ( ALL col2 ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2822
SELECT + 65 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( - 44 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2822
SELECT + 65 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( - 44 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT - + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - - 21 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2824
SELECT - - 21 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL - + 30 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

query II rowsort
SELECT + col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - - 97 + - col1 FROM tab0 AS cor0
----
16
76
96

query I rowsort
SELECT - + col1 + 87 FROM tab1 AS cor0
----
40
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + CAST( col1 AS SIGNED ) - - col2 AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + CAST ( col1 AS INTEGER ) - - col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ( - 68 ) + 96 AS col1 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT - + COUNT( * ) * - MIN( + 88 ) * 98 + - 56 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - + COUNT ( * ) * - MIN ( + 88 ) * 98 + - 56 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col1 + 5 - - col0 FROM tab1
----
143
70
95

query III rowsort
SELECT * FROM tab1 WHERE - - ( 96 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 9 * col1 * + 77 AS col0 FROM tab2
----
-35343
-46431
-53361

query II rowsort
SELECT 56 * col2, - col0 * + col1 AS col2 FROM tab1 AS cor0
----
3304
-425
3808
-4277
5376
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL + col1 * + + col1 * col2 + col2 FROM tab2 cor0 WHERE col1 <= + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + col1 * + + col1 * col2 + col2 FROM tab2 cor0 WHERE col1 <= + CAST ( NULL AS INTEGER ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 - - 2 AS col2, + col2 - col1 col2 FROM tab2 AS cor0
----
-44
-28
-62
-37
-73
-9

query II rowsort
SELECT DISTINCT + ( + ( col1 ) ) AS col0, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT + ( COUNT( * ) ) + MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + ( COUNT ( * ) ) + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT + ( col0 ) * col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT SUM( - + col0 ) * + 29, + COUNT( * ) * - 10 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6583
-27

skipif mysql # not compatible
query II rowsort label-2841
SELECT SUM ( - + col0 ) * + 29, + COUNT ( * ) * - 10 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6583
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 = col0 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 44 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) <= + 18 / col2 + - - col1 + + + col1 + + col1
----

query I rowsort
SELECT ALL col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col1 - + + col1 * col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2845
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col1 - + + col1 * col0 )
----
0

query II rowsort
SELECT col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 * + 6 * 74 + + 54 ) AND col1 / - - col0 + + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2848
SELECT 78, CAST( AVG ( - col1 ) AS SIGNED ) col1 FROM tab0
----
78
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2848
SELECT 78, CAST ( AVG ( - col1 ) AS INTEGER ) col1 FROM tab0
----
78
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35, + col2 col1 FROM tab0
----
-35
10
-35
47
-35
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2850
SELECT + COUNT( * ) col2, + 2 DIV + 27 AS col1 FROM tab1
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2850
SELECT + COUNT ( * ) col2, + 2 / + 27 AS col1 FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) col0 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2851
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT - CAST( NULL AS SIGNED ) / - SUM( - col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( - col2 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 * + ( - col2 ) FROM tab0
----
33135
8700
950697

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 98 ) FROM tab2 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) > + 36
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2857
SELECT DISTINCT col2 + 26 * - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 * + CAST( NULL AS DECIMAL ) AND - - col0
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT col2 + 26 * - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 * + CAST ( NULL AS REAL ) AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + MIN( DISTINCT 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + MIN ( DISTINCT 80 ) FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2859
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 92 * + col1 FROM tab1 AS cor0
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + + COUNT( * ) * - MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + + COUNT ( * ) * - MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - - MIN( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2862
SELECT - - MIN ( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - 87 + col2 + - - col0 * - - col2 AS col2 FROM tab0
----
665
793
9615

query III rowsort
SELECT * FROM tab1 WHERE + 62 * - col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT COUNT( * ) + + 75 AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT COUNT ( * ) + + 75 AS col2 FROM tab2
----
78

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ( + + col1 ) * - col1 FROM tab0 cor0 WHERE - 48 + - col2 + + 69 * + col2 = - - 66
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE + col2 * - + col1 IS NOT NULL
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + - CAST( - + col2 AS SIGNED ) + + + col1 - - ( + + 82 ) - + col0 AND - - col1 AND NULL IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + - CAST ( - + col2 AS INTEGER ) + + + col1 - - ( + + 82 ) - + col0 AND - - col1 AND NULL IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + 30 * 2 * + COUNT( * ) col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT DISTINCT + 30 * 2 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT - 29 + 98 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL + 1 * col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + col2 * 69 FROM tab0 cor0
----
3243
6831
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT ( MAX( col2 ) ) * - MAX( + ( + - col1 ) ) + ( + + MIN( DISTINCT + CAST( col2 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 + - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT ( MAX ( col2 ) ) * - MAX ( + ( + - col1 ) ) + ( + + MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 + - col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( 1 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT col2 DIV col0 * - + 13 AS col2 FROM tab0
----
-13
-39
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT col2 / col0 * - + 13 AS col2 FROM tab0
----
-13
-39
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2883
SELECT DISTINCT - COUNT( DISTINCT 0 ) DIV 40, COUNT( * ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-2883
SELECT DISTINCT - COUNT ( DISTINCT 0 ) / 40, COUNT ( * ) AS col1 FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - SUM( + col2 ) * + 61 AS col0 FROM tab1
----
-13603

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - SUM ( + col2 ) * + 61 AS col0 FROM tab1
----
-13603

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT - - MAX( + 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - - MAX ( + 59 ) FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( ALL - 94 ) AS col0 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( ALL - 94 ) AS col0 FROM tab2 AS cor0
----
-282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2888
SELECT DISTINCT + - 73 * + CAST( - - 49 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT - CAST( - + col2 AS SIGNED ) + - + col0 NOT IN ( - col2, - col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + - 73 * + CAST ( - - 49 AS REAL ) AS col1 FROM tab0 WHERE NOT - CAST ( - + col2 AS INTEGER ) + - + col0 NOT IN ( - col2, - col1 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 71 <= + 28 * + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT + + 67 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 66 * col0 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT + + 67 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 66 * col0 IS NOT NULL
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 1 + ( - + 43 ) + 49 col0 FROM tab1 AS cor0
----
-41
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - - col2 * col0 * - col2 + 8 col2 FROM tab2 AS cor0
----
-1119333
-18922434
-6553552

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 NOT BETWEEN NULL AND + 18 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT - - col0 + - - col1 - + ( + col1 ) * + col2 FROM tab0 AS cor0
----
-1
-102
-3711

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, col1 + - col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT - 33 + + + 3 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT + 13 + - col1 DIV + - 96 * - + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
13
13
13

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 13 + - col1 / + - 96 * - + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
13
13
13

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col0 IS NULL
----

query I rowsort
SELECT - ( + 84 ) * + col0 FROM tab0
----
-1260
-7308
-8148

query I rowsort
SELECT - 64 - 56 AS col1 FROM tab1 AS cor0
----
-120
-120
-120

query I rowsort
SELECT - + 12 - + - col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-78
54
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + col0 + - ( - 87 ) col0, col1 + + - ( + - col1 ) FROM tab2 AS cor0
----
2433
102
5015
154
5112
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - + col0 + - col1 - - ( + col1 ) col2 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2908
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + + SUM( DISTINCT 60 ) * + + 13 FROM tab2 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-2909
SELECT + + SUM ( DISTINCT 60 ) * + + 13 FROM tab2 AS cor0
----
780

query II rowsort
SELECT col0, 76 AS col0 FROM tab1 AS cor0
----
51
76
85
76
91
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - + COUNT( * ) * - 87 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - + COUNT ( * ) * - 87 FROM tab0 AS cor0
----
261

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + - col1 DIV + 7 AS col0 FROM tab2 AS cor0
----
-11
-7
-9

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + - col1 / + 7 AS col0 FROM tab2 AS cor0
----
-11
-7
-9

query II rowsort
SELECT + col1 AS col2, 58 FROM tab2 cor0
----
51
58
67
58
77
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col1 col2 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col2 - col2 FROM tab2
----
-23
0
-40
0
-58
0

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT - ( - col1 ) * + - 16 AS col0 FROM tab2
----
-1072
-1232
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT 53 DIV - - col0 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2920
SELECT 53 / - - col0 AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT CAST( + 32 AS SIGNED ) FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2921
SELECT CAST ( + 32 AS INTEGER ) FROM tab0
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + + 60 + 54 >= col2
----

query I rowsort
SELECT ALL + 4 * 14 AS col0 FROM tab0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2924
SELECT - col2 AS col1, + CAST( - ( 11 ) AS SIGNED ), + col0 AS col2 FROM tab1
----
9 values hashing to 1c190254f921ee266adf1f4ad0f72e2d

skipif mysql # not compatible
query III rowsort label-2924
SELECT - col2 AS col1, + CAST ( - ( 11 ) AS INTEGER ), + col0 AS col2 FROM tab1
----
9 values hashing to 1c190254f921ee266adf1f4ad0f72e2d

query I rowsort
SELECT ALL + 3 * - col0 + + col2 FROM tab0 AS cor0
----
-192
-251
2

query I rowsort
SELECT ALL + 49 * + col1 + + + ( + + 67 ) FROM tab1 AS cor0
----
2370
312
753

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2927
SELECT DISTINCT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE ( col0 + CAST( col1 AS DECIMAL ) ) IS NOT NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE ( col0 + CAST ( col1 AS REAL ) ) IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT ALL - 6 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query I rowsort
SELECT + col2 * + - ( - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2930
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - 49 * - + col0, + col2, col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2932
SELECT COUNT ( - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + 84 / col1, 57 )
----

query I rowsort
SELECT ALL 21 FROM tab2 AS cor0 WHERE NOT NULL > col1 * - + ( - + col1 ) + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - + col1 + + + col1, + col0 AS col2 FROM tab2 AS cor0
----
-2295
46
-4851
64
-4958
75

query I rowsort
SELECT + col1 + - - ( - col1 ) AS col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + + + col2 + + col1 col2 FROM tab0
----
116
144
47

query I rowsort
SELECT DISTINCT - 92 + - col1 FROM tab2
----
-143
-159
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 4 + - - col1 / + + col2 - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 4 + - - col1 / + + col2 - - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT COUNT( * ) + 55 AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT COUNT ( * ) + 55 AS col2 FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2942
SELECT 67 + + col0 DIV - - col1 AS col1, 36 AS col2 FROM tab1
----
68
36
70
36
84
36

skipif mysql # not compatible
query II rowsort label-2942
SELECT 67 + + col0 / - - col1 AS col1, 36 AS col2 FROM tab1
----
68
36
70
36
84
36

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT 75 + col0 - 45 * - CAST( NULL AS SIGNED ) * 75 + + + ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT 75 + col0 - 45 * - CAST ( NULL AS INTEGER ) * 75 + + + ( col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - 89 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - 89 IS NOT NULL
----
3

query I rowsort
SELECT 93 + + - col0 FROM tab0
----
-4
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT 80 * + 43 - + + COUNT( + 34 ) col2 FROM tab2 AS cor0
----
3437

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT 80 * + 43 - + + COUNT ( + 34 ) col2 FROM tab2 AS cor0
----
3437

query I rowsort
SELECT ALL + + col1 + 7 AS col2 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT + + CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-2949
SELECT + + CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab2 WHERE - - 91 <> - 66
----
-6

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab2 WHERE - - 91 <> - 66
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT - SUM( ALL - CAST( + 0 AS SIGNED ) ) - - MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 32 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2951
SELECT - SUM ( ALL - CAST ( + 0 AS INTEGER ) ) - - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 32 IS NULL
----
-15

query I rowsort
SELECT - col0 * + 99 FROM tab2 AS cor0
----
-4554
-6336
-7425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 39 + 59 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 IN ( - 16 * - - col0 - - - ( - col2 ) - + col1 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * col1 + - - col2 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + - 94 AS col2 FROM tab0 AS cor0
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 43 + - + ( + 87 ) + - col0 * + - col0 >= NULL
----

query I rowsort
SELECT - - ( - 37 ) * - col2 FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT ALL col1 * 37 AS col0 FROM tab0
----
2997
37
777

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2967
SELECT + col0 DIV + CAST( col0 AS SIGNED ) + - - 81 FROM tab0 cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2967
SELECT + col0 / + CAST ( col0 AS INTEGER ) + - - 81 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT + col2 + + ( - col1 ) AS col1 FROM tab1
----
21
54
82

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 59 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT - - 10 DIV - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT DISTINCT - - 10 / - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 + + + 8 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT + - CAST( - 28 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + - CAST ( - 28 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT - + 86 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT + + CAST( - 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + + CAST ( - 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT col2 * + + col0 * - col1 + - - 41 * col0 FROM tab2 AS cor0
----
-194496
-288375
-52072

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT - + 15 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-2977
SELECT - + 15 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-15
3

query II rowsort
SELECT ALL + - col1 AS col2, - col0 AS col1 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

query II rowsort
SELECT DISTINCT 86 + - + ( 42 ) * - col2 + + - 78, - 83 - - col2 AS col0 FROM tab0
----
1982
-36
4166
16
428
-73

query I rowsort
SELECT - col1 * 36 + + col0 FROM tab0 WHERE col1 / col1 <= NULL
----

query I rowsort
SELECT ALL - col0 * 69 - + col1 - + col1 FROM tab1
----
-3547
-5875
-6373

query I rowsort
SELECT ALL 20 - col0 FROM tab0
----
-67
-77
5

query II rowsort
SELECT 44 - - - col2, + col1 FROM tab0
----
-3
81
-55
1
34
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT + - 93 + + - 45, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-138
3

skipif mysql # not compatible
query II rowsort label-2984
SELECT + - 93 + + - 45, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-138
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT + COUNT( * ) + - + 77 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2985
SELECT + COUNT ( * ) + - + 77 FROM tab2 cor0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2986
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) AS col0, - 86 FROM tab1 AS cor0
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) AS col0, - 86 FROM tab1 AS cor0
----
NULL
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + 31 / - col0
----

query II rowsort
SELECT col0 AS col2, + ( + 19 ) * + - col2 FROM tab0
----
15
-893
87
-190
97
-1881

query I rowsort
SELECT ALL 32 * 98 * col0 FROM tab1
----
159936
266560
285376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT + 71 DIV COUNT( * ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-2990
SELECT + 71 / COUNT ( * ) AS col0 FROM tab0
----
23

query I rowsort
SELECT + ( + + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2992
SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT + - 23, 35 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-23
32

skipif mysql # not compatible
query II rowsort label-2993
SELECT + - 23, 35 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-23
32

query II rowsort
SELECT ALL - col1 AS col0, 80 FROM tab1 AS cor0
----
-14
80
-47
80
-5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT ( MAX( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT ( MAX ( + col0 ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL + 39 AS col2, col0 - 35 * + + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
39
-1630
39
-263
39
-3368

query I rowsort
SELECT DISTINCT - ( + - 60 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT MAX( + 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2999
SELECT MAX ( + 87 ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL 52 * + 92 * + COUNT( * ) FROM tab2
----
14352

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 52 * + 92 * + COUNT ( * ) FROM tab2
----
14352

query I rowsort
SELECT DISTINCT - col1 * + col1 * 62 FROM tab1
----
-12152
-136958
-1550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 96 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT ( 98 ) AS col1 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - 94 + COUNT( * ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - 94 + COUNT ( * ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - SUM( ALL + - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - SUM ( ALL + - col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col0 - + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 / col0 col0 FROM tab1 AS cor0 WHERE NOT - 53 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3010
SELECT * FROM tab0 AS cor0 WHERE ( CAST( - col0 AS SIGNED ) * CAST( NULL AS DECIMAL ) ) < ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( - col0 AS INTEGER ) * CAST ( NULL AS REAL ) ) < ( + col0 )
----

query I rowsort
SELECT ALL + ( 42 ) FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col2 * + - col2 - + + 44 FROM tab0 AS cor0
----
-144
-2253
-9845

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col2 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + col1 ) + - - col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT + - COUNT( * ) + + + ( - - 47 ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
44
-3

skipif mysql # not compatible
query II rowsort label-3015
SELECT + - COUNT ( * ) + + + ( - - 47 ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
44
-3

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3017
SELECT CAST( - - COUNT( * ) AS SIGNED ) + + MAX( col2 ) + - 74 DIV 25 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3017
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + + MAX ( col2 ) + - 74 / 25 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( * ) + - + 29 - - - COUNT( * ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( * ) + - + 29 - - - COUNT ( * ) AS col1 FROM tab1
----
-29

query III rowsort
SELECT * FROM tab0 WHERE ( + 52 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 * col0 * + col0 + - - col1 + + col0 - - 81 AS col2, - col0 AS col1 FROM tab0
----
3552
-15
658692
-87
912852
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - ( - COUNT( 84 ) ) * - + 29 FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3021
SELECT - ( - COUNT ( 84 ) ) * - + 29 FROM tab0 cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + + COUNT( * ) + - + 65 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + + COUNT ( * ) + - + 65 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT 60 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 60 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL col0 DIV ( ( - 68 ) ) col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT ALL col0 / ( ( - 68 ) ) col0 FROM tab2
----
-1
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3026
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3026
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT - CAST( col1 AS SIGNED ) * col1 * + ( + + 73 ) FROM tab2 AS cor0
----
-189873
-327697
-432817

skipif mysql # not compatible
query I rowsort label-3027
SELECT - CAST ( col1 AS INTEGER ) * col1 * + ( + + 73 ) FROM tab2 AS cor0
----
-189873
-327697
-432817

query I rowsort
SELECT DISTINCT - 86 * - col1 * ( + + col0 ) FROM tab1 AS cor0
----
36550
367822
61404

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 AND - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - MAX( ALL + + 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3030
SELECT - MAX ( ALL + + 46 ) FROM tab1 AS cor0
----
-46

query II rowsort
SELECT ( - col0 ) AS col0, + ( - col2 ) FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3032
SELECT ALL + + ( + col1 ), - col2 DIV - col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL + + ( + col1 ), - col2 / - col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT 83 AS col0, + MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
83
-5

skipif mysql # not compatible
query II rowsort label-3033
SELECT 83 AS col0, + MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
83
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT ALL COUNT( * ) DIV ( + - SUM( DISTINCT - - col0 ) ) + + COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT ALL COUNT ( * ) / ( + - SUM ( DISTINCT - - col0 ) ) + + COUNT ( * ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( + col2 * + col2 * + + col1 * - col0 IN ( - col2 * + - ( + 42 ), - col1 ) ) )
----

query I rowsort
SELECT - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 + + 7 AS col1 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT DISTINCT 66 + 99 FROM tab2 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 + ( col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 15 col2 FROM tab1 AS cor0
----
-1020
-1440
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT + col0 DIV + + 27 AS col2 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-3042
SELECT + col0 / + + 27 AS col2 FROM tab0 AS cor0
----
0
3
3

query I rowsort
SELECT ( + 65 ) AS col0 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 4 + + col1 + - col0 FROM tab0 AS cor0
----
-62
-92
70

query I rowsort
SELECT ALL col0 + + + col0 + - col2 - col0 * + 35 - - col2 AS col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT - 27 - col2 AS col2 FROM tab1
----
-123
-86
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 68 * 37 FROM tab1
----
51
2516
85
2516
91
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + ( MIN( ALL - ( - col0 ) ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + ( MIN ( ALL - ( - col0 ) ) ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( - + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT - AVG ( DISTINCT ( + col0 ) ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - - col1 ) * + - col2 + + - 84 AS col0 FROM tab1 AS cor0
----
-1428
-3280
-379

query I rowsort
SELECT ALL - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 61 * + 71 AS col2 FROM tab2 AS cor0
----
4331
4331
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab0
----
3

query II rowsort
SELECT + col2 AS col1, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT DISTINCT 39 * col0 DIV - - 95 FROM tab1
----
20
34
37

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT 39 * col0 / - - 95 FROM tab1
----
20
34
37

query I rowsort
SELECT - + col2 / + + col0 AS col2 FROM tab2 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT - 9 * - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - 9 * - COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 39 * + - 15 * + 5 AS col2 FROM tab2 AS cor0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 = NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 NOT BETWEEN - col2 / col1 * + - col0 * + 56 AND + 29
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - - col2 + + - CAST( NULL AS SIGNED ) + - - col0 / - + 66 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - - col2 + + - CAST ( NULL AS INTEGER ) + - - col0 / - + 66 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 93 AS col2 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL - col2 + - 80 AS col2 FROM tab2 AS cor0
----
-103
-120
-138

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 95 * + - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 15 * - 38 FROM tab0
----
-570
-570
-570

query I rowsort
SELECT col1 * - + ( - - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / col0 / + - 77 IS NULL
----

query I rowsort
SELECT col1 + - 1 * + - col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL ( + MIN( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL ( + MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT + 11 + - col0 FROM tab1
----
-40
-74
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3075
SELECT * FROM tab1 WHERE - + 98 < + 83 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3075
SELECT * FROM tab1 WHERE - + 98 < + 83 + - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3077
SELECT DISTINCT * FROM tab2 WHERE - - 75 + col0 * + col2 IN ( - col1 * - 54 + - col1 + + 76 + - col0 + 0 + CAST( 30 AS SIGNED ) * + col0 - - 17, col0 )
----

skipif mysql # not compatible
query III rowsort label-3077
SELECT DISTINCT * FROM tab2 WHERE - - 75 + col0 * + col2 IN ( - col1 * - 54 + - col1 + + 76 + - col0 + 0 + CAST ( 30 AS INTEGER ) * + col0 - - 17, col0 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) - col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 - col0 + + col2 AS col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - - 42 - COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - - 42 - COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - COUNT( * ) * 68 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - COUNT ( * ) * 68 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT DISTINCT - - 46 + - 33 AS col0 FROM tab2 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col1 + + 90, 51 col1 FROM tab0 AS cor0
----
132
51
252
51
92
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col1 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL COUNT( - - ( - - 2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL COUNT ( - - ( - - 2 ) ) FROM tab1
----
3

query I rowsort
SELECT ( col0 ) * - + col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - COUNT( * ) * + 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-3089
SELECT - COUNT ( * ) * + 28 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3090
SELECT DISTINCT col1 * col2 AS col2, CAST( NULL AS SIGNED ) * + - col1 * - col2 * 24 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

skipif mysql # not compatible
query II rowsort label-3090
SELECT DISTINCT col1 * col2 AS col2, CAST ( NULL AS INTEGER ) * + - col1 * - col2 * 24 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 19 * + ( + col0 ) > + + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - col0 * + + ( 36 ) AS col2 FROM tab1
----
-1836
-3060
-3276

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT col1 * + + CAST( col2 AS SIGNED ) col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3095
SELECT DISTINCT col1 * + + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT + 76 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3096
SELECT + 76 / - + col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( - 48 - + col1 )
----

query I rowsort
SELECT + 77 + - col1 AS col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT ALL - 82 DIV COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - 82 / COUNT ( * ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col0 + - - 63 FROM tab2 AS cor0
----
109
127
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT + + col1 * + ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + col1 * + ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + + SUM( col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + + SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - col0 + col0 + - col2 + + - col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT - col2 + + 88 FROM tab2 AS cor0
----
30
48
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT + + 63 + - COUNT( * ) + 27 + COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3105
SELECT + + 63 + - COUNT ( * ) + 27 + COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + 9 + - col1 FROM tab1 AS cor0
----
-38
-5
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + COUNT( * ) FROM tab0, tab0 AS cor0 WHERE 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE 50 IS NULL
----
0

query I rowsort
SELECT DISTINCT 63 FROM tab2 WHERE + col1 IS NOT NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL COUNT( * ) + + - ( + SUM( + col0 ) ) col0 FROM tab2
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT ALL COUNT ( * ) + + - ( + SUM ( + col0 ) ) col0 FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT col0 + + + 76 FROM tab1
----
127
161
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT + ( - ( - + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + ( - ( - + COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + ( + + COUNT( * ) ) col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT + ( + + COUNT ( * ) ) col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3115
SELECT col1 col2, col0 * - + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) / + col0 / + col1 + - - col2 - 75 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3115
SELECT col1 col2, col0 * - + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) / + col0 / + col1 + - - col2 - 75 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3116
SELECT - col0 DIV + 49 col0, col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1
37
-1
9
0
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT - col0 / + 49 col0, col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1
37
-1
9
0
28

query I rowsort
SELECT - ( + col0 ) - - 95 AS col0 FROM tab0 AS cor0
----
-2
8
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT - + col0 * + + col1 - - col0 DIV - col0 + col2 FROM tab1 AS cor0
----
-367
-4210
-619

skipif mysql # not compatible
query I rowsort label-3118
SELECT - + col0 * + + col1 - - col0 / - col0 + col2 FROM tab1 AS cor0
----
-367
-4210
-619

query I rowsort
SELECT ALL col1 + + 82 * - - col1 FROM tab1 AS cor0
----
1162
3901
415

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( col1 ) * + + 40 + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 19 IS NULL
----

query I rowsort
SELECT + 80 * + 98 AS col2 FROM tab0
----
7840
7840
7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) col2, + 79 * - - col1 col0 FROM tab2
----
-51
4029
-67
5293
-77
6083

query II rowsort
SELECT ALL + col1 - + col1 AS col2, - col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT - + 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - col2 >= col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3128
SELECT 11 DIV - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3128
SELECT 11 / - + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - ( 17 ) FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT 18 * ( + + col2 ) DIV + + ( + col1 ) col0 FROM tab2
----
15
8
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3131
SELECT 18 * ( + + col2 ) / + + ( + col1 ) col0 FROM tab2
----
15
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL SUM( ALL 83 ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL SUM ( ALL 83 ) AS col0 FROM tab1
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT DISTINCT ( - - MIN( ALL - col1 ) ) AS col2, + 77 AS col1 FROM tab1
----
-47
77

skipif mysql # not compatible
query II rowsort label-3133
SELECT DISTINCT ( - - MIN ( ALL - col1 ) ) AS col2, + 77 AS col1 FROM tab1
----
-47
77

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = - ( - - col0 ) - 99 + + + 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT CAST( 72 AS SIGNED ) FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3135
SELECT CAST ( 72 AS INTEGER ) FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3136
SELECT MAX ( col1 ) AS col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab2
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT DISTINCT - CAST( 86 AS SIGNED ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - CAST ( 86 AS INTEGER ) FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ( ( - + ( - - COUNT( * ) ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3139
SELECT ( ( - + ( - - COUNT ( * ) ) ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - + 12 AS col1, + col2 * + col0 AS col2 FROM tab2 cor0
----
-12
1058
-12
2560
-12
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3141
SELECT - MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3143
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT + 66 * COUNT( * ) DIV 12 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 66 * COUNT ( * ) / 12 AS col1 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + - col1 NOT BETWEEN col0 * - 96 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - col2 * + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 + - + ( 7 ) <= + 22
----

query I rowsort
SELECT ALL col2 + + 80 AS col0 FROM tab0
----
127
179
90

query I rowsort
SELECT col2 + 7 FROM tab2
----
30
47
65

query I rowsort
SELECT - 6 + - 50 AS col1 FROM tab0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - MAX( - + col2 ) + ( - 95 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-3154
SELECT - MAX ( - + col2 ) + ( - 95 ) FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT 58 + + COUNT( * ) * + + SUM( DISTINCT + col0 ) FROM tab0
----
655

skipif mysql # not compatible
query I rowsort label-3155
SELECT 58 + + COUNT ( * ) * + + SUM ( DISTINCT + col0 ) FROM tab0
----
655

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - MAX( - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MAX ( - - col0 ) FROM tab1
----
-91

query I rowsort
SELECT col1 * - - col1 + + - 82 * - - col1 FROM tab1
----
-1645
-385
-952

query I rowsort
SELECT DISTINCT 92 * - - 50 AS col2 FROM tab1
----
4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - - 8 FROM tab2 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + SUM( ALL + 57 ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3161
SELECT + SUM ( ALL + 57 ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT ALL + col2 * - - col0 + - 70 FROM tab0 AS cor0
----
635
800
9533

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT - + COUNT( * ) col0 FROM tab2 WHERE - - 66 < col2 * - + CAST( col0 AS SIGNED ) + + 21
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT - + COUNT ( * ) col0 FROM tab2 WHERE - - 66 < col2 * - + CAST ( col0 AS INTEGER ) + + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3165
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + COUNT ( - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL + COUNT( * ) * 70 * 88 FROM tab0 AS cor0
----
18480

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + COUNT ( * ) * 70 * 88 FROM tab0 AS cor0
----
18480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - 30 DIV 62 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 30 / 62 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - 35, col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

query II rowsort
SELECT + 78, col1 + - + col2 AS col1 FROM tab0 AS cor0
----
78
-98
78
11
78
34

query I rowsort
SELECT DISTINCT + - 40 AS col2 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - SUM( + ( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3173
SELECT - SUM ( + ( + col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 72 * 12 + - 72 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3175
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - ( - 17 ) AS col0 FROM tab2 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 = + - col1 * col1 - - + col2 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( - col0 + - col1, col0, - 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 76 + col1 FROM tab2 AS cor0
----
3547
4941
5767

query I rowsort
SELECT DISTINCT + 14 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT + 58 * - CAST( + + col1 AS SIGNED ) + col1 DIV col1 * - 96 AS col1 FROM tab1
----
-2822
-386
-908

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + 58 * - CAST ( + + col1 AS INTEGER ) + col1 / col1 * - 96 AS col1 FROM tab1
----
-2822
-386
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 54 + + + 5 + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-3183
SELECT 54 + + + 5 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT ALL col0 + - + col1 * + ( col0 ) - + 56 AS col2 FROM tab1
----
-396
-4242
-719

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 24 ) <> col2 + + col0 - + col2 * col1
----

query I rowsort
SELECT DISTINCT + + 77 * - ( + 8 ) * + 96 AS col2 FROM tab2 WHERE NOT NULL > + col2 / - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - AVG ( - 0 ) + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * + col2 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - AVG ( - 0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * + col2 * col1 IS NULL
----
NULL

query II rowsort
SELECT - col1 * + 42 + - col1, col2 AS col2 FROM tab2
----
-2193
23
-2881
58
-3311
40

query I rowsort
SELECT + ( + - col2 ) + col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + SUM( ALL - col2 ) + + + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-3190
SELECT + SUM ( ALL - col2 ) + + + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-118

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 3 / + MAX( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 3 / + MAX ( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3195
SELECT DISTINCT col1 * col1 + CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT col1 * col1 + CAST ( NULL AS REAL ) * + col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * + col1 + - - col2 / 37 * - 76 * col1 IS NULL
----

query I rowsort
SELECT - 35 - + col0 FROM tab1
----
-120
-126
-86

query III rowsort
SELECT * FROM tab2 WHERE - + ( - 32 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + 83 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 83 AS col0 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 0 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT DISTINCT + CAST( - 5 AS SIGNED ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) FROM tab2 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 BETWEEN + col2 * + + col0 * - col1 + - + 49 + + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT - - 63 * + - COUNT( * ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT - - 63 * + - COUNT ( * ) FROM tab1 AS cor0
----
-189

query I rowsort
SELECT ALL - col0 * - 3 FROM tab1 cor0
----
153
255
273

query I rowsort
SELECT DISTINCT - 0 * + col0 * 15 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, + col1 col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT - col0, 41 * - + col2 AS col1 FROM tab2
----
-46
-943
-64
-1640
-75
-2378

onlyif mysql # DIV for integer division: 
query II rowsort label-3211
SELECT 18 DIV 89, - col2 - + 19 AS col2 FROM tab0
----
0
-118
0
-29
0
-66

skipif mysql # not compatible
query II rowsort label-3211
SELECT 18 / 89, - col2 - + 19 AS col2 FROM tab0
----
0
-118
0
-29
0
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL MIN( + CAST( - 13 AS SIGNED ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL MIN ( + CAST ( - 13 AS INTEGER ) ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT DISTINCT 86 col0, + MAX( ALL - 38 ) AS col0 FROM tab1
----
86
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3213
SELECT DISTINCT 86 col0, + MAX ( ALL - 38 ) AS col0 FROM tab1
----
86
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - MIN( col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3214
SELECT - MIN ( col0 ) AS col1 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - + col0 * col1 * 5 ) <= NULL
----

query II rowsort
SELECT ALL col1 + col1 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
162
-47
2
-99
42
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - MIN( col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3218
SELECT - MIN ( col2 ) AS col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab1
----
-59
-59
-59

query II rowsort
SELECT 63 * - + 24, col1 FROM tab2
----
-1512
51
-1512
67
-1512
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( - 14 ) * col0 < - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - + + col2 / 48 * - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col2 * 70 FROM tab2 AS cor0
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NULL = - col2
----

query I rowsort
SELECT ALL ( + col2 ) + + + ( + + col2 ) AS col0 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + + col1 * + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT - 26 + + CAST( NULL AS SIGNED ) + 23, col2 * - col2 * - 30 AS col1 FROM tab0
----
NULL
294030
NULL
3000
NULL
66270

skipif mysql # not compatible
query II rowsort label-3228
SELECT - 26 + + CAST ( NULL AS INTEGER ) + 23, col2 * - col2 * - 30 AS col1 FROM tab0
----
NULL
294030
NULL
3000
NULL
66270

onlyif mysql # DIV for integer division: 
query II rowsort label-3229
SELECT ALL + col1 - col2 DIV - col2 AS col2, - col2 AS col2 FROM tab0
----
2
-99
22
-10
82
-47

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL + col1 - col2 / - col2 AS col2, - col2 AS col2 FROM tab0
----
2
-99
22
-10
82
-47

query I rowsort
SELECT DISTINCT col1 * 11 AS col1 FROM tab2
----
561
737
847

query II rowsort
SELECT col0, - 53 - col2 AS col1 FROM tab0 AS cor0
----
15
-100
87
-63
97
-152

query I rowsort
SELECT + col2 - - + 15 AS col2 FROM tab1 AS cor0
----
111
74
83

query II rowsort
SELECT DISTINCT + 33 * + + col0 * - 31, + col1 AS col2 FROM tab2 AS cor0
----
-47058
51
-65472
77
-76725
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3234
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE 7 * - col0 BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE 7 * - col0 BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( + CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( + CAST ( NULL AS INTEGER ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + 82 + - 23 FROM tab1 WHERE NOT - 89 - 51 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL MIN ( ALL + col1 ) FROM tab0
----
1

query I rowsort
SELECT col0 - 66 FROM tab0
----
-51
21
31

query I rowsort
SELECT col1 / 80 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND ( - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 19 * col0 IN ( - col0 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 55 + COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3244
SELECT 55 + COUNT ( * ) FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT - col1 * CAST( NULL AS SIGNED ) + - 88 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3245
SELECT - col1 * CAST ( NULL AS INTEGER ) + - 88 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 ) ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 75 AS col2 FROM tab0 WHERE ( - col2 ) + col0 IS NOT NULL
----
75
75
75

query I rowsort
SELECT ALL 17 * 50 AS col1 FROM tab0 WHERE 14 = - 94 * col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL > - col1
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 + - col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * + 40 + col2 AS col2 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT + COUNT( 63 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3252
SELECT + COUNT ( 63 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3253
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( + CAST( + 17 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-3253
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( + CAST ( + 17 AS INTEGER ) * col0 )
----

query I rowsort
SELECT ALL 89 + 66 FROM tab1
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT COUNT( * ) * + AVG ( col0 ) FROM tab2 WHERE ( col2 / col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT COUNT ( * ) * + AVG ( col0 ) FROM tab2 WHERE ( col2 / col0 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT + 97 * + CAST( col2 AS SIGNED ) - + col1 AS col1 FROM tab1
----
5718
6549
9298

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 97 * + CAST ( col2 AS INTEGER ) - + col1 AS col1 FROM tab1
----
5718
6549
9298

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 48 * + 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 22 + 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT ALL 23 + - SUM( col0 ) DIV - 92 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL 23 + - SUM ( col0 ) / - 92 AS col0 FROM tab2
----
25

query I rowsort
SELECT + ( 7 ) * - col1 AS col2 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT col1 + + col2 DIV - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT col1 + + col2 / - col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 76 + - 95 FROM tab1 cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3264
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT MIN( + col2 ) + 84 AS col0 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-3265
SELECT MIN ( + col2 ) + 84 AS col0 FROM tab1
----
143

query I rowsort
SELECT ( - 24 ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( - 97 ) IS NULL
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - col2 * - col2 IN ( + col2 / - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( - 98 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( - 98 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - + COUNT( * ) + 64 AS col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - + COUNT ( * ) + 64 AS col0 FROM tab1 AS cor0
----
61

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col0 * - col1 AS col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + 71 * MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
6816

skipif mysql # not compatible
query I rowsort label-3274
SELECT + 71 * MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
6816

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 + - 81 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT DISTINCT col0 + + col0 + col0 DIV col2 FROM tab1
----
102
171
183

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT col0 + + col0 + col0 / col2 FROM tab1
----
102
171
183

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL - CAST( - 84 AS SIGNED ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - CAST ( - 84 AS INTEGER ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT col0 * - 82 + - col2 AS col0 FROM tab0
----
-1277
-7144
-8053

query I rowsort
SELECT ALL 8 + + col1 * col1 AS col0 FROM tab1
----
204
2217
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( - 22 * 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT + 67 - + COUNT( * ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + 67 - + COUNT ( * ) AS col2 FROM tab2
----
64

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) + col1 / col0 BETWEEN ( + col1 + - 79 ) AND NULL
----

query I rowsort
SELECT ALL - 61 * - - 63 + 73 FROM tab2
----
-3770
-3770
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE col2 = - 65
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE col2 = - 65
----
0

query I rowsort
SELECT 97 * - col1 FROM tab0 WHERE NULL <= col0 + col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL ( CAST( col0 AS SIGNED ) ) - + col2 AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL ( CAST ( col0 AS INTEGER ) ) - + col2 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT col0 + + - 45 + - 68 * col1 AS col2 FROM tab1
----
-300
-3150
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL MIN( DISTINCT - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL MIN ( DISTINCT - - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - COUNT( * ) * + - 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3292
SELECT - COUNT ( * ) * + - 49 FROM tab1 AS cor0
----
147

query I rowsort
SELECT col2 * 24 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT - SUM( ALL + ( 34 ) ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - SUM ( ALL + ( 34 ) ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT ALL - 15 * 28 AS col0 FROM tab2 AS cor0
----
-420
-420
-420

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3297
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MIN( DISTINCT - ( 98 ) ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3299
SELECT MIN ( DISTINCT - ( 98 ) ) FROM tab1 AS cor0
----
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( + col0 )
----
15
81
47

query I rowsort
SELECT ALL + - 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ( - col0 ) + col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT COUNT( ( + 67 ) ) FROM tab0 AS cor0 WHERE NOT ( - col2 / - ( 30 ) + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3303
SELECT COUNT ( ( + 67 ) ) FROM tab0 AS cor0 WHERE NOT ( - col2 / - ( 30 ) + col2 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= col1 - + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - ( + SUM( ALL + 76 ) ) AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( + SUM ( ALL + 76 ) ) AS col2 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT ALL 33 * col1 AS col2 FROM tab0
----
2673
33
693

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( + col0 ) < + 5
----

query I rowsort
SELECT ALL 60 * + + 72 FROM tab2
----
4320
4320
4320

query I rowsort
SELECT col0 * - 96 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT ALL - + ( 36 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT COUNT( * ) * - CAST( - COUNT( ALL + 47 ) AS SIGNED ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3312
SELECT COUNT ( * ) * - CAST ( - COUNT ( ALL + 47 ) AS INTEGER ) col1 FROM tab1
----
9

query I rowsort
SELECT 92 + - 30 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT COUNT( * ) + - 75 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3314
SELECT COUNT ( * ) + - 75 AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3315
SELECT DISTINCT + COUNT( ALL + + 38 ) AS col1, - CAST( + 81 AS SIGNED ) AS col1 FROM tab1
----
3
-81

skipif mysql # not compatible
query II rowsort label-3315
SELECT DISTINCT + COUNT ( ALL + + 38 ) AS col1, - CAST ( + 81 AS INTEGER ) AS col1 FROM tab1
----
3
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT + ( + MIN( 64 ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT + ( + MIN ( 64 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + + 78 AS col0 FROM tab1
----
3978
6630
7098

query II rowsort
SELECT DISTINCT 33 * col2 AS col2, + col0 FROM tab0
----
1551
15
3267
97
330
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3319
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col1 * - 65 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3319
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col1 * - 65 AND NULL
----

query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 88 NOT BETWEEN col2 * - ( col1 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT + - 37 + + COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + - 37 + + COUNT ( * ) FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col0 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - CAST( - - col0 AS SIGNED ) + + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CAST ( - - col0 AS INTEGER ) + + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT - - 61 * + AVG ( DISTINCT - 72 ) - - MIN( + 55 ) + - 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-3325
SELECT DISTINCT - - 61 * + AVG ( DISTINCT - 72 ) - - MIN ( + 55 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3326
SELECT ALL - + COUNT( * ) DIV - 27 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - + COUNT ( * ) / - 27 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + COUNT( * ) * MAX( + col1 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3327
SELECT + COUNT ( * ) * MAX ( + col1 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - + col2 + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-3328
SELECT - + col2 + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT - - col2 + + col1 * + 91 * + col1 FROM tab0 cor0
----
190
40141
597098

query I rowsort
SELECT DISTINCT + - 7 * 86 + col1 - 93 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-113516
-170492
-9622

query I rowsort
SELECT DISTINCT 33 - + col1 FROM tab2
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - COUNT( * ) + - - 13 + + + 88 * - SUM( DISTINCT - + 42 ) * + + 28 + - 7 AS col2 FROM tab0
----
103491

skipif mysql # not compatible
query I rowsort label-3332
SELECT - COUNT ( * ) + - - 13 + + + 88 * - SUM ( DISTINCT - + 42 ) * + + 28 + - 7 AS col2 FROM tab0
----
103491

query I rowsort
SELECT ALL + 56 + col0 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - COUNT( * ) + - ( COUNT( + 97 ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) + - ( COUNT ( + 97 ) ) FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND - + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL COUNT( * ) - - - SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL COUNT ( * ) - - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3337
SELECT DISTINCT - 81, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3337
SELECT DISTINCT - 81, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-81
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 + - col0 + - - col2 * col0 + 71 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT SUM ( - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + - COUNT( - - col0 ) + + 89 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3343
SELECT + - COUNT ( - - col0 ) + + 89 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + + 88 + - + ( - 79 ) AS col0 FROM tab1 cor0
----
167
167
167

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT 35 + + + 82 DIV - col0 col0 FROM tab0 AS cor0
----
30
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT DISTINCT 35 + + + 82 / - col0 col0 FROM tab0 AS cor0
----
30
35

query I rowsort
SELECT ALL - 14 * + 58 FROM tab0 AS cor0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + SUM( - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3347
SELECT + SUM ( - + col0 ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL 76 AS col1, - 33 FROM tab2 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * - col0 col1 FROM tab1
----
-3723
-6205
-6643

query III rowsort
SELECT * FROM tab1 WHERE ( + 31 ) + + col1 NOT IN ( - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT 72 * - - CAST( + col1 AS SIGNED ), - col0 AS col0 FROM tab2
----
3672
-46
4824
-75
5544
-64

skipif mysql # not compatible
query II rowsort label-3351
SELECT 72 * - - CAST ( + col1 AS INTEGER ), - col0 AS col0 FROM tab2
----
3672
-46
4824
-75
5544
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 0 NOT BETWEEN - ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + 2 + - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + 2 + - + col2 IS NULL
----
0

query I rowsort
SELECT 12 * - col1 * + - col1 + 64 FROM tab0 cor0
----
5356
76
78796

query I rowsort
SELECT ALL + + col2 + + 57 FROM tab2 AS cor0
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT - 86 + - MAX( col0 ) FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-3356
SELECT - 86 + - MAX ( col0 ) FROM tab2 AS cor0
----
-161

query I rowsort
SELECT DISTINCT - 64 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-64

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col2 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT 69 * + ( + col0 ) - - 43 + - col2 - - col1 * col1 DIV - 90 FROM tab0
----
6032
6637
959

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 69 * + ( + col0 ) - - 43 + - col2 - - col1 * col1 / - 90 FROM tab0
----
6032
6637
959

query I rowsort
SELECT 55 * 68 * + col0 FROM tab1
----
190740
317900
340340

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3361
SELECT DISTINCT - CAST( - - CAST( - col0 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - CAST ( - - CAST ( - col0 AS REAL ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col1 * col1 + col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col1 * - col2 + + col0 AS col2 FROM tab0 cor0
----
-123
-2
-3792

query I rowsort
SELECT - + col2 * - + 80 FROM tab0 AS cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 30 NOT BETWEEN ( + ( - - col0 ) + col2 / col2 ) AND + ( col2 ) * 43 AND + col0 * + col1 BETWEEN ( + col1 / col1 - - ( col1 + col2 ) ) AND NULL
----

query I rowsort
SELECT - 95 AS col0 FROM tab2
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - COUNT( - + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3369
SELECT - COUNT ( - + col1 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3371
SELECT COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 20 * + + 81 AS col1 FROM tab0
----
-1620
-1620
-1620

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
15
87
97

query I rowsort
SELECT col2 + + col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 54 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 76 AS col2, 10 + + 97 FROM tab2 AS cor0
----
76
107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3377
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + CAST( + col2 AS SIGNED ) * - - col1 + - - col1 - + col2, 53 * + 63 + + - CAST( NULL AS SIGNED ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-3377
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + CAST ( + col2 AS INTEGER ) * - - col1 + - - col1 - + col2, 53 * + 63 + + - CAST ( NULL AS INTEGER ) / - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - 98 AS col0, + MIN( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-98
59

skipif mysql # not compatible
query II rowsort label-3378
SELECT - 98 AS col0, + MIN ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-98
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + + col0 + - + col1 * 53 AS col1 FROM tab0 cor0
----
-1036
-4325
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1 col2, col0 FROM tab2
----
117
64
125
75
74
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3382
SELECT + col2 + col2 - ( 5 ) * - - CAST( NULL AS DECIMAL ), 34 * - 19 * - col0 AS col1 FROM tab1
----
NULL
32946
NULL
54910
NULL
58786

skipif mysql # not compatible
query II rowsort label-3382
SELECT + col2 + col2 - ( 5 ) * - - CAST ( NULL AS REAL ), 34 * - 19 * - col0 AS col1 FROM tab1
----
NULL
32946
NULL
54910
NULL
58786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab1 WHERE NOT + col0 * + col2 * - col1 + col0 * - 89 IS NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - COUNT( * ) * + SUM( DISTINCT + - 27 ) + - COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3384
SELECT - COUNT ( * ) * + SUM ( DISTINCT + - 27 ) + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
72

query I rowsort
SELECT ALL + + 65 AS col2 FROM tab2 cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR + 53 + ( + 64 ) - + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( 10 ) AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL = + col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * 91 col2 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3390
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT DISTINCT 65 AS col2, col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE CAST( + ( 29 ) AS SIGNED ) * - CAST( + + col2 AS SIGNED ) < col0 * - col0 + + 49
----
65
NULL

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT 65 AS col2, col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE CAST ( + ( 29 ) AS INTEGER ) * - CAST ( + + col2 AS INTEGER ) < col0 * - col0 + + 49
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT COUNT( * ) - 9 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT COUNT ( * ) - 9 AS col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT - 90 + COUNT( * ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - 90 + COUNT ( * ) AS col2 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL COUNT( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + 64 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + 64 IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT - 62 - + col2 + + - col2 AS col0 FROM tab0 AS cor0
----
-156
-260
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT + COUNT( ALL + col0 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT + COUNT ( ALL + col0 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 * col0 * - - col0 + + col1, col1 FROM tab0 AS cor0
----
158970
21
18306
81
9410
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT DISTINCT + col0 DIV + + ( 21 ) AS col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + col0 / + + ( 21 ) AS col0 FROM tab0 AS cor0
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + ( - + MIN( ALL - 9 ) ) * + 87 AS col0 FROM tab2 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-3400
SELECT + ( - + MIN ( ALL - 9 ) ) * + 87 AS col0 FROM tab2 AS cor0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + MAX( ALL + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3401
SELECT + MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * + col2 col1 FROM tab2
----
-2139
-3720
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT - COUNT( * ) / MAX( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - COUNT ( * ) / MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab2
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col2 + + col2 FROM tab2 AS cor0 WHERE ( - 86 ) IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT SUM( DISTINCT + col1 ) + 64 FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-3408
SELECT SUM ( DISTINCT + col1 ) + 64 FROM tab0
----
167

query I rowsort
SELECT ( + 93 ) + col2 FROM tab1 AS cor0
----
152
161
189

query I rowsort
SELECT col2 / - - col1 / col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - 88 + + col0 * col0 FROM tab0 cor0
----
137
7481
9321

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT col2 + + ( - - col1 ) + - 22 DIV + 70 FROM tab2 cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3412
SELECT col2 + + ( - - col1 ) + - 22 / + 70 FROM tab2 cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT + ( + 76 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-3413
SELECT + ( + 76 ) / col1 AS col0 FROM tab0 AS cor0
----
0
3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - ( + ( - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT - ( + ( - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + 9 ) * + ( + col0 ) + - - 8 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT + - COUNT( * ) - + CAST( + + SUM( ALL - 76 ) AS SIGNED ) AS col1 FROM tab0 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - COUNT ( * ) - + CAST ( + + SUM ( ALL - 76 ) AS INTEGER ) AS col1 FROM tab0 WHERE + + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + 29 - - col0 FROM tab2
----
-1288
-1792
-2100

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= + + 12 + + col1
----
15
81
47

query I rowsort
SELECT + + 57 + + 65 FROM tab2 WHERE NULL <> col2
----

query II rowsort
SELECT ALL col0 AS col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + col1 - 24 DIV - 8 + - col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3421
SELECT + col1 - 24 / - 8 + - col1 FROM tab2
----
3
3
3

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - col2 FROM tab0 WHERE ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT 14 * + MAX( DISTINCT + col2 ) FROM tab2
----
812

skipif mysql # not compatible
query I rowsort label-3424
SELECT 14 * + MAX ( DISTINCT + col2 ) FROM tab2
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - - 94 * + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - - 94 * + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - + col1 col1, + 9 AS col0 FROM tab0 AS cor0
----
-210
9
-3807
9
-99
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 / - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT 9 * - - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-3428
SELECT 9 * - - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
891

query I rowsort
SELECT - 96 * - + 83 FROM tab1 AS cor0
----
7968
7968
7968

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 / - col0 IN ( + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT + MIN( col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT DISTINCT + MIN ( col2 ) col2 FROM tab1 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT MIN( ALL - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - col1 + + col0, ( col0 ) - + 29, col0 + 20 * col1, - col1 )
----

query I rowsort
SELECT ALL + ( + - col1 ) * col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT 20 DIV - col2 FROM tab1 WHERE NOT + 45 + + + ( - col1 ) * - + col1 BETWEEN col0 AND 46
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT 20 / - col2 FROM tab1 WHERE NOT + 45 + + + ( - col1 ) * - + col1 BETWEEN col0 AND 46
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3439
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 99 >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3443
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + CAST( 7 AS SIGNED ), 81 / + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3443
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + CAST ( 7 AS INTEGER ), 81 / + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - + ( + + 71 )
----

query I rowsort
SELECT DISTINCT - col2 * - 22 + + 17 AS col1 FROM tab2 AS cor0
----
1293
523
897

onlyif mysql # DIV for integer division: 
query II rowsort label-3446
SELECT ALL - + 16 DIV - 68 AS col1, + col2 AS col0 FROM tab1 cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL - + 16 / - 68 AS col1, + col2 AS col0 FROM tab1 cor0
----
0
59
0
68
0
96

query I rowsort
SELECT ALL - + col0 * - col2 * - + ( col2 ) + + + 14 + - col0 FROM tab0 cor0
----
-33136
-8773
-950780

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - MAX( + ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - MAX ( + ( col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT + + col1 + + col2, col0 + 23 AS col2 FROM tab1 AS cor0
----
110
74
115
114
64
108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col2 + + + 71 + + + col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT - 59 * ( COUNT( * ) ) * COUNT( + + col0 ) DIV - 49 + + 99 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - 59 * ( COUNT ( * ) ) * COUNT ( + + col0 ) / - 49 + + 99 FROM tab2 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - MAX( + col2 ) + 42 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - MAX ( + col2 ) + 42 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + col0 + 92 FROM tab2
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( 18 ) + + + 59 AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( 18 ) + + + 59 AS col0 FROM tab2
----
62

query I rowsort
SELECT DISTINCT col0 * col1 - + - col0 AS col1 FROM tab0
----
1230
1914
194

query I rowsort
SELECT ALL col2 + - 68 + + col0 * - col0 FROM tab1
----
-2573
-7234
-8281

query I rowsort
SELECT - 60 * + + 24 * + col0 FROM tab1
----
-122400
-131040
-73440

query I rowsort
SELECT 12 FROM tab0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT 87 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3460
SELECT 87 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 76 FROM tab0 AS cor0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT ALL - 79 + + - 48 FROM tab1 AS cor0
----
-127
-127
-127

onlyif mysql # DIV for integer division: 
query II rowsort label-3463
SELECT ( 3 ) * col2 - col0 + + 73 DIV - - col2, col1 * - + col0 * + 92 AS col1 FROM tab2 AS cor0
----
100
-462300
26
-215832
57
-453376

skipif mysql # not compatible
query II rowsort label-3463
SELECT ( 3 ) * col2 - col0 + + 73 / - - col2, col1 * - + col0 * + 92 AS col1 FROM tab2 AS cor0
----
100
-462300
26
-215832
57
-453376

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL SUM( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL SUM ( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN - + col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 + + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3468
SELECT ALL CAST( NULL AS SIGNED ), - 53 * - + col2 AS col2 FROM tab1 AS cor0
----
NULL
3127
NULL
3604
NULL
5088

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL CAST ( NULL AS INTEGER ), - 53 * - + col2 AS col2 FROM tab1 AS cor0
----
NULL
3127
NULL
3604
NULL
5088

query II rowsort
SELECT col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT + COUNT( + 74 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT DISTINCT + COUNT ( + 74 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT - COUNT( * ) AS col0, - 93 FROM tab2 AS cor0
----
-3
-93

skipif mysql # not compatible
query II rowsort label-3471
SELECT - COUNT ( * ) AS col0, - 93 FROM tab2 AS cor0
----
-3
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 34 * - 89 * + - col1 AS col2 FROM tab0 AS cor0
----
245106
3026
63546

query II rowsort
SELECT ALL + - 41, + col0 * ( 55 ) AS col2 FROM tab0 AS cor0
----
-41
4785
-41
5335
-41
825

query I rowsort
SELECT ALL - ( + - ( - ( + - col0 ) ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 34 col2, - col1 + ( 98 ) FROM tab0 AS cor0
----
-34
17
-34
77
-34
97

query I rowsort
SELECT - ( - col0 ) * + ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + MAX( 72 ) * 57 FROM tab0
----
4104

skipif mysql # not compatible
query I rowsort label-3478
SELECT + MAX ( 72 ) * 57 FROM tab0
----
4104

query I rowsort
SELECT DISTINCT 32 * col0 * - col0 FROM tab0
----
-242208
-301088
-7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3480
SELECT + col1 * ( + + CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT + 21 BETWEEN col2 AND - col0 + + col1 + - 79 / - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT + col1 * ( + + CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT + 21 BETWEEN col2 AND - col0 + + col1 + - 79 / - col1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - COUNT( * ) * - ( + MAX( DISTINCT + col2 ) ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - COUNT ( * ) * - ( + MAX ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) * 6 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 6 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 * 72 * - 6 FROM tab0
----
304560
375840
4148496

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL 5 * - + COUNT( ALL col2 ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL 5 * - + COUNT ( ALL col2 ) AS col0 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - + MIN( + col0 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - + MIN ( + col0 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 / - - ( col1 ) / + 8 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 / - - ( col1 ) / + 8 * - CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col2 col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - MAX( ALL - col2 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - MAX ( ALL - col2 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 47 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - - COUNT( - 78 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3494
SELECT - - COUNT ( - 78 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 46 AS col2, col1 * 55 FROM tab1 AS cor0
----
-46
2585
-46
275
-46
770

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT - - 60 DIV - 74 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT - - 60 / - 74 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + - col1 + + col1 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + 24, - 47 FROM tab1 WHERE - 17 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL MIN( - + col1 ) + MAX( ALL 63 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL MIN ( - + col1 ) + MAX ( ALL 63 ) FROM tab1
----
16

query I rowsort
SELECT col0 * - - 72 - 84 FROM tab1
----
3588
6036
6468

query I rowsort
SELECT 84 - col1 FROM tab2
----
17
33
7

query I rowsort
SELECT DISTINCT col0 * + 57 - + 2 + + - 79 + col1 FROM tab2
----
2592
3644
4261

query I rowsort
SELECT + - ( + 73 ) + col0 + + 48 AS col0 FROM tab2 AS cor0
----
21
39
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + ( + MIN( ALL - + ( + - 30 ) ) ) col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3505
SELECT ALL + ( + MIN ( ALL - + ( + - 30 ) ) ) col0 FROM tab0 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3507
SELECT - CAST( NULL AS SIGNED ) col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3507
SELECT - CAST ( NULL AS INTEGER ) col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT DISTINCT - - 58 AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + + 80 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + SUM( + - col1 ) * - - COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-3512
SELECT + SUM ( + - col1 ) * - - COUNT ( * ) FROM tab0
----
-309

query I rowsort
SELECT + 50 * + col1 AS col2 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( * ) * - - 22 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( * ) * - - 22 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3515
SELECT CAST( - col0 AS SIGNED ) AS col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-3515
SELECT CAST ( - col0 AS INTEGER ) AS col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 1 + col0 + 14 FROM tab1
----
100
106
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT - col0 DIV col2 + - + 17 DIV + - col2 + - 5 FROM tab0
----
-12
-5
-5

skipif mysql # not compatible
query I rowsort label-3518
SELECT - col0 / col2 + - + 17 / + - col2 + - 5 FROM tab0
----
-12
-5
-5

query I rowsort
SELECT col1 + - 22 FROM tab1
----
-17
-8
25

query I rowsort
SELECT col1 + + - col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT ALL - col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + + ( + - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT COUNT( * ) + + ( - COUNT( * ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT COUNT ( * ) + + ( - COUNT ( * ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ( + + 95 ) FROM tab1
----
95
95
95

query I rowsort
SELECT ALL ( - - 64 ) + - col2 FROM tab2
----
24
41
6

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( + 51 ) AS col2, col0 AS col2 FROM tab1 AS cor0
----
51
51
51
85
51
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT + 93 * + - col2 FROM tab0 AS cor0
----
-4371
-9207
-930

query I rowsort
SELECT ALL + ( + 71 ) AS col1 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT - COUNT( * ) * - - MIN( + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COUNT ( * ) * - - MIN ( + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 6 + - col2 + - + 89 * + - col2 * - col1 FROM tab0 AS cor0
----
-18706
-338876
-8916

query I rowsort
SELECT - col0 + + 0 AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + 19 col1 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT 33 + + col1 AS col2 FROM tab0
----
114
34
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT col1 FROM tab0 WHERE + 22 * - col2 * 44 / - col0 + + CAST( + col2 AS SIGNED ) * - + col1 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3537
SELECT col1 FROM tab0 WHERE + 22 * - col2 * 44 / - col0 + + CAST ( + col2 AS INTEGER ) * - + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT ( + + ( - ( - - col1 ) ) ) - + - col0 AS col2 FROM tab1
----
37
44
80

query II rowsort
SELECT ALL - 18, col0 FROM tab2 AS cor0
----
-18
46
-18
64
-18
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - + MAX( + 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3540
SELECT - + MAX ( + 71 ) FROM tab0 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col1, 91 * + - ( - col1 ) FROM tab2 AS cor0
----
57
4641
57
6097
57
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT col0 DIV - 82 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT col0 / - 82 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT 97 AS col2 FROM tab0 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 * + 80 >= + col1 + + col2
----

query II rowsort
SELECT + ( + col1 ), + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - + 25 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT + + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 79 * col0 col1 FROM tab1 AS cor0
----
386784
396185
488852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT ( - CAST( + AVG ( ALL + 54 ) AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ( - CAST ( + AVG ( ALL + 54 ) AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT 46 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3550
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 46 IS NULL
----
-3

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + + col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT MIN( - ( + 75 ) ) AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT MIN ( - ( + 75 ) ) AS col1 FROM tab0
----
-75

query I rowsort
SELECT - + 89 * - col1 AS col0 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT - COUNT( * ) + + MIN( ALL col1 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3554
SELECT - COUNT ( * ) + + MIN ( ALL col1 ) FROM tab1 AS cor0
----
2

query III rowsort
SELECT * FROM tab2 WHERE + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 NOT BETWEEN NULL AND - col2 * - CAST( NULL AS SIGNED ) - - - 40 / 57 * - - col1
----

skipif mysql # not compatible
query III rowsort label-3556
SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 NOT BETWEEN NULL AND - col2 * - CAST ( NULL AS INTEGER ) - - - 40 / 57 * - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT CAST( + COUNT( ALL - - 11 ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT CAST ( + COUNT ( ALL - - 11 ) AS INTEGER ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( - col1 ) - + - 47 + + ( 2 ) - - - col2 BETWEEN NULL AND - col2 - - - 67 * 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( NULL AS SIGNED ) - + 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( NULL AS INTEGER ) - + 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT COUNT( + 22 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3560
SELECT COUNT ( + 22 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 17 * + 70 * - col2 AS col0 FROM tab2 AS cor0
----
-27370
-47600
-69020

query I rowsort
SELECT ALL + + col2 + - + 76 AS col2 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT + 54 col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3563
SELECT + 54 col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3564
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 + - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3564
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 + - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT + col2 + - 29 DIV col0 * + 40 * + - 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + col2 + - 29 / col0 * + 40 * + - 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + - col0 * col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 23 col0 FROM tab2 AS cor0
----
-51
23
-67
23
-77
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE + 95 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT ALL COUNT( * ) + + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL COUNT ( * ) + + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> ( 12 / + - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + 13 * + 23 * + COUNT( * ) FROM tab2
----
897

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + 13 * + 23 * + COUNT ( * ) FROM tab2
----
897

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3572
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( + col1 AS DECIMAL ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( + col1 AS REAL ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 22 * - 29 FROM tab0 AS cor0
----
-638

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3575
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3575
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab1 cor0
----
89

query II rowsort
SELECT DISTINCT + - 98, 70 AS col1 FROM tab1 AS cor0
----
-98
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3579
SELECT - ( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT - ( - + 37 ) + - 70 * - 62 IN ( + + col1, col1, 60, + col0, - ( - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT - ( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT - ( - + 37 ) + - 70 * - 62 IN ( + + col1, col1, 60, + col0, - ( - CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + COUNT( * ) * - + 9 AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3580
SELECT + COUNT ( * ) * - + 9 AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3581
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 * - ( - CAST( NULL AS DECIMAL ) ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3581
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 * - ( - CAST ( NULL AS REAL ) ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + 94 FROM tab2 AS cor0
----
51
94
67
94
77
94

query I rowsort
SELECT DISTINCT col0 + - + col0 * - + 80 * + 99 FROM tab2
----
364366
506944
594075

query I rowsort
SELECT DISTINCT + col0 + - col0 - + col2 * + + col0 * 98 * + - 84 AS col0 FROM tab1
----
40303872
41283480
50939616

query I rowsort
SELECT + col1 * - col2 + - col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + 3 + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 3 + + COUNT ( * ) AS col0 FROM tab2
----
6

query II rowsort
SELECT - 31 * + ( - col0 ) + col1 + + col1 AS col0, - col2 AS col0 FROM tab2
----
1528
-23
2138
-40
2459
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + - + col1 col1 FROM tab0
----
-20
-80
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 77 + col1 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + MAX( ALL 11 ) * 78 FROM tab1
----
858

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + MAX ( ALL 11 ) * 78 FROM tab1
----
858

query II rowsort
SELECT ALL + - ( + 77 ), + ( - col2 ) AS col2 FROM tab2 cor0
----
-77
-23
-77
-40
-77
-58

query I rowsort
SELECT DISTINCT - col1 + - col2 - + 54 FROM tab2 AS cor0
----
-128
-171
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + COUNT( * ) - 38 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + COUNT ( * ) - 38 FROM tab1 cor0
----
-35

query I rowsort
SELECT ALL col0 * - 22 + + col0 AS col1 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT - + ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) + - - col1 IN ( - - ( - 37 ) + 35, - 12, + 4 * + - col1 / - - col0, - - col1 - + col2 * - + col2 )
----

query I rowsort
SELECT - - col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT + + 44 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 * + ( + 50 ) AS col1 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( + 59 ) AS col0 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab1
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT DISTINCT 73 * 56 AS col1 FROM tab2
----
4088

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < + + 57 / 56
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV + 30 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / + 30 AS col2 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL COUNT( - 72 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT ALL COUNT ( - 72 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL <= 17 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 + + 89 AS col0 FROM tab2 AS cor0
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + - MAX( DISTINCT - col1 ) + + + COUNT( * ) + - + 18 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3612
SELECT + - MAX ( DISTINCT - col1 ) + + + COUNT ( * ) + - + 18 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 63 AS col1 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT 20 * 38 * + col0 FROM tab1 AS cor0
----
38760
64600
69160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3616
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + - 86 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 / col0 + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 / col0 + - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT - COUNT( DISTINCT + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3620
SELECT ALL col2 AS col1, col0 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3620
SELECT ALL col2 AS col1, col0 * - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT * FROM tab2 WHERE NULL = 49
----

query I rowsort
SELECT ALL - col1 + - 32 + + 99 * col0 AS col0 FROM tab0
----
1372
8560
9570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT - + MIN( ALL - CAST( NULL AS SIGNED ) ) * 61 FROM tab1 WHERE NULL <> ( + col1 ) * - 87 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 61 FROM tab1 WHERE NULL <> ( + col1 ) * - 87 - + 74
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3627
SELECT + COUNT( * ) - - COUNT( * ) DIV + 86 + + MAX( ALL - col1 ), + ( + COUNT( * ) ) + - 42 AS col2 FROM tab1 AS cor0
----
-2
-39

skipif mysql # not compatible
query II rowsort label-3627
SELECT + COUNT ( * ) - - COUNT ( * ) / + 86 + + MAX ( ALL - col1 ), + ( + COUNT ( * ) ) + - 42 AS col2 FROM tab1 AS cor0
----
-2
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3629
SELECT ALL + CAST( - 15 AS SIGNED ) AS col1, - 24 AS col1 FROM tab1 cor0
----
-15
-24
-15
-24
-15
-24

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL + CAST ( - 15 AS INTEGER ) AS col1, - 24 AS col1 FROM tab1 cor0
----
-15
-24
-15
-24
-15
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3630
SELECT + + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT + + col1 DIV + 63 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3631
SELECT + + col1 / + 63 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL 90 AS col0 FROM tab0 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + - ( + col1 ) + - col2 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + - ( + col1 ) + - col2 * + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + SUM( + + 68 ) AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + SUM ( + + 68 ) AS col2 FROM tab0
----
204

query I rowsort
SELECT DISTINCT - col1 * + - 97 * col2 FROM tab1
----
130368
28615
310012

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - - ( + - ( + col1 ) ) - 96 - + col1 + 93 * + 38 BETWEEN - ( 29 ) AND NULL
----

query II rowsort
SELECT + col0, + col1 + - + ( + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT + col2 AS col1, 2 + 77, + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 231f0049ffdaa881506e079b89490101

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + 94 + COUNT( * ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + 94 + COUNT ( * ) AS col1 FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT + 57 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 57 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col2 AS col0, - 59 FROM tab0
----
10
-59
47
-59
99
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + COUNT( * ) * 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) * 11 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - 62 * COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 62 * COUNT ( * ) FROM tab2 AS cor0
----
-186

query I rowsort
SELECT DISTINCT + + 99 FROM tab1 AS cor0 WHERE ( NULL ) > - + col1
----

query II rowsort
SELECT + + col0 * - col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - 72 + - + COUNT( * ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 72 + - + COUNT ( * ) FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - + CAST( - 25 AS SIGNED ) + - - col1 + + - col0 + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-70
400
6652

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - + CAST ( - 25 AS INTEGER ) + - - col1 + + - col0 + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-70
400
6652

query I rowsort
SELECT DISTINCT + - 40 FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT + + CAST( - 10 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
-9
11
71

skipif mysql # not compatible
query I rowsort label-3653
SELECT + + CAST ( - 10 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
-9
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + SUM( + col0 ) + - - 36 FROM tab2 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + SUM ( + col0 ) + - - 36 FROM tab2 AS cor0
----
221

query I rowsort
SELECT DISTINCT 47 + 42 - - 54 * - col1 FROM tab1 AS cor0
----
-181
-2449
-667

query I rowsort
SELECT DISTINCT col1 * - ( ( col1 ) ) + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT + col2 + + ( - col1 ) FROM tab2 cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 * - ( - + ( - col2 ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 36 + - col1 FROM tab0
----
-45
15
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + COUNT( * ) + - COUNT( + - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COUNT ( * ) + - COUNT ( + - col1 ) FROM tab0
----
0

query I rowsort
SELECT + 96 + + + col2 FROM tab0
----
106
143
195

query II rowsort
SELECT ALL 74 + - - col0 AS col0, - col0 * - col2 AS col2 FROM tab2
----
120
1058
138
2560
149
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT - col1 + + col2 * + CAST( NULL AS SIGNED ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT - col1 + + col2 * + CAST ( NULL AS INTEGER ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT + ( + + 8 ) AS col2 FROM tab0 cor0
----
8

query I rowsort
SELECT 33 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT + col0 DIV - col0 - col1 * col2 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-3667
SELECT + col0 / - col0 - col1 * col2 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 - 46 col0 FROM tab1 AS cor0
----
-112
-112
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + SUM( ALL - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + SUM ( ALL - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

query I rowsort
SELECT - 28 - + col2 * + 51 FROM tab1
----
-3037
-3496
-4924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3671
SELECT ALL COUNT( * ) DIV + 23 + + CAST( + - 72 AS SIGNED ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COUNT ( * ) / + 23 + + CAST ( + - 72 AS INTEGER ) FROM tab0
----
-72

query II rowsort
SELECT + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - 66 FROM tab0 AS cor0
----
10
-66
47
-66
99
-66

query II rowsort
SELECT - + col0, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3676
SELECT - MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT - col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + + 18 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT SUM( - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3679
SELECT SUM ( - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 94 * - col2 - + col0 FROM tab1 cor0 WHERE NOT 82 + - + 59 BETWEEN col1 AND - 57
----
5461
6301
8973

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT ALL col1 DIV - - col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL col1 / - - col0 AS col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 37 col0, - col0 FROM tab1
----
-2183
-85
-2516
-91
-3552
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + + 99 * + ( - SUM( 34 ) ) FROM tab2 AS cor0
----
-10098

skipif mysql # not compatible
query I rowsort label-3683
SELECT + + 99 * + ( - SUM ( 34 ) ) FROM tab2 AS cor0
----
-10098

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + + MIN( DISTINCT - + 82 ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3684
SELECT + + MIN ( DISTINCT - + 82 ) AS col0 FROM tab0 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT + + 91 * col2 DIV col1 FROM tab0 AS cor0
----
43
52
9009

skipif mysql # not compatible
query I rowsort label-3685
SELECT + + 91 * col2 / col1 FROM tab0 AS cor0
----
43
52
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT - col1 ) DIV - 75 AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT - col1 ) / - 75 AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT ALL * FROM tab0 cor0 WHERE NOT 54 > + CAST( - col1 AS SIGNED ) / - 41 + + + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-3687
SELECT ALL * FROM tab0 cor0 WHERE NOT 54 > + CAST ( - col1 AS INTEGER ) / - 41 + + + col0
----
87
21
10
97
1
99

query II rowsort
SELECT ALL - + 16, col0 FROM tab2 cor0
----
-16
46
-16
64
-16
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + MIN( ALL col2 ) * - COUNT( * ) + MAX( ALL - - col0 ) col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3689
SELECT + MIN ( ALL col2 ) * - COUNT ( * ) + MAX ( ALL - - col0 ) col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT - 86 + - 38 AS col0 FROM tab1 AS cor0
----
-124

query II rowsort
SELECT col2 AS col0, col2 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - MIN( ALL + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3692
SELECT - MIN ( ALL + col1 ) FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 21 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - SUM( + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3694
SELECT - SUM ( + + col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + col2 col0 FROM tab2 cor0
----
46
63
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT ALL 16 DIV + - 24 + - ( col2 ) + + col0 * col2 * col2 AS col0 FROM tab1
----
295826
420716
469920

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 16 / + - 24 + - ( col2 ) + + col0 * col2 * col2 AS col0 FROM tab1
----
295826
420716
469920

query I rowsort
SELECT - ( + + 83 ) * - col2 FROM tab1 WHERE NULL IS NULL
----
4897
5644
7968

query II rowsort
SELECT DISTINCT col1, col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col0 + col0 + - col2 / - col0 + - col1 + + - col1 + - + col1 * + col1 IS NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
51
67
77

query I rowsort
SELECT col1 * + col1 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
2573
4480
5892

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT ALL - 20 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-20
0

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL - 20 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT MAX( - 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3704
SELECT MAX ( - 65 ) FROM tab0 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT - CAST( NULL AS SIGNED ) + + + 76 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CAST ( NULL AS INTEGER ) + + + 76 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3707
SELECT ALL * FROM tab0 WHERE NOT NULL <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3707
SELECT ALL * FROM tab0 WHERE NOT NULL <> - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 97 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3709
SELECT * FROM tab1 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3709
SELECT * FROM tab1 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 83 FROM tab0
----
-1743
-6723
-83

query I rowsort
SELECT col1 * + + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT + col1 * + + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT - COUNT( * ) DIV + + SUM( DISTINCT - + 23 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( * ) / + + SUM ( DISTINCT - + 23 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT COUNT( * ) + + 50 col1 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3714
SELECT COUNT ( * ) + + 50 col1 FROM tab1
----
53

query I rowsort
SELECT DISTINCT + 3 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 65 AS col0, - col2 FROM tab0 AS cor0
----
65
-10
65
-47
65
-99

query I rowsort
SELECT DISTINCT - 40 + - - 20 AS col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE NOT + col0 IN ( - 17 * col0 + 71 )
----
-14
-14
-14

query I rowsort
SELECT 63 + - col1 FROM tab1
----
16
49
58

query I rowsort
SELECT ALL 96 * + col2 FROM tab2
----
2208
3840
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 WHERE NOT 95 > NULL
----

query I rowsort
SELECT - col1 * 27 + col1 * col1 AS col0 FROM tab0
----
-126
-26
4374

query I rowsort
SELECT ALL col2 * + 27 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( ALL - col1 ) AS col1 FROM tab2 WHERE 76 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( ALL - col1 ) AS col1 FROM tab2 WHERE 76 + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - COUNT( + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT - COUNT ( + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - ( + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3726
SELECT - ( + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL col1 * + 88 - 86 * + col2 FROM tab0
----
-8426
3086
988

query I rowsort
SELECT DISTINCT - 82 FROM tab2 WHERE ( col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT MAX( col2 ) * 63 AS col1 FROM tab2 WHERE ( - CAST( col1 AS SIGNED ) + + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT MAX ( col2 ) * 63 AS col1 FROM tab2 WHERE ( - CAST ( col1 AS INTEGER ) + + col0 ) IS NULL
----
NULL

query I rowsort
SELECT ( + 49 ) * col2 FROM tab1
----
2891
3332
4704

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 * col0 AS col0 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT col0 * 6 AS col2 FROM tab0
----
522
582
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + ( + col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) = ( NULL )
----

query I rowsort
SELECT + col0 * 36 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + 90 + - COUNT( * ) col0 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT DISTINCT + 90 + - COUNT ( * ) col0 FROM tab2
----
87

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 25 )
----

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col0 < col0 / - 19 + 62
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col0 < col0 / - 19 + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT + COUNT( * ) * - 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + COUNT ( * ) * - 85 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 + col1 NOT BETWEEN ( col2 * col0 + + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 + col1 NOT BETWEEN ( col2 * col0 + + col2 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 29 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL + col1 DIV col1 - col2 AS col2 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + col1 / col1 - col2 AS col2 FROM tab2 cor0
----
-22
-39
-57

query III rowsort
SELECT * FROM tab1 cor0 WHERE 51 NOT BETWEEN NULL AND 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 73 ) * col1 AS col0 FROM tab2 cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - COUNT( * ) * + SUM( ALL + col0 ) FROM tab1 cor0
----
-681

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COUNT ( * ) * + SUM ( ALL + col0 ) FROM tab1 cor0
----
-681

query I rowsort
SELECT DISTINCT + 34 * ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1734
-2890
-3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - CAST( NULL AS SIGNED ) * - 26 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - CAST ( NULL AS INTEGER ) * - 26 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT 38 - + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3750
SELECT 38 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + + ( - 92 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 85 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * col1 col1 FROM tab1 AS cor0
----
1120
3760
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT ALL COUNT( * ) DIV 79 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3756
SELECT ALL COUNT ( * ) / 79 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + 1 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL ( - - SUM( DISTINCT 19 ) ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL ( - - SUM ( DISTINCT 19 ) ) AS col1 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT - col0 DIV + col2 + - 79 FROM tab2
----
-80
-81

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - col0 / + col2 + - 79 FROM tab2
----
-80
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 WHERE NOT - col0 / - 72 + col2 <= ( NULL ) OR - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 WHERE NOT - col0 / - 72 + col2 <= ( NULL ) OR - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( col2 * ( + col1 * col2 ) ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT COUNT( 16 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT COUNT ( 16 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT col0 + - col1 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) NOT IN ( col0 )
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT col0 + - col1 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) NOT IN ( col0 )
----
-66
66
96

query I rowsort
SELECT - 26 AS col2 FROM tab1 WHERE NOT NULL < - 49
----

query I rowsort
SELECT DISTINCT 94 * - - col1 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT DISTINCT + 12 * 72 * + col0 FROM tab1
----
44064
73440
78624

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - col2 + - col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col2 * + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - SUM( ALL + 16 ) col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3770
SELECT - SUM ( ALL + 16 ) col2 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT - 72 + + MIN( - col0 ) FROM tab1 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - 72 + + MIN ( - col0 ) FROM tab1 AS cor0
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT + MAX( DISTINCT + - 78 ) + AVG ( DISTINCT + col0 + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MAX ( DISTINCT + - 78 ) + AVG ( DISTINCT + col0 + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT ( + COUNT( * ) ) + - + 43 AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT ( + COUNT ( * ) ) + - + 43 AS col0 FROM tab2
----
-40

query I rowsort
SELECT ALL 39 AS col0 FROM tab0 WHERE NOT 24 + + 85 = col1
----
39
39
39

query I rowsort
SELECT - 22 * - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 16076a595f8815c5a428320c5f0d4d77

query I rowsort
SELECT 90 * 6 - col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
449
455
489

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab0 AS cor0 WHERE NOT + 39 IS NULL
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + - 19 * 70 IN ( 62 * + col1 )
----

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 71 + col0 FROM tab0 WHERE - ( + + col2 ) * - col2 + - 90 * - 12 IS NULL AND 59 * - col0 >= ( NULL )
----

query I rowsort
SELECT col0 - - 88 * col1 FROM tab1
----
1283
4227
525

query I rowsort
SELECT ALL + col2 - - col2 + + - col0 * + + col1 FROM tab1
----
-307
-4141
-522

query III rowsort
SELECT * FROM tab1 WHERE NULL > + - 52
----

query II rowsort
SELECT ALL 85 - 10, + col2 AS col1 FROM tab1
----
75
59
75
68
75
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 ) AND NOT col1 NOT BETWEEN - ( col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - 59 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
37
9

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab0 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + - 92 * + - col2 col1 FROM tab2
----
146004
253920
368184

query I rowsort
SELECT ( - 11 ) FROM tab1
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3791
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT DISTINCT + MIN( + col1 ) * + 44, MAX( DISTINCT col0 ) AS col0 FROM tab1
----
220
91

skipif mysql # not compatible
query II rowsort label-3792
SELECT DISTINCT + MIN ( + col1 ) * + 44, MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
220
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL + 23 * CAST( - 45 AS SIGNED ) + - 13 FROM tab1 AS cor0
----
-1048
-1048
-1048

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + 23 * CAST ( - 45 AS INTEGER ) + - 13 FROM tab1 AS cor0
----
-1048
-1048
-1048

query I rowsort
SELECT + - 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL 59 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL 59 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
177

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 * + 91 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3797
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( - 70 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3797
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( - 70 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT + COUNT( * ) + + COUNT( col1 ) - - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + COUNT ( * ) + + COUNT ( col1 ) - - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
9

query II rowsort
SELECT - - 65, 60 AS col2 FROM tab0 AS cor0
----
65
60
65
60
65
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 29 ) * + + ( + - col1 ) col0 FROM tab0 AS cor0
----
2349
29
609

query I rowsort
SELECT DISTINCT - + col1 * col0 + col0 / - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * col1 AND NULL
----

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 + - 41 * - col1 AS col0 FROM tab2
----
2114
2805
3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + 73 * COUNT( * ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + 73 * COUNT ( * ) FROM tab1
----
219

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < + col2
----

query I rowsort
SELECT DISTINCT + ( - - ( - + col1 ) ) + - col0 AS col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT 30 / 86 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * - 27 AND - + col1
----

query I rowsort
SELECT - col1 + + + col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - 51 + + ( COUNT( * ) ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3809
SELECT - 51 + + ( COUNT ( * ) ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT - col1 * + ( CAST( NULL AS SIGNED ) ) + - col2 * col1 AS col1 FROM tab2 WHERE ( NOT ( - col1 ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3810
SELECT - col1 * + ( CAST ( NULL AS INTEGER ) ) + - col2 * col1 AS col1 FROM tab2 WHERE ( NOT ( - col1 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT CAST( - 22 AS SIGNED ) DIV col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT CAST ( - 22 AS INTEGER ) / col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT - ( 63 ) AS col2 FROM tab0 WHERE ( NULL BETWEEN 98 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - - 98 + - - COUNT( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
101

skipif mysql # not compatible
query I rowsort label-3813
SELECT - - 98 + - - COUNT ( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
101

query I rowsort
SELECT ALL - + 43 + + 41 FROM tab0 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 cor0 WHERE col0 > + 83 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 - + 71 ) <= + col1 )
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3818
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3818
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( col2 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT - + COUNT( ALL + - col0 ) * + AVG ( + col0 ) + 61 + - 42 FROM tab2 AS cor0 WHERE NOT 14 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - + COUNT ( ALL + - col0 ) * + AVG ( + col0 ) + 61 + - 42 FROM tab2 AS cor0 WHERE NOT 14 <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 1 * + col1 ) IN ( + 58 * - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0 WHERE ( + + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + + col1 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT 65 + + - col2 >= ( + + ( - col1 ) ) )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - MAX( + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3824
SELECT - MAX ( + + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + - SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + - SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + SUM( DISTINCT - 5 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3826
SELECT + SUM ( DISTINCT - 5 ) AS col2 FROM tab2
----
-5

query I rowsort
SELECT ALL - col0 + - 5 - + - col1 * - - 54 + + + ( - col2 ) AS col0 FROM tab1
----
121
2374
604

query I rowsort
SELECT ALL + 45 + - - 88 AS col1 FROM tab2
----
133
133
133

query III rowsort
SELECT * FROM tab1 WHERE NOT + 59 BETWEEN + 23 * + - col2 * 86 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - MAX( ALL 39 ) * 68 FROM tab0 WHERE - - 43 * - 83 / col0 * - col0 * 34 + - col1 * + col0 IS NOT NULL
----
-2652

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - MAX ( ALL 39 ) * 68 FROM tab0 WHERE - - 43 * - 83 / col0 * - col0 * 34 + - col1 * + col0 IS NOT NULL
----
-2652

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 18 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 + - - 79 + - col2 * + - ( + 33 ) FROM tab1 cor0
----
7041
8143
8511

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( - col1 * - col0 - + 72 + ( col0 ) + + - ( - 59 ) )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3834
SELECT ALL - + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3834
SELECT ALL - + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT DISTINCT + col0 * + ( - + CAST( + - col2 AS SIGNED ) ) col0 FROM tab2 cor0 WHERE ( NULL ) < ( - 0 * - - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3835
SELECT DISTINCT + col0 * + ( - + CAST ( + - col2 AS INTEGER ) ) col0 FROM tab2 cor0 WHERE ( NULL ) < ( - 0 * - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - - col0 NOT IN ( + + col2 )
----

query I rowsort
SELECT ALL + 8 * + col2 FROM tab2
----
184
320
464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 63 IS NOT NULL
----

query I rowsort
SELECT + + 51 * col1 + + + col2 - col1 AS col0 FROM tab2 AS cor0
----
2573
3408
3890

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( DISTINCT col0 ) FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + COUNT( * ) * + + 3 * - - 53 AS col1 FROM tab2 cor0 WHERE ( col1 * col1 - CAST( NULL AS SIGNED ) * - - 41 ) <= ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + COUNT ( * ) * + + 3 * - - 53 AS col1 FROM tab2 cor0 WHERE ( col1 * col1 - CAST ( NULL AS INTEGER ) * - - 41 ) <= ( + col2 )
----
0

query I rowsort
SELECT ALL + 77 + + - col0 + - - 7 * + + col1 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
2356727
2656205
837553

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - MIN( - ( 89 ) ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3844
SELECT - MIN ( - ( 89 ) ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT ( + 83 ) FROM tab1
----
83

query I rowsort
SELECT ALL col1 + + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + col1 - + - ( - col0 ) FROM tab0 WHERE NULL NOT IN ( 57 / + - col0, - ( - 12 ) + + - col1, - col2 )
----

query I rowsort
SELECT ALL + 63 * - 45 FROM tab0
----
-2835
-2835
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT + col2 * + + col1 * CAST( NULL AS SIGNED ) * + 4 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + col2 * + + col1 * CAST ( NULL AS INTEGER ) * + 4 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + - MAX( - - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3854
SELECT + - MAX ( - - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT col0 + + + 41 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT - col0 * - - col2 + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - 75 * - col0 * 60 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 14 * - col0 + col2 + col1 FROM tab0 AS cor0
----
-1187
-1258
-82

query I rowsort
SELECT + 74 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT - col2 AS col2, col0 + - CAST( NULL AS SIGNED ) * ( 63 ) + + + col0 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-3860
SELECT - col2 AS col2, col0 + - CAST ( NULL AS INTEGER ) * ( 63 ) + + + col0 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT 38, col0 AS col2 FROM tab1 AS cor0
----
38
51
38
85
38
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - 18 * - COUNT( ALL + 41 ) col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3862
SELECT - 18 * - COUNT ( ALL + 41 ) col1 FROM tab1 cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT + col0 DIV - 3 col0 FROM tab0 AS cor0
----
-29
-32
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3863
SELECT + col0 / - 3 col0 FROM tab0 AS cor0
----
-29
-32
-5

query II rowsort
SELECT - + col1 - - col0 * - + 75 * + col2, ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-192077
-64
-326317
-75
-79401
-46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( + + col2, + 32 ) AND ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 * + - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-3866
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 * + - col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col1 + 44 + 86 * col2 * - col2 * + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + 80 ) NOT IN ( col2 * - 12 ) AND NOT - col2 * - - col2 IN ( - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL 92 * - + CAST( NULL AS SIGNED ) / + 72 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL 92 * - + CAST ( NULL AS INTEGER ) / + 72 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT - CAST( NULL AS SIGNED ) / - col2 / - ( + col0 ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - CAST ( NULL AS INTEGER ) / - col2 / - ( + col0 ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MIN( DISTINCT - 46 ) col0 FROM tab0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT MIN ( DISTINCT - 46 ) col0 FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + + col1 - col0 * + 45 col0 FROM tab1 WHERE col2 + col0 * - + col0 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3874
SELECT + CAST( + + 75 AS SIGNED ) AS col1, - ( 99 ) FROM tab2
----
75
-99
75
-99
75
-99

skipif mysql # not compatible
query II rowsort label-3874
SELECT + CAST ( + + 75 AS INTEGER ) AS col1, - ( 99 ) FROM tab2
----
75
-99
75
-99
75
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - + MAX( + + 99 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3875
SELECT - + MAX ( + + 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT col0 * col0 * + col2 * col2 * - col1 FROM tab0
----
-15894900
-40259025
-92217609

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - ( - SUM( 1 ) ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - ( - SUM ( 1 ) ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 IS NULL
----

query I rowsort
SELECT 82 FROM tab1 cor0 WHERE col1 NOT BETWEEN - col0 AND + + col2
----

query I rowsort
SELECT ALL + 60 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
3074
5105
5507

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3882
SELECT - + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 29 ) / CAST( NULL AS DECIMAL ) * - + col2 NOT IN ( + col2 * col0 * + 67 / - + col0 * - 84, 74 )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 29 ) / CAST ( NULL AS REAL ) * - + col2 NOT IN ( + col2 * col0 * + 67 / - + col0 * - 84, 74 )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE col2 * col1 + + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + + COUNT( * ) + + 65 AS col1 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3885
SELECT + + COUNT ( * ) + + 65 AS col1 FROM tab1 AS cor0
----
68

query I rowsort
SELECT - col0 + - col0 - - + col1 * - 84 + + - col1 FROM tab0
----
-1959
-279
-6915

query I rowsort
SELECT DISTINCT + 2 + col1 FROM tab2
----
53
69
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - ( col0 ), col0 * + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3889
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * + 52 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3889
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * + 52 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + ( col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 84 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 15 * - - MAX( + - col2 ) + 71 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 15 * - - MAX ( + - col2 ) + 71 FROM tab0
----
-79

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT ALL - 26 DIV COUNT( * ) + ( + MIN( - col2 ) ) DIV + + 38 - + COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - 26 / COUNT ( * ) + ( + MIN ( - col2 ) ) / + + 38 - + COUNT ( * ) FROM tab0
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, col0 * 68 )
----

query I rowsort
SELECT DISTINCT - 6 + + 94 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - - 11 IN ( + 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT + - 96 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-96

query I rowsort
SELECT + 87 * + col2 AS col0 FROM tab2 AS cor0
----
2001
3480
5046

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 > 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * 20 FROM tab0 cor0
----
1740
1940
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 23 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + - col1 * - - col2 * - + col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT 90 DIV 14 * col2 FROM tab0
----
282
594
60

skipif mysql # not compatible
query I rowsort label-3906
SELECT 90 / 14 * col2 FROM tab0
----
282
594
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= - col0
----

query I rowsort
SELECT ALL 13 * + 64 FROM tab2 WHERE col0 - + - 10 <> NULL
----

query II rowsort
SELECT - col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT ( + 13 ) AS col0 FROM tab0
----
13

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 AS col1 FROM tab2 WHERE + col0 * - - col2 + + + col2 = ( NULL )
----

query I rowsort
SELECT + - 91 * - 84 AS col2 FROM tab0 AS cor0
----
7644
7644
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL AVG ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 <> 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL AVG ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 <> 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + COUNT( - 61 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + COUNT ( - 61 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col0 + - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT COUNT( - + 13 ) col2 FROM tab0 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-3916
SELECT DISTINCT COUNT ( - + 13 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + COUNT( * ) + - 0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3917
SELECT + COUNT ( * ) + - 0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3918
SELECT - 92 DIV CAST( - + col1 AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
1
47
18
5
6
14

skipif mysql # not compatible
query II rowsort label-3918
SELECT - 92 / CAST ( - + col1 AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
1
47
18
5
6
14

query I rowsort
SELECT col1 * - ( - ( ( + + col0 ) ) ) * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT AVG ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 63 DIV 89 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 63 / 89 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( col1 ) * col2 AND col1 + + - col2 * - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT + 77 * COUNT( * ) AS col0 FROM tab2 WHERE - - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + 77 * COUNT ( * ) AS col0 FROM tab2 WHERE - - col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT ALL - COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL - COUNT( * ) + + 41 AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - COUNT ( * ) + + 41 AS col1 FROM tab2
----
38

query I rowsort
SELECT DISTINCT - 41 - 60 FROM tab0
----
-101

query I rowsort
SELECT - col0 + 2 AS col1 FROM tab0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + - COUNT( * ) + 85 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3928
SELECT + - COUNT ( * ) + 85 FROM tab0 AS cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( + col0 ) AND + 75
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3929
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col0 ) AND + 75
----
0

query I rowsort
SELECT - - 63 + - 80 AS col1 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL - - ( COUNT( 23 ) ), COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL - - ( COUNT ( 23 ) ), COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT - - ( COUNT( * ) ) * + 84 AS col2 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - - ( COUNT ( * ) ) * + 84 AS col2 FROM tab0 AS cor0
----
252

query I rowsort
SELECT ( + - 76 ) AS col1 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT 84 * + + 16 + + - ( - MAX( ALL - 39 ) ) + + - 73 * - COUNT( * ) FROM tab0 AS cor0
----
1524

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 84 * + + 16 + + - ( - MAX ( ALL - 39 ) ) + + - 73 * - COUNT ( * ) FROM tab0 AS cor0
----
1524

query I rowsort
SELECT ALL + - 22 * - 59 + - + col0 AS col0 FROM tab2 AS cor0
----
1223
1234
1252

query I rowsort
SELECT DISTINCT + 64 * + col0 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 + - - ( + 1 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - ( SUM( DISTINCT - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3940
SELECT - ( SUM ( DISTINCT - col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT 59 DIV - - COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3941
SELECT 59 / - - COUNT ( * ) FROM tab1
----
19

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL NOT IN ( - - col2 * + col1, + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 45 * + COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 45 * + COUNT ( * ) FROM tab0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - + col1 col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + col2 * col2 * - col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * 72 + - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 57, - col1, + col2 )
----

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * 72 + - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 57, - col1, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3948
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) + + COUNT( 31 ) DIV + - 32, COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) + + COUNT ( 31 ) / + - 32, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 92 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + - 8 AS col2 FROM tab0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3951
SELECT col0, CAST( 79 AS SIGNED ) AS col1 FROM tab2
----
46
79
64
79
75
79

skipif mysql # not compatible
query II rowsort label-3951
SELECT col0, CAST ( 79 AS INTEGER ) AS col1 FROM tab2
----
46
79
64
79
75
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT ALL + - col2 DIV - - 66 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + - col2 / - - 66 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3955
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) - + - CAST( NULL AS SIGNED ) + 22, COUNT( * ) * - COUNT( * ) DIV - 91 col2 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3955
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + 22, COUNT ( * ) * - COUNT ( * ) / - 91 col2 FROM tab2 AS cor0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT DISTINCT col2 DIV + ( + col2 ) + + 16 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT col2 / + ( + col2 ) + + 16 FROM tab2 cor0
----
17

query I rowsort
SELECT ALL - - 91 FROM tab2 cor0 WHERE NULL >= + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - 35 * 82 + + + SUM( DISTINCT - col2 ) FROM tab1
----
-3093

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 35 * 82 + + + SUM ( DISTINCT - col2 ) FROM tab1
----
-3093

query I rowsort
SELECT + col2 + + 53 FROM tab0
----
100
152
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + 53 <= - 95 * 18 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3961
SELECT 91 + - - col2, + CAST( + 24 AS SIGNED ) + - CAST( - + 45 AS SIGNED ) AS col0 FROM tab1
----
150
69
159
69
187
69

skipif mysql # not compatible
query II rowsort label-3961
SELECT 91 + - - col2, + CAST ( + 24 AS INTEGER ) + - CAST ( - + 45 AS INTEGER ) AS col0 FROM tab1
----
150
69
159
69
187
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN - + col1 - 71 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT AVG ( + CAST( NULL AS SIGNED ) ) * + 61 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) * + 61 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + 72 ) AS col2 FROM tab2
----
72
72
72

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + SUM( col1 ) FROM tab1 AS cor0 WHERE NOT - ( - col1 ) > + col0
----
66

skipif mysql # not compatible
query I rowsort label-3966
SELECT + SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT - ( - col1 ) > + col0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 53 ) col1 FROM tab1 AS cor0
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - 70 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - - MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3970
SELECT - - MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( * ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT DISTINCT CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT DISTINCT CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3974
SELECT DISTINCT + + col1, - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-3974
SELECT DISTINCT + + col1, - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL MIN( ALL + 22 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL MIN ( ALL + 22 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - SUM( ALL + 57 ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-3976
SELECT - SUM ( ALL + 57 ) FROM tab2
----
-171

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 * 82 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT - 97 DIV MIN( ALL + col1 ) col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT - 97 / MIN ( ALL + col1 ) col0 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= ( col2 * - col1 + - 54 * - + ( - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / + 90 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + - col0 + col2 FROM tab2
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 25 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - COUNT( * ) * COUNT( * ) + - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-3984
SELECT - COUNT ( * ) * COUNT ( * ) + - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - - col2 * col2 + + 8 + - CAST( NULL AS SIGNED ) + col2 + - col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - - col2 * col2 + + 8 + - CAST ( NULL AS INTEGER ) + col2 + - col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3986
SELECT ALL + + col0 DIV - CAST( + - 44 AS SIGNED ) + - - col0 AS col0 FROM tab0 AS cor0
----
15
88
99

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + + col0 / - CAST ( + - 44 AS INTEGER ) + - - col0 AS col0 FROM tab0 AS cor0
----
15
88
99

query I rowsort
SELECT ALL + col2 * - + col0 + + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT col1 DIV + col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3988
SELECT col1 / + col2 col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + + ( 42 ) * col1 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
1974
-91
210
-85
588
-51

query I rowsort
SELECT + - 23 * col0 * - ( - col1 ) FROM tab2 AS cor0
----
-113344
-115575
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL COUNT( * ) col0, + 90 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3991
SELECT ALL COUNT ( * ) col0, + 90 FROM tab2 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + - MIN( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3992
SELECT + - MIN ( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > - - col2
----

skipif mysql # not compatible
query I rowsort label-3994
SELECT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > - - col2
----

query I rowsort
SELECT - col0 - - - col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + ( col1 ) + + + col0 AS col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - 48 + + COUNT( * ) AS col1 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 48 + + COUNT ( * ) AS col1 FROM tab1
----
-45

query I rowsort
SELECT + 67 + - col0 * - + 27 AS col2 FROM tab0
----
2416
2686
472

query I rowsort
SELECT ( + - col0 ) + + col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + ( col2 ) + + - 95 FROM tab1
----
-27
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MIN( + + col2 ) + + 30 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MIN ( + + col2 ) + + 30 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT 9 + + MAX( DISTINCT - - 83 ) + - COUNT( * ) * 8 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4002
SELECT 9 + + MAX ( DISTINCT - - 83 ) + - COUNT ( * ) * 8 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT DISTINCT - + COUNT( * ) AS col1, 29 + - + 59 FROM tab1 AS cor0
----
-3
-30

skipif mysql # not compatible
query II rowsort label-4003
SELECT DISTINCT - + COUNT ( * ) AS col1, 29 + - + 59 FROM tab1 AS cor0
----
-3
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 * col2 + col0 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 3 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 col2 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT DISTINCT + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 > NULL
----

query II rowsort
SELECT - ( - - 46 ) AS col1, col1 FROM tab2 AS cor0
----
-46
51
-46
67
-46
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, 55 * col1 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT CAST( + + 90 AS SIGNED ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CAST ( + + 90 AS INTEGER ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT 67, + 90 + - + COUNT( * ) AS col0 FROM tab2
----
67
87

skipif mysql # not compatible
query II rowsort label-4013
SELECT 67, + 90 + - + COUNT ( * ) AS col0 FROM tab2
----
67
87

query I rowsort
SELECT col1 + - ( + col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + COUNT( * ) + ( + + 79 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-4015
SELECT + COUNT ( * ) + ( + + 79 ) FROM tab2
----
82

query I rowsort
SELECT ALL - + col0 + 26 AS col0 FROM tab1 AS cor0
----
-25
-59
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 cor0 WHERE + CAST( + 43 AS SIGNED ) = col2
----

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 cor0 WHERE + CAST ( + 43 AS INTEGER ) = col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - 67 * col1 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - + MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - + MAX ( + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 * + col1 <= - ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4022
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) + + ( - + COUNT( * ) ), MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + + ( - + COUNT ( * ) ), MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + 75 + - 31 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * + 64 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 75 + - 31 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * + 64 AND NULL
----

query I rowsort
SELECT - + col2 + - 19 - + 89 AS col1 FROM tab2 AS cor0
----
-131
-148
-166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4025
SELECT col2 AS col0, ( - 52 ) / - CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4025
SELECT col2 AS col0, ( - 52 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT + col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 63 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col1 col1 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT DISTINCT - col0 - - - col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT ( - col2 ) + - + col2 * + col2 FROM tab2
----
-1640
-3422
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 88 col1 FROM tab1 AS cor0
----
4488
7480
8008

query II rowsort
SELECT + col0, 63 * - ( + - col1 ) * - - col2 - col2 + + col2 - + col1 + ( + col1 ) + + + col2 FROM tab2 cor0
----
46
73922
64
194080
75
244876

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT 26 DIV 24 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4033
SELECT 26 / 24 FROM tab0
----
1
1
1

query II rowsort
SELECT ALL + col2 AS col2, ( - ( + col0 ) ) AS col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT ALL COUNT( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-4036
SELECT ALL COUNT ( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0
----
3
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( ( + ( - - col0 ) ) ) AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4038
SELECT ALL + + 97 col2, COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
97
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4038
SELECT ALL + + 97 col2, COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
97
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT + + COUNT( * ) AS col0, - 96 col1 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4039
SELECT + + COUNT ( * ) AS col0, - 96 col1 FROM tab1 AS cor0
----
3
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-4040
SELECT 28 AS col0, - col0 DIV 20 * col2 col1 FROM tab1 AS cor0
----
28
-192
28
-236
28
-272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4040
SELECT 28 AS col0, - col0 / 20 * col2 col1 FROM tab1 AS cor0
----
28
-192
28
-236
28
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4042
SELECT MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4043
SELECT DISTINCT + col1 * col1 * - + CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + col1 * col1 * - + CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL ( ( + 43 ) ) FROM tab0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT COUNT( * ) FROM tab0 cor0 WHERE ( + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT COUNT ( * ) FROM tab0 cor0 WHERE ( + - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 67 col2, 68 - - 99 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 3f7b09235f6dd39e652827206fe3738b

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT + 88 DIV 42 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 88 / 42 AS col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + - 52 * + + COUNT( * ) col1 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT DISTINCT + - 52 * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - + 68 * - 34 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
6936

skipif mysql # not compatible
query I rowsort label-4053
SELECT - + 68 * - 34 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6936

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - col1 * - + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - - col1 * - - col0 - - col0 col0 FROM tab1 cor0
----
4436
569
861

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 78 - + MAX( ALL - + col0 ) * + 90 + - 4 col0 FROM tab1 AS cor0
----
4508

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT - 78 - + MAX ( ALL - + col0 ) * + 90 + - 4 col0 FROM tab1 AS cor0
----
4508

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col0 ) / 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4058
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT 7 + + + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT 7 + + + COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 3 + col2 AS col2, + col1 + - 25 + ( + + col2 ) + - col1 * - - col1 AS col2 FROM tab2
----
26
-2552
43
-5837
61
-4389

query I rowsort
SELECT - ( + + ( - col1 ) ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - 53 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab2
----
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + col0 * + - col2 + - 71 AS col0 FROM tab0 AS cor0 WHERE 37 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 95 DIV + 24 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4069
SELECT 95 / + 24 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL OR NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT - 80 DIV + - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT - 80 / + - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 + - + 66 AS col1 FROM tab0 AS cor0
----
-113
-165
-76

query I rowsort
SELECT DISTINCT + ( ( - - col2 ) ) * 60 FROM tab1 AS cor0
----
3540
4080
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col2 + - + 57 * + 32 * - col1 FROM tab1 WHERE NULL > NULL
----

query II rowsort
SELECT ALL 64 * - 79 * - col2 + col0 AS col0, col0 * - + 61 AS col2 FROM tab0
----
237647
-915
500641
-5917
50647
-5307

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - 13 + + COUNT( * ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 13 + + COUNT ( * ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL COUNT( * ) + 38 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL COUNT ( * ) + 38 FROM tab0
----
41

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
102
170
182

query I rowsort
SELECT col0 + - - 71 FROM tab1
----
122
156
162

query II rowsort
SELECT ALL + col1, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + - col1 + - - ( - col1 ) FROM tab2 AS cor0 WHERE + 49 BETWEEN - + col1 AND col1
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT ALL + 33 AS col1, + MIN( 58 ) col2 FROM tab1 cor0
----
33
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4084
SELECT ALL + 33 AS col1, + MIN ( 58 ) col2 FROM tab1 cor0
----
33
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col1 = - col0 * col2 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= + + col1 * 56 + ( + + 33 )
----

query I rowsort
SELECT ALL + col2 * 76 AS col2 FROM tab2 cor0
----
1748
3040
4408

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-79

query I rowsort
SELECT + col0 * 37 AS col1 FROM tab0 AS cor0
----
3219
3589
555

query I rowsort
SELECT 50 * + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
2950
3400
4800

query I rowsort
SELECT + ( 22 ) AS col1 FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab1
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL - ( + 1 ) DIV - - col2 + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - ( + 1 ) / - - col2 + + col2 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT - COUNT( * ) DIV - + 4 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT - COUNT ( * ) / - + 4 AS col1 FROM tab0
----
0

query I rowsort
SELECT 22 * col0 AS col2 FROM tab2
----
1012
1408
1650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 AS col1, 12 * col1 * - col1 col1 FROM tab1
----
76
-2352
76
-26508
76
-300

query I rowsort
SELECT ALL - ( - ( + col0 ) ) * col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT ALL col1 AS col0, + col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - col0 * + + 9 FROM tab2
----
-414
-576
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= - col0
----
0

query I rowsort
SELECT DISTINCT ( 26 ) AS col2 FROM tab0 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - COUNT( * ) + - + 19 col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT + - COUNT ( * ) + - + 19 col0 FROM tab0 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT + col2 DIV + 71 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + col2 / + 71 * col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * - - col1 + - ( - 20 ) FROM tab0 AS cor0
----
117
1235
1847

query I rowsort
SELECT ALL col1 + 32 AS col1 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + + COUNT( * ) + CAST( NULL AS SIGNED ) * - 96 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 96 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col1 * 64 + + col0 AS col1 FROM tab1
----
3099
405
947

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT COUNT( * ) + + 51 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT COUNT ( * ) + + 51 FROM tab1
----
54

query II rowsort
SELECT ALL - col0 * - col1 * col1, + col2 FROM tab0
----
38367
10
97
99
98415
47

query III rowsort
SELECT * FROM tab2 WHERE + col2 > - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + 97 AS col2 FROM tab0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT 20 - - MAX( DISTINCT col1 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-4117
SELECT 20 - - MAX ( DISTINCT col1 ) FROM tab2
----
97

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + col0 )
----

query I rowsort
SELECT + col2 + + - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col0 + + 51 AS col0 FROM tab1 AS cor0
----
-34
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT 35 + - + 56 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT 35 + - + 56 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4122
SELECT * FROM tab0 AS cor0 WHERE 93 IN ( 73, CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-4122
SELECT * FROM tab0 AS cor0 WHERE 93 IN ( 73, CAST ( NULL AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT - - MAX( DISTINCT 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - - MAX ( DISTINCT 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 10 + - 99 * - 88 FROM tab2 cor0 WHERE NOT 83 BETWEEN - - col0 + + 72 AND 56 * + col2 * + + 48 + - col1
----
8722

query I rowsort
SELECT + ( + + col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ( - ( + COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4126
SELECT ( - ( + COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col2 FROM tab2 AS cor0
----
95

query II rowsort
SELECT - col1, - col0 + - - 86 AS col0 FROM tab1 AS cor0
----
-14
35
-47
-5
-5
1

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT DISTINCT - COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - 32 * col2 * col1 FROM tab1
----
-102272
-43008
-9440

query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ALL + + 29 * + col0 * 25 AS col0 FROM tab2 AS cor0
----
33350
46400
54375

query I rowsort
SELECT DISTINCT 98 + - col2 + + col0 + + col2 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
149
183
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT ALL + COUNT( * ) + 17 - 24 DIV 96 AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + COUNT ( * ) + 17 - 24 / 96 AS col1 FROM tab2
----
20

query I rowsort
SELECT DISTINCT + 71 * + - ( - col0 ) AS col1 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ( - COUNT( * ) ) * + COUNT( * ) * - + 12 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4137
SELECT ( - COUNT ( * ) ) * + COUNT ( * ) * - + 12 FROM tab0
----
108

query II rowsort
SELECT ALL col0 AS col1, 1 AS col0 FROM tab2
----
46
1
64
1
75
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col1 + 31 AND + + 44 - + + col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT - + COUNT( * ) DIV + 55 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - + COUNT ( * ) / + 55 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT col1 < NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT ALL col0 DIV + - col2 + col1 + + 49 AS col0 FROM tab2 AS cor0
----
115
125
98

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL col0 / + - col2 + col1 + + 49 AS col0 FROM tab2 AS cor0
----
115
125
98

query I rowsort
SELECT col0 + - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - + ( col0 ) * 38 + - - col0 AS col2 FROM tab2 AS cor0
----
-1702
-2368
-2775

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + ( + col2 ) * col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + col0 * 42 + col2 + 0 FROM tab1
----
2252
3634
3937

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( * ) + - MAX( DISTINCT + col0 ) * 54 AS col2 FROM tab2
----
-4047

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) + - MAX ( DISTINCT + col0 ) * 54 AS col2 FROM tab2
----
-4047

query I rowsort
SELECT DISTINCT + + 17 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - MIN( - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4150
SELECT - MIN ( - col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 - + col2 + - 22 AS col2 FROM tab2 AS cor0
----
-5
1
2

query I rowsort
SELECT ALL col2 * - 32 * - 21 + - col0 AS col1 FROM tab2
----
15410
26816
38901

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT + 70 DIV - - 66 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 70 / - - 66 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT + 6 * + + COUNT( * ) DIV + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 6 * + + COUNT ( * ) / + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - SUM( + - 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - SUM ( + - 42 ) FROM tab1
----
126

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

query I rowsort
SELECT ALL + + 16 AS col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4160
SELECT DISTINCT - col1 AS col2, col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT - col1 AS col2, col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 * - - 63 + + col0 + + col2 col1 FROM tab1 cor0
----
-1983
-1995
-1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT ( - MAX( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT ( - MAX ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + 4 * + + col2 * 41 * + col1 FROM tab1
----
220416
48380
524144

query I rowsort
SELECT + 0 AS col0 FROM tab1 WHERE NOT 52 * + col0 - col0 + 21 + + + col2 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + - + 83 * + 14 col2, col2 FROM tab2 WHERE NOT NULL = col1
----

query I rowsort
SELECT - 72 * + ( col2 ) FROM tab1
----
-4248
-4896
-6912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + ( - col2 ) col2 FROM tab1 WHERE NOT + 72 + - col0 IS NULL
----
1248
236
3128

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT - col1 * col2 + + - ( - col1 ) + col0 IS NOT NULL
----

query II rowsort
SELECT ALL 89 AS col2, col1 * + col2 AS col2 FROM tab2
----
89
1173
89
3080
89
3886

query II rowsort
SELECT ALL 36, col1 FROM tab1 cor0
----
36
14
36
47
36
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col0, + 68 FROM tab2 AS cor0
----
81
68
81
68
81
68

query I rowsort
SELECT ( col2 ) * + 25 AS col1 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT ALL + - 17 AS col0 FROM tab2 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + + COUNT( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4178
SELECT + + COUNT ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - ( ( - - col2 ) ) AS col0, 72 AS col1 FROM tab1 cor0
----
-59
72
-68
72
-96
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + - SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + - SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + - col2 * + 56 col0 FROM tab2 AS cor0
----
-1817
-3840
-6612

query I rowsort
SELECT DISTINCT + - 3 + - col1 FROM tab2 AS cor0
----
-54
-70
-80

query I rowsort
SELECT - col1 * - + col1 * col0 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT ALL - COUNT( * ) + COUNT( * ) col1, + 92 FROM tab2 AS cor0
----
0
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4184
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1, + 92 FROM tab2 AS cor0
----
0
92

query II rowsort
SELECT 72 AS col1, - col0 FROM tab0
----
72
-15
72
-87
72
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 - + col0 - + col1 / - - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT DISTINCT - CAST( NULL AS SIGNED ) + MAX( ALL + - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + MAX ( ALL + - col1 ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT col1 - - ( + 27 ) AS col0, 99 AS col2 FROM tab2
----
104
99
78
99
94
99

query III rowsort
SELECT * FROM tab0 WHERE - 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) + - - col1 - CAST( - col2 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) + - - col1 - CAST ( - col2 AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - + col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT MIN( col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT MIN ( col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - COUNT( * ) FROM tab1 WHERE NOT + 58 < col0 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + 58 < col0 - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ( MAX( col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4197
SELECT ( MAX ( col2 ) ) FROM tab0
----
99

query I rowsort
SELECT + col1 + + 4 FROM tab2
----
55
71
81

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL <= col1 * 47 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + ( + COUNT( * ) ) - 93 AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4200
SELECT + ( + COUNT ( * ) ) - 93 AS col2 FROM tab0
----
-90

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4202
SELECT col2 AS col0 FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4202
SELECT col2 AS col0 FROM tab0 WHERE CAST ( NULL AS REAL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL CAST( + 55 AS SIGNED ) AS col2 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL CAST ( + 55 AS INTEGER ) AS col2 FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * ( - 30 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + MIN( DISTINCT - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL 22 FROM tab2 WHERE NOT - 57 + - 11 IS NOT NULL
----

query I rowsort
SELECT + col0 * 99 - col1 FROM tab2
----
4503
6259
7358

query III rowsort
SELECT * FROM tab2 WHERE NOT + 24 + col0 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT + 41 DIV 66 - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4212
SELECT + 41 / 66 - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 42 DIV col1 + 43 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4213
SELECT 42 / col1 + 43 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL + col1 - + 49 FROM tab1
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COUNT( * ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4216
SELECT - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT MIN( + 69 ) * 61 FROM tab1
----
4209

skipif mysql # not compatible
query I rowsort label-4217
SELECT MIN ( + 69 ) * 61 FROM tab1
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( * ) * + 34 col2 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4218
SELECT COUNT ( * ) * + 34 col2 FROM tab1
----
102

query I rowsort
SELECT DISTINCT 12 * 21 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT - MIN( ALL - 28 ) * 24 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - MIN ( ALL - 28 ) * 24 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + ( + SUM( 56 ) ) AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4221
SELECT + ( + SUM ( 56 ) ) AS col0 FROM tab1 AS cor0
----
168

query I rowsort
SELECT 67 + col2 FROM tab0 cor0 WHERE col0 / col1 > 65
----
166

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT col0 / col1 FROM tab1 AS cor0 WHERE NOT 1 + + 62 / - col2 NOT IN ( 87 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - col0 = - col2 * - 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 23 - + 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 68 AS col0 FROM tab2 AS cor0
----
119
135
145

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 95 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + 48 BETWEEN col2 * 22 AND ( - col0 + 78 )
----

query I rowsort
SELECT ALL - col1 + + 18 AS col1 FROM tab1 AS cor0
----
-29
13
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + 34 AND - col0 + 84 * - 27
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT ALL - 41 DIV MIN( ALL + 83 ) + + 53 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - 41 / MIN ( ALL + 83 ) + + 53 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT - COUNT( * ) + + MAX( ALL - col0 + + col2 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - COUNT ( * ) + + MAX ( ALL - col0 + + col2 ) FROM tab0 AS cor0
----
29

query III rowsort
SELECT * FROM tab0 WHERE 35 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + col2 * col1 AS col2 FROM tab2
----
1122
3003
3819

query III rowsort
SELECT * FROM tab2 WHERE - 34 NOT IN ( - col0 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 14 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT MAX( DISTINCT + + 13 ) + - COUNT( * ) * 92 FROM tab1
----
-263

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT MAX ( DISTINCT + + 13 ) + - COUNT ( * ) * 92 FROM tab1
----
-263

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL - COUNT( * ) + + - 69 AS col1 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - COUNT ( * ) + + - 69 AS col1 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT COUNT( * ) - - 80 AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT COUNT ( * ) - - 80 AS col0 FROM tab0
----
83

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - col1 * - col0 + 16 FROM tab0 WHERE NULL IS NULL
----
113
1231
1843

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4244
SELECT ALL * FROM tab0 WHERE ( col1 ) - + CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4244
SELECT ALL * FROM tab0 WHERE ( col1 ) - + CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL - ( - 22 ) - + col0 * col1 AS col2 FROM tab0
----
-1193
-1805
-75

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) >= - col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 13 - col1 AS col2 FROM tab2
----
-38
-54
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL MAX( + col2 ) FROM tab2 WHERE col0 <= + col2 + - col1 * ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL MAX ( + col2 ) FROM tab2 WHERE col0 <= + col2 + - col1 * ( col0 )
----
NULL

query I rowsort
SELECT ALL - 3 + ( - col2 ) FROM tab0
----
-102
-13
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + col2 col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col2 - 73 AS col1 FROM tab1 cor0
----
-14
-5
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT col2 * col1 * CAST( 91 * - 38 AS SIGNED ) FROM tab0 AS cor0
----
-13164606
-342342
-726180

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT col2 * col1 * CAST ( 91 * - 38 AS INTEGER ) FROM tab0 AS cor0
----
-13164606
-342342
-726180

query I rowsort
SELECT DISTINCT + - col0 * - + ( - 15 ) AS col2 FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + - 18 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT + - 18 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ( - - ( 13 ) ) - SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ( - - ( 13 ) ) - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT col0 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col2
----
23
26

skipif mysql # not compatible
query I rowsort label-4259
SELECT col0 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col2
----
23
26

query II rowsort
SELECT col0 AS col1, 98 FROM tab2 AS cor0
----
46
98
64
98
75
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * + col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + - col2 DIV + 43 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + - col2 / + 43 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT col0 * 92 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * + 23 col2 FROM tab2 AS cor0
----
2162
2162
2162

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4267
SELECT DISTINCT - col0, + col0 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT - col0, + col0 + + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - SUM( - 24 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - SUM ( - 24 ) FROM tab1
----
72

query I rowsort
SELECT ALL 18 + - 84 + + 42 AS col0 FROM tab2
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * + CAST( NULL AS SIGNED ) + - col1 * 32 >= ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * + CAST ( NULL AS INTEGER ) + - col1 * 32 >= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + col0 + - CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4271
SELECT + col0 + - CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - - 63 FROM tab2
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + ( - - ( - - COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + ( - - ( - - COUNT ( * ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT MAX( ALL + col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4274
SELECT DISTINCT MAX ( ALL + col0 ) col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 FROM tab0 WHERE NOT - - col0 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 FROM tab0 WHERE NOT - - col0 IN ( col2 )
----
NULL

query II rowsort
SELECT - col0 AS col2, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL 48 - - - 67 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + ( + 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT - SUM( + - 71 ) AS col1 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - SUM ( + - 71 ) AS col1 FROM tab0 AS cor0
----
213

query I rowsort
SELECT + 45 - 73 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 25 ) < + 18 + col0 * + 48
----

query I rowsort
SELECT + - 35 * - col0 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT ( 80 ) AS col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col1, + col2 ) AND + col0 <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT - - 66 - - ( + - 96 ), + MAX( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-30
-10

skipif mysql # not compatible
query II rowsort label-4288
SELECT - - 66 - - ( + - 96 ), + MAX ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-30
-10

query I rowsort
SELECT + 58 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 31 - ( - 51 ) AS col0 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT 38 + - 75 * COUNT( * ) AS col0 FROM tab1 WHERE - ( + col1 ) > ( NULL )
----
38

skipif mysql # not compatible
query I rowsort label-4291
SELECT 38 + - 75 * COUNT ( * ) AS col0 FROM tab1 WHERE - ( + col1 ) > ( NULL )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4292
SELECT SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 71 * - 40 FROM tab0
----
-2840

query I rowsort
SELECT ( - + col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + 55 * - - col2 * + 21 FROM tab2
----
26565
46200
66990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4296
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 76 AS col0, + COUNT( * ) col0 FROM tab2 cor0
----
76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4298
SELECT ALL 76 AS col0, + COUNT ( * ) col0 FROM tab2 cor0
----
76
3

query I rowsort
SELECT DISTINCT + 98 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4300
SELECT 12 DIV CAST( - col0 AS SIGNED ) * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT 12 / CAST ( - col0 AS INTEGER ) * - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT MIN( + + 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4301
SELECT MIN ( + + 23 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 81 * 76 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - + col2 * col2 * col0 + - 70 )
----

query I rowsort
SELECT ALL 31 + col2 AS col0 FROM tab1 cor0
----
127
90
99

query I rowsort
SELECT DISTINCT 8 * col0 + col0 AS col0 FROM tab1 AS cor0
----
459
765
819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 56 ) AS col2 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT col0 DIV + col2 + - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-4309
SELECT col0 / + col2 + - col0 FROM tab2
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT COUNT( 24 ) * CAST( - 43 AS SIGNED ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT COUNT ( 24 ) * CAST ( - 43 AS INTEGER ) FROM tab1
----
-129

query I rowsort
SELECT 16 + - + 97 AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT SUM( DISTINCT - 49 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT SUM ( DISTINCT - 49 ) AS col0 FROM tab1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT + 8 DIV + - 84 * - ( + 4 ) + + - col1 col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4315
SELECT + 8 / + - 84 * - ( + 4 ) + + - col1 col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 9 + + - col0 FROM tab0
----
-6
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - COUNT( * ) + 38 * - 51 AS col2 FROM tab1
----
-1941

skipif mysql # not compatible
query I rowsort label-4317
SELECT - COUNT ( * ) + 38 * - 51 AS col2 FROM tab1
----
-1941

query I rowsort
SELECT ALL col2 * - + 95 * - 27 AS col1 FROM tab1
----
151335
174420
246240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2, 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL - + col0 * + col0 * + 83 + + col1 * ( + ( - CAST( + col1 AS SIGNED ) ) / col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 / + 6, col1 + ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - + col0 * + col0 * + 83 + + col1 * ( + ( - CAST ( + col1 AS INTEGER ) ) / col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 / + 6, col1 + ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 28 col1 FROM tab0 cor0
----
-53
27
7

query I rowsort
SELECT + ( 53 ) FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 - col1 * - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT COUNT( * ) * 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-4324
SELECT COUNT ( * ) * 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN col2 AND + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT + - MIN( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + - MIN ( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 21 / 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT - 2 + + col0 DIV 15 FROM tab0 AS cor0
----
-1
3
4

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - 2 + + col0 / 15 FROM tab0 AS cor0
----
-1
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT - SUM( DISTINCT + + 22 ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4329
SELECT - SUM ( DISTINCT + + 22 ) AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT + 12 * + col1 - - 95 AS col0 FROM tab0 AS cor0
----
1067
107
347

query II rowsort
SELECT + - col0 * + col2, - 40 AS col2 FROM tab2 AS cor0
----
-1058
-40
-2560
-40
-4350
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 + - - col0 col2 FROM tab1
----
51
-45
85
26
91
23

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MAX( - - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4334
SELECT MAX ( - - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 44 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - - ( ( - col2 ) ) AS col0, + ( - col2 ) * - col0 * - ( + col1 ) * 91 AS col1 FROM tab0 AS cor0
----
-10
-1662570
-47
-5196555
-99
-873873

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( ( ( NULL ) NOT BETWEEN col1 AND NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + - COUNT( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4340
SELECT + - COUNT ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + 60 * + col1 AS col2 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT col2 * 67 * - col1 AS col2 FROM tab2
----
-206360
-260362
-78591

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + MAX( DISTINCT + col2 ) * + 76 FROM tab1 AS cor0
----
7296

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + MAX ( DISTINCT + col2 ) * + 76 FROM tab1 AS cor0
----
7296

query II rowsort
SELECT - col0 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT - col1 DIV - - 60, + col0 + + col2 - - 25 + + col0 AS col0 FROM tab0 AS cor0
----
-1
102
0
209
0
318

skipif mysql # not compatible
query II rowsort label-4347
SELECT - col1 / - - 60, + col0 + + col2 - - 25 + + col0 AS col0 FROM tab0 AS cor0
----
-1
102
0
209
0
318

query I rowsort
SELECT - + ( - 24 ) FROM tab2 AS cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col0 + col2 * - - col1 - col0 ) IN ( 9 * + col0 - - - col2 )
----

query II rowsort
SELECT + 77 AS col0, - 8 + - 57 * - - 1 + col1 AS col1 FROM tab0 cor0
----
77
-44
77
-64
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - SUM( ALL + + ( + 58 ) ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4351
SELECT - SUM ( ALL + + ( + 58 ) ) FROM tab1 AS cor0
----
-174

query II rowsort
SELECT ALL + col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - col0 + 8 AS col1 FROM tab2 AS cor0
----
-38
-56
-67

query III rowsort
SELECT * FROM tab1 WHERE ( + 8 / col0 ) IN ( + 75 * + col1 + 31, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT + 93 + 85 DIV - col1 AS col1 FROM tab0
----
8
89
92

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + 93 + 85 / - col1 AS col1 FROM tab0
----
8
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 88 * - + col1 col0, - 15 AS col1 FROM tab2
----
4488
-15
5896
-15
6776
-15

query I rowsort
SELECT col0 * ( col2 ) FROM tab0 WHERE + 73 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col0 * - 3 + col0 / + 34 IS NULL )
----

query II rowsort
SELECT ALL + - col1 * - + col2 / 83 + - col1 AS col1, - 4 / col2 + - col0 FROM tab2 WHERE NOT + col2 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) + + + col1 * + + col2 AS col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ( - col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - 86 + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
-2432
-5014
-5111

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL NOT IN ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT + + ( + + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT + + ( + + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col2 AS col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE 47 + col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT - col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT - col0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 + col0 < 14 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 13 + - 52 < - col1 * - 12 * col2 * - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN + 91 AND - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - 55 ) AS col2 FROM tab0 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col1 FROM tab2 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT DISTINCT + + MAX( ALL - - col1 ) AS col2, + 1 * + 1 col1 FROM tab1 AS cor0
----
47
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4377
SELECT DISTINCT + + MAX ( ALL - - col1 ) AS col2, + 1 * + 1 col1 FROM tab1 AS cor0
----
47
1

query I rowsort
SELECT + ( 72 ) AS col2 FROM tab2
----
72
72
72

query II rowsort
SELECT - - col0 AS col2, col2 AS col1 FROM tab2 WHERE NOT ( ( NOT ( NULL BETWEEN NULL AND col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4380
SELECT + SUM ( col1 ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 71 FROM tab1 cor0
----
-51
-71
-85
-71
-91
-71

query I rowsort
SELECT col2 + - 73 FROM tab1 AS cor0
----
-14
-5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT col1 + + + col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT - col1 + + - col1 * - 6 FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT 8 + + COUNT( * ) DIV - - 55 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4386
SELECT 8 + + COUNT ( * ) / - - 55 FROM tab1
----
8

query I rowsort
SELECT ALL + col2 * + col1 + - - col1 AS col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 35 + - + COUNT( + - 77 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 35 + - + COUNT ( + - 77 ) AS col2 FROM tab1
----
-38

query I rowsort
SELECT ALL col0 + + - col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + 1 * COUNT( * ) * - 30 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 1 * COUNT ( * ) * - 30 AS col2 FROM tab2
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 11 col2 FROM tab2
----
-253
-440
-638

query II rowsort
SELECT ALL 31 AS col0, col2 AS col0 FROM tab1
----
31
59
31
68
31
96

query III rowsort
SELECT * FROM tab2 WHERE - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - - ( + 77 ) AS col1 FROM tab2
----
123
141
152

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 54 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 32 AS col0 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT 94 + - ( 29 ) AS col0 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT DISTINCT COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT COUNT ( col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT col1 * - - 65 + - + col2, col2 FROM tab2 AS cor0
----
3292
23
4297
58
4965
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT CAST( + MAX( DISTINCT + + 68 ) AS SIGNED ) * - - SUM( + 39 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( + MAX ( DISTINCT + + 68 ) AS INTEGER ) * - - SUM ( + 39 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + 14 * - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT + 74 / + CAST( NULL AS SIGNED ) + + + col0 - - - 30 * - - col0 + - col2 + ( - 38 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + 74 / + CAST ( NULL AS INTEGER ) + + + col0 - - - 30 * - - col0 + - col2 + ( - 38 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT - - col2 DIV 27 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - - col2 / 27 FROM tab1 AS cor0
----
2
3

query I rowsort
SELECT col0 * + 40 * - ( - col1 ) FROM tab1 AS cor0
----
17000
171080
28560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - COUNT( * ) DIV + - 60 * COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT - COUNT ( * ) / + - 60 * COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT COUNT( DISTINCT + 25 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT COUNT ( DISTINCT + 25 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT SUM( 1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4407
SELECT DISTINCT SUM ( 1 ) col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4408
SELECT DISTINCT col2 AS col2, col0 DIV - col1 FROM tab0
----
10
-4
47
0
99
-97

skipif mysql # not compatible
query II rowsort label-4408
SELECT DISTINCT col2 AS col2, col0 / - col1 FROM tab0
----
10
-4
47
0
99
-97

query I rowsort
SELECT + col1 + - 87 * + + col0 / + 15 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT - + SUM( DISTINCT - 65 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - + SUM ( DISTINCT - 65 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 - + - col0 BETWEEN + 66 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - SUM( ALL - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT - CAST( MAX( DISTINCT - + col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - CAST ( MAX ( DISTINCT - + col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 50 + + - col1 + - 72 AS col2 FROM tab2 AS cor0
----
-173
-189
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT MAX( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4417
SELECT MAX ( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - ( + ( + 49 ) ) ) + col1 + col2 - - - 70 / + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 14 / - 1 * - - 9 AND + 42 + 69
----

query I rowsort
SELECT DISTINCT ( - - 28 ) + - col2 AS col1 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT COUNT( - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT COUNT ( - col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + 65 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 65 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col2 - col2 AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT - CAST( NULL AS SIGNED ) + - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT - CAST ( NULL AS INTEGER ) + - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT 75 + + - SUM( - col0 ) FROM tab2 cor0
----
260

skipif mysql # not compatible
query I rowsort label-4425
SELECT 75 + + - SUM ( - col0 ) FROM tab2 cor0
----
260

query I rowsort
SELECT + 88 * col0 + col0 + - col1 * 63 * - col1 - - col0 FROM tab1 AS cor0
----
147357
16938
9225

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + MIN( + + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + MIN ( + + 72 ) FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4428
SELECT ALL + 67 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 67 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + 75 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - - 56 > - 21 + - + col2 * - 18
----

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 75 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - - 56 > - 21 + - + col2 * - 18
----

query II rowsort
SELECT + col0 AS col1, - ( - col0 ) * - - ( - - col2 ) + - + 65 AS col1 FROM tab2
----
46
993
64
2495
75
4285

query II rowsort
SELECT + col1, + col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT col2 * + col2, + col1 FROM tab2
----
1600
77
3364
67
529
51

query II rowsort
SELECT DISTINCT + col2 AS col1, 11 FROM tab0 AS cor0
----
10
11
47
11
99
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT MIN( ALL - col0 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT MIN ( ALL - col0 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL - - CAST( + + 5 AS SIGNED ) * col1 FROM tab2 AS cor0
----
255
335
385

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - - CAST ( + + 5 AS INTEGER ) * col1 FROM tab2 AS cor0
----
255
335
385

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4436
SELECT ALL col0 AS col1, 36 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col0 - - 1 + col1 + col0 * - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL col0 AS col1, 36 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col0 - - 1 + col1 + col0 * - + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + CAST( - - 65 AS SIGNED ) * + - 31 FROM tab1 AS cor0
----
-2015
-2015
-2015

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + CAST ( - - 65 AS INTEGER ) * + - 31 FROM tab1 AS cor0
----
-2015
-2015
-2015

query I rowsort
SELECT + 68 * + ( - 94 ) AS col0 FROM tab1 AS cor0
----
-6392
-6392
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + 87 * - - COUNT( * ) AS col0 FROM tab1 cor0
----
261

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 87 * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
261

query I rowsort
SELECT DISTINCT 17 - col1 + 5 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - MIN( ALL + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4442
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + ( 77 ) FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4444
SELECT ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4445
SELECT 48 * + MAX( - - ( CAST( NULL AS DECIMAL ) ) ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 48 * + MAX ( - - ( CAST ( NULL AS REAL ) ) ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT - col1 DIV 8 AS col2 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT - col1 / 8 AS col2 FROM tab1
----
-1
-5
0

query I rowsort
SELECT col1 * - - ( - col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col0 + - col2
----

query II rowsort
SELECT ALL + col0 + + - 15 + - - 13 AS col1, 34 FROM tab2 AS cor0
----
44
34
62
34
73
34

query I rowsort
SELECT + ( - - ( - + col0 ) ) / + - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 39 AS col0, col0 FROM tab1
----
39
51
39
85
39
91

query I rowsort
SELECT - - 72 + - + 11 AS col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE + col1 * col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + ( + - SUM( - 42 ) ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + ( + - SUM ( - 42 ) ) FROM tab0 AS cor0
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + - CAST( NULL AS DECIMAL ) + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT + - CAST ( NULL AS REAL ) + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 * + 95 * + - ( + + col1 ) FROM tab2 AS cor0
----
-324615
-426455
-490105

query I rowsort
SELECT ALL + 71 * + col0 + + - 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3524
5938
6364

query I rowsort
SELECT ALL 52 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL COUNT( * ) * + MAX( DISTINCT - col1 ) + - MIN( + ( + - col1 ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT - col1 ) + - MIN ( + ( + - col1 ) ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT DISTINCT col0 + + col2 + CAST( - col1 AS SIGNED ) FROM tab0
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT col0 + + col2 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT DISTINCT + SUM( DISTINCT col0 ), + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4462
SELECT DISTINCT + SUM ( DISTINCT col0 ), + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 69 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 69 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL - 23 - - - col2, col2 AS col2 FROM tab2 WHERE 41 + col2 + col2 + + col1 IN ( - - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * + col0 - + col1 + - col2 col0, + col0 - 16 AS col1 FROM tab2 AS cor0
----
2272
30
4811
48
4900
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col0 + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4469
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab1 AS cor0 WHERE + 63 + - + col2 + - col1 * 87 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4471
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col2, + 93, + + col2 + - CAST( NULL AS DECIMAL ), + - col0 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4471
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col2, + 93, + + col2 + - CAST ( NULL AS REAL ), + - col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - - COUNT( + 48 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4472
SELECT - - COUNT ( + 48 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - - COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4473
SELECT - - COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - SUM( + 90 ) * 2 * - ( - COUNT( 93 ) ) AS col0 FROM tab1 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-4474
SELECT - SUM ( + 90 ) * 2 * - ( - COUNT ( 93 ) ) AS col0 FROM tab1 AS cor0
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4475
SELECT + + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col2 IS NOT NULL ) )
----

query I rowsort
SELECT ALL - ( - 60 ) AS col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT - ( - col1 ) * - - 29 AS col1 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) + + col1 / + col1 BETWEEN - - col0 * - + col0 AND + col2 OR NOT ( NOT col0 * - col0 IS NULL )
----

query I rowsort
SELECT ( + - 76 ) AS col1 FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT MAX( ALL - ( 94 ) ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-4481
SELECT MAX ( ALL - ( 94 ) ) FROM tab1
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col2, + 37 col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + 40 FROM tab0
----
3240
40
840

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + 40 FROM tab0
----
3240
40
840

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT DISTINCT + 56 DIV - + col0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + 56 / - + col0 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT - col1 * col2 * + + col2 + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - ( - - MIN( ALL col1 ) ) * 87 AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4486
SELECT - ( - - MIN ( ALL col1 ) ) * 87 AS col1 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE + col2 * - + col2 * - col1 <> - - col0 - - 42
----
3

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE + col2 * - + col2 * - col1 <> - - col0 - - 42
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL - MAX( DISTINCT + 37 ) + 26 AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - MAX ( DISTINCT + 37 ) + 26 AS col0 FROM tab1
----
-11

query I rowsort
SELECT - 54 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - COUNT( - ( - 34 ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4490
SELECT - COUNT ( - ( - 34 ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL col1 * - 2 FROM tab2
----
-102
-134
-154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 25 IS NULL
----

query I rowsort
SELECT - 12 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - + col2 DIV - ( + - 28 ) AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT - + col2 / - ( + - 28 ) AS col0 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL - 14 DIV + + col1 FROM tab0 AS cor0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - 14 / + + col1 FROM tab0 AS cor0
----
-14
0
0

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col2 + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + ( 85 ) FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4498
SELECT - - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - col2 ) col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + MIN( + + 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4500
SELECT + MIN ( + + 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4501
SELECT SUM( DISTINCT + - col1 ) + - 52 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT SUM ( DISTINCT + - col1 ) + - 52 * + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL SUM( ALL + 57 ) AS col1 FROM tab2 WHERE NULL >= - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL SUM ( ALL + 57 ) AS col1 FROM tab2 WHERE NULL >= - 9
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 + + 75 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 7 + COUNT( * ) + - + COUNT( * ) + + + 82 + - + COUNT( * ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4504
SELECT 7 + COUNT ( * ) + - + COUNT ( * ) + + + 82 + - + COUNT ( * ) FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT + 82 + - 15 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 / + 16 * col0 NOT IN ( + - col1 + ( - col2 ) - - 6 * CAST( + + 78 AS SIGNED ), - col1, + col2 - + col2 + col0 )
----
70

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + 82 + - 15 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 / + 16 * col0 NOT IN ( + - col1 + ( - col2 ) - - 6 * CAST ( + + 78 AS INTEGER ), - col1, + col2 - + col2 + col0 )
----
70

query II rowsort
SELECT DISTINCT col0, 8 AS col2 FROM tab1 AS cor0 WHERE NOT - 54 IN ( + - col1, 81, 49 )
----
51
8
85
8
91
8

query I rowsort
SELECT + col1 * 33 AS col0 FROM tab0
----
2673
33
693

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT - + col0 * + - 39 - + - 68 AS col2 FROM tab2 AS cor0
----
1862
2564
2993

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 15 - col1 / + 80 + + 65 / - col1 * + col2
----

query I rowsort
SELECT DISTINCT - ( + 29 ) FROM tab2 AS cor0 WHERE NOT ( ( + + 28 ) + + col2 + + + col0 ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( + col0 ) <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT CAST ( NULL AS REAL ) + - + col1 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT MIN( col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4514
SELECT MIN ( col1 ) AS col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT col2 + - col1 + + + 85 DIV ( - 88 ) + col2 AS col0 FROM tab2
----
-5
3
49

skipif mysql # not compatible
query I rowsort label-4515
SELECT col2 + - col1 + + + 85 / ( - 88 ) + col2 AS col0 FROM tab2
----
-5
3
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + 49 + - col0 + 96 DIV col2 col2 FROM tab0
----
-29
-48
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT + 49 + - col0 + 96 / col2 col2 FROM tab0
----
-29
-48
36

query I rowsort
SELECT col0 + + 7 + - + 16 + + 67 + - + col0 * - col0 FROM tab2
----
2220
4218
5758

query I rowsort
SELECT + col2 * - 55 + + 56 + - ( + col0 ) * - - 99 AS col2 FROM tab0
----
-14992
-4014
-9107

query I rowsort
SELECT - col1 + col1 * - - 45 + + - col0 AS col0 FROM tab1
----
135
1977
565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - 91 AS col0 FROM tab1
----
105
138
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4522
SELECT - col1 AS col2, + CAST( + col1 AS SIGNED ) - - col0 + - 89 * + + col1 + 60 col0 FROM tab2 AS cor0
----
-51
-4382
-67
-5761
-77
-6652

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4522
SELECT - col1 AS col2, + CAST ( + col1 AS INTEGER ) - - col0 + - 89 * + + col1 + 60 col0 FROM tab2 AS cor0
----
-51
-4382
-67
-5761
-77
-6652

query II rowsort
SELECT ALL + col1, 52 AS col2 FROM tab2 AS cor0
----
51
52
67
52
77
52

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL col1 AS col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT DISTINCT - 6 AS col1, 85 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
-6
59925
-6
73950
-6
816255

query I rowsort
SELECT ALL col1 * - col0 + - 68 * + 13 AS col2 FROM tab2 AS cor0
----
-3230
-5812
-5909

query I rowsort
SELECT col1 + - + 6 AS col2 FROM tab1 AS cor0
----
-1
41
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT + ( col1 ) DIV - + col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT + ( col1 ) / - + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 98 * 4 * - 83 AS col2 FROM tab0
----
-32536
-32536
-32536

onlyif mysql # DIV for integer division: 
query II rowsort label-4531
SELECT - col0 DIV + 32, + 39 AS col2 FROM tab0
----
-2
39
-3
39
0
39

skipif mysql # not compatible
query II rowsort label-4531
SELECT - col0 / + 32, + 39 AS col2 FROM tab0
----
-2
39
-3
39
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 2 DIV + col2 - + col0 col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4532
SELECT DISTINCT + 2 / + col2 - + col0 col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT SUM( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4533
SELECT SUM ( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT - - col0 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) / col0 * 15 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4534
SELECT - - col0 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) / col0 * 15 IS NULL
----
15
87
97

query I rowsort
SELECT col0 * + 70 FROM tab1 cor0
----
3570
5950
6370

query I rowsort
SELECT - col2 * + col1 * - 48 AS col1 FROM tab1 AS cor0
----
14160
153408
64512

query I rowsort
SELECT ALL - - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + MIN ( - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + ( - 25 ) * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2175
2425
375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 79 * + col1 AS col2 FROM tab2 AS cor0
----
4029
5293
6083

query II rowsort
SELECT col1, 66 + - + col0 AS col2 FROM tab0 AS cor0
----
1
-31
21
-21
81
51

query II rowsort
SELECT DISTINCT - + col0 + + - col1 + + - 37 AS col1, col1 AS col0 FROM tab0 AS cor0
----
-133
81
-135
1
-145
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST( NULL AS SIGNED ) * + 7
----

skipif mysql # not compatible
query III rowsort label-4545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST ( NULL AS INTEGER ) * + 7
----

query I rowsort
SELECT ALL + col1 + + 38 AS col2 FROM tab2
----
105
115
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL 91 AS col0 FROM tab1 WHERE + - 15 * col0 IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL 91 AS col0 FROM tab1 WHERE + - 15 * col0 IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4548
SELECT + col0 / 7 + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + col0 / 7 + CAST ( NULL AS REAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT ALL - CAST( 55 AS SIGNED ) col2 FROM tab0
----
-55
-55
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4549
SELECT ALL - CAST ( 55 AS INTEGER ) col2 FROM tab0
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 WHERE 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT + 61 DIV + col1 AS col2 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-4551
SELECT + 61 / + col1 AS col2 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT + - col1 + - col0 + + - col1 + - 35 AS col0 FROM tab2 AS cor0
----
-183
-244
-253

query I rowsort
SELECT ALL + - col2 * + - 57 + + - col2 + - col1 * - - col2 FROM tab0 AS cor0 WHERE NOT col1 * + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT col0 * CAST( NULL AS SIGNED ) + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT col0 * CAST ( NULL AS INTEGER ) + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + - 27 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT 34 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - - 26 - + + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT ALL col1 * + - 24 AS col0 FROM tab1 AS cor0
----
-1128
-120
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT col0 - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4562
SELECT col0 - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL AND NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4564
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4564
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + - 13 * - + 52 + - + col2 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
685
704
713

query I rowsort
SELECT col1 - + 25 AS col0 FROM tab0 AS cor0
----
-24
-4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT 45 * - - COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT 45 * - - COUNT ( * ) FROM tab1
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 26 col1, - col0 AS col2 FROM tab2
----
26
-46
26
-64
26
-75

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 WHERE + - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + 28 * + COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + 28 * + COUNT ( * ) AS col0 FROM tab0
----
84

query I rowsort
SELECT DISTINCT - + col2 / + - ( - - 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4572
SELECT - - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + 2 * + col2 * - col0 * - 27 + - + 45 FROM tab1 AS cor0
----
264339
270765
334107

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + + 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + col0 * ( + 65 ) * + col2 AS col2 FROM tab1 AS cor0
----
318240
325975
402220

query I rowsort
SELECT col1 * + + col0 - - + 71 AS col0 FROM tab2 AS cor0
----
2417
4999
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL - CAST( NULL AS SIGNED ) * col2 * + 77 * 19 + - col1 + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 * + 77 * 19 + - col1 + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 63 - - col1 - - 96 FROM tab2
----
51
210
67
226
77
236

query III rowsort
SELECT * FROM tab0 WHERE + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + + col2 + + - ( ( - col0 ) ) * + ( + col1 ) + 14, - col1 AS col2 FROM tab2
----
1153
-67
1187
-51
1862
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 47 ) col2 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL MAX( - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL MAX ( - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - SUM( ALL col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4585
SELECT - SUM ( ALL col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 5 / MIN( DISTINCT - - col2 ) + + ( - - COUNT( * ) ) AS col2 FROM tab1 WHERE col1 = + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 5 / MIN ( DISTINCT - - col2 ) + + ( - - COUNT ( * ) ) AS col2 FROM tab1 WHERE col1 = + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL CAST( + + 86 AS SIGNED ) AS col0 FROM tab0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL CAST ( + + 86 AS INTEGER ) AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT + 76 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL ( + + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL ( + + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - 43 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT + + CAST( + + ( + + col0 ) AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + + CAST ( + + ( + + col0 ) AS INTEGER ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col0 - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 43 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - 19 * - col0 AS col2 FROM tab2 cor0
----
1216
1425
874

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT + CAST( - - CAST( + + 61 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + CAST ( - - CAST ( + + 61 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4597
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT col1 DIV col2 * - + col0 * - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT col1 / col2 * - + col0 * - col2 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col0 * + + col2 * 95 AS col2, 80 + - col2 FROM tab2
----
-100510
57
-243200
40
-413250
22

query I rowsort
SELECT ALL col1 * + - 69 AS col0 FROM tab2
----
-3519
-4623
-5313

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 58 )
----

query I rowsort
SELECT ALL + + col1 * + + col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

query II rowsort
SELECT ALL - col2 + - 70 AS col2, - 77 AS col1 FROM tab0
----
-117
-77
-169
-77
-80
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT COUNT( * ) * MAX( ALL col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT COUNT ( * ) * MAX ( ALL col2 ) FROM tab1
----
288

query I rowsort
SELECT 64 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 = + + col1 - - - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4610
SELECT ALL col2 * - col2 * + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL col2 * - col2 * + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) DIV + - 46 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) / + - 46 AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 88
----

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 57 * - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5643

skipif mysql # not compatible
query I rowsort label-4614
SELECT 57 * - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - MIN( col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4615
SELECT - MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4616
SELECT + COUNT( * ), 44 DIV - - COUNT( * ) col0 FROM tab2 cor0
----
3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4616
SELECT + COUNT ( * ), 44 / - - COUNT ( * ) col0 FROM tab2 cor0
----
3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT - 71 DIV - + 63 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 71 / - + 63 + + col1 FROM tab0 AS cor0
----
2
22
82

query II rowsort
SELECT ALL - col0 + 52, + col2 AS col1 FROM tab2 AS cor0
----
-12
40
-23
58
6
23

query I rowsort
SELECT ALL - 52 + 95 AS col2 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - - 20 - + COUNT( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - 20 - + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
20

query I rowsort
SELECT + ( 33 ) AS col0 FROM tab2
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4622
SELECT ALL - COUNT( * ) DIV CAST( 3 AS SIGNED ) + + + 88 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - COUNT ( * ) / CAST ( 3 AS INTEGER ) + + + 88 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT - 82, 36 * + 88 - CAST( + 54 AS SIGNED ) + - col0 * - col0 * - col2 + - col0 * + col1 AS col1 FROM tab1 WHERE + 67 < ( + col2 )
----
-82
-247296
-82
-564271

skipif mysql # not compatible
query II rowsort label-4623
SELECT - 82, 36 * + 88 - CAST ( + 54 AS INTEGER ) + - col0 * - col0 * - col2 + - col0 * + col1 AS col1 FROM tab1 WHERE + 67 < ( + col2 )
----
-82
-247296
-82
-564271

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT 1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( + - col1 ) * + col0 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT - ( - - 38 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - ( - - 38 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 82 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) < 43 * - 95 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN + 36 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT ( + + COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ( + + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - + COUNT( 45 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4631
SELECT - + COUNT ( 45 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + 17 * + col0 * - + 50 + - - 73 FROM tab1 AS cor0
----
43423
72323
77423

query I rowsort
SELECT 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( + 38 BETWEEN col2 AND NULL ) ) )
----

query I rowsort
SELECT DISTINCT 97 * - - 22 * + col0 FROM tab0 cor0
----
185658
206998
32010

query II rowsort
SELECT ALL + col0, - col1 + - 64 FROM tab1 AS cor0
----
51
-78
85
-69
91
-111

query II rowsort
SELECT DISTINCT + + col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 6 * + ( + col1 ) AS col2 FROM tab0
----
-126
-486
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4639
SELECT DISTINCT 5 * - col2 AS col0, + 84 * ( - 86 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-235
NULL
-495
NULL
-50
NULL

skipif mysql # not compatible
query II rowsort label-4639
SELECT DISTINCT 5 * - col2 AS col0, + 84 * ( - 86 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-235
NULL
-495
NULL
-50
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - + col2, 70 col2 FROM tab2 AS cor0
----
1058
70
2560
70
4350
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col1 FROM tab2 cor0
----
-24
-24
-24

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 58 DIV + - col0 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 58 / + - col0 AS col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT 32 + COUNT( * ) AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4645
SELECT 32 + COUNT ( * ) AS col1 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL + 50 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + 50 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 * 30 + - 1 * + col0 * + 24 AS col1 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT + 64 + - col2 FROM tab2
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL 56 * - COUNT( * ) - COUNT( * ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 56 * - COUNT ( * ) - COUNT ( * ) FROM tab0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4650
SELECT - COUNT( * ), - 77 DIV - + 62 AS col0 FROM tab2
----
-3
1

skipif mysql # not compatible
query II rowsort label-4650
SELECT - COUNT ( * ), - 77 / - + 62 AS col0 FROM tab2
----
-3
1

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + + 95 * col2 * - 11 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + + ( - 2 ) * - - ( 87 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col0 AS col0, ( - col1 ) * - col1 AS col0 FROM tab1 cor0
----
-51
196
-85
25
-91
2209

query II rowsort
SELECT ALL - + 48 AS col0, 31 FROM tab0 AS cor0
----
-48
31
-48
31
-48
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL - MAX( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - 35 + col0 AS col2 FROM tab2 AS cor0
----
11
29
40

query I rowsort
SELECT - col1 + + ( ( - col2 ) ) FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT + - 95 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-4658
SELECT + - 95 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT + + 30 DIV + + 35 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT + + 30 / + + 35 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT + ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT COUNT( * ) * + - COUNT( * ) + - + 19 AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) * + - COUNT ( * ) + - + 19 AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT + col2 * + 31 FROM tab2
----
1240
1798
713

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 44 * - 29 + + 55 * + 54 / + 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, col0 AS col1 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab2 WHERE + col0 + - col2 NOT IN ( + col2 )
----
117
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 22 FROM tab2 WHERE NULL IN ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 22 FROM tab2 WHERE NULL IN ( + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( * ) * - 53 AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4668
SELECT COUNT ( * ) * - 53 AS col1 FROM tab2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 41 * COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4669
SELECT 41 * COUNT ( * ) FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL 93 + + MAX( + col2 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL 93 + + MAX ( + col2 ) FROM tab1
----
189

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE col1 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT - col2 + - col1 DIV - 97 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4673
SELECT - col2 + - col1 / - 97 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT - 67 DIV + col1 + ( - col1 ) AS col0 FROM tab2
----
-52
-68
-77

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 67 / + col1 + ( - col1 ) AS col0 FROM tab2
----
-52
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4675
SELECT ALL * FROM tab0 WHERE NOT - 85 * + col2 IN ( + CAST( col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4675
SELECT ALL * FROM tab0 WHERE NOT - 85 * + col2 IN ( + CAST ( col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col2 ) < + 94
----

query I rowsort
SELECT + col2 * 90 FROM tab2 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL col0 * - ( col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL - 53 - - COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - 53 - - COUNT ( * ) FROM tab1
----
-50

query I rowsort
SELECT - col0 * + col1 + - col1 FROM tab2 WHERE NOT + col0 / + 14 >= + col0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - 15 - - COUNT( * ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 15 - - COUNT ( * ) AS col2 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT - SUM( col1 ) + - SUM( DISTINCT - col2 ) * - 69 AS col2 FROM tab0
----
-10867

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT - SUM ( col1 ) + - SUM ( DISTINCT - col2 ) * - 69 AS col2 FROM tab0
----
-10867

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COUNT( * ) * 69 col2 FROM tab2
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT COUNT ( * ) * 69 col2 FROM tab2
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 1 * - 90 ) > ( 27 / 5 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col2 * + 33 FROM tab2
----
1360
1972
782

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - 43 + 51 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 86 * COUNT( * ) AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 86 * COUNT ( * ) AS col1 FROM tab2
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT col2 DIV 79 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT col2 / 79 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 41 FROM tab0
----
122
42
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT DISTINCT - 58 DIV col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - 58 / col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - 62 * COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 62 * COUNT ( * ) FROM tab2 AS cor0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT MAX( - 8 ) * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT DISTINCT MAX ( - 8 ) * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 49 ) * col1 AS col1 FROM tab2 cor0
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - ( 59 ) * + SUM( - 6 ) FROM tab2 AS cor0
----
1062

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - ( 59 ) * + SUM ( - 6 ) FROM tab2 AS cor0
----
1062

query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT ( COUNT( * ) ) * - MAX( 78 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-702

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT ( COUNT ( * ) ) * - MAX ( 78 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-702

query I rowsort
SELECT 2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT COUNT( * ) * - 6 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT COUNT ( * ) * - 6 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
-54

query I rowsort
SELECT 43 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT - - 81 AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( - 42 ) AS col2 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT ( + col2 ) * col2 - - col1 DIV + 26 col0 FROM tab1 AS cor0 WHERE NOT 24 BETWEEN + col1 AND 33 * col1
----
4625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT ( + col2 ) * col2 - - col1 / + 26 col0 FROM tab1 AS cor0 WHERE NOT 24 BETWEEN + col1 AND 33 * col1
----
4625

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 10 * 98 + + 54 NOT BETWEEN + col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + MIN( ALL 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + MIN ( ALL 70 ) FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN ( + col1 ) AND ( + col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 33 * - + 39 AS col0 FROM tab2
----
-1287
-1287
-1287

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT ALL - col2 DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - col2 / + - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 84 + + ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-4713
SELECT 84 + + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
87

query I rowsort
SELECT - col1 * - 62 * col0 + + col2 FROM tab0
----
113284
6113
75377

query I rowsort
SELECT + col0 * + - col2 + col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - ( - MAX( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4716
SELECT - ( - MAX ( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + 28 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT MAX( ALL + 30 ) * + + 70 FROM tab1
----
2100

skipif mysql # not compatible
query I rowsort label-4718
SELECT MAX ( ALL + 30 ) * + + 70 FROM tab1
----
2100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * + 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
33

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT 45 * 14 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( - 37 ) NOT IN ( ( - 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 45 * 14 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( - 37 ) NOT IN ( ( - 9 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 17 ) NOT BETWEEN 63 / col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4724
SELECT * FROM tab1 AS cor0 WHERE + CAST( - col2 AS SIGNED ) + - 11 NOT BETWEEN NULL AND + 84 * ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4724
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) + - 11 NOT BETWEEN NULL AND + 84 * ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT + CAST( + 26 AS SIGNED ) + - + col1 + + 25 FROM tab1 AS cor0
----
37
4
46

skipif mysql # not compatible
query I rowsort label-4725
SELECT + CAST ( + 26 AS INTEGER ) + - + col1 + + 25 FROM tab1 AS cor0
----
37
4
46

query I rowsort
SELECT DISTINCT - col1 + - 73 AS col1 FROM tab0 AS cor0
----
-154
-74
-94

query I rowsort
SELECT ALL + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - 25 AS col1 FROM tab0 AS cor0
----
-2025
-25
-525

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE ( 27 + col0 ) NOT IN ( col0 * 8 )
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( col2 AS SIGNED ) + - col2 + - 5 * + col1 * 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( col2 AS INTEGER ) + - col2 + - 5 * + col1 * 57 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 51 + col2 FROM tab2
----
109
74
91

query I rowsort
SELECT ALL col0 - - - 62 AS col0 FROM tab1
----
-11
23
29

query I rowsort
SELECT + col1 FROM tab0 WHERE ( col2 - - 48 + - col0 ) IS NULL
----

query I rowsort
SELECT + col1 * + - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL + CAST( NULL AS SIGNED ) - MIN( ALL - + ( - col0 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + CAST ( NULL AS INTEGER ) - MIN ( ALL - + ( - col0 ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 * + - ( - col0 ) - - + col0 AS col0 FROM tab0
----
1230
1914
194

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 98 + + + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4740
SELECT col2 - col1 + + + CAST( + col1 AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT col2 - col1 + + + CAST ( + col1 AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 * - ( - col1 ) * - col2 - - col0 AS col1 FROM tab2
----
-100961
-30452
-80016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - col0 + + col2 col1 FROM tab2
----
64
65
71

query I rowsort
SELECT DISTINCT + - col2 * + 20 FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - + col2 DIV + - col0 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - + col2 / + - col0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 * + + col0 - - col2 ) <> col1
----

query I rowsort
SELECT + col1 + + 96 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col1 + + col0 + col2 NOT IN ( 35 * + 46 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - - COUNT( * ) * + - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4747
SELECT - - COUNT ( * ) * + - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-273

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + col1 IS NULL )
----

query I rowsort
SELECT ALL - col2 * - col1 * - 65 * - + col2 FROM tab1 AS cor0
----
1131325
14126320
8386560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT ALL 35 DIV MAX( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 35 / MAX ( DISTINCT - col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - SUM( ALL col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4751
SELECT - SUM ( ALL col0 ) col0 FROM tab2
----
-185

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL = NULL AND - + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT ( + - col1 ) / ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT ( + - col1 ) / ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + + 36 ) * 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4755
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) + col0 / + - col1 BETWEEN - col1 * 48 AND col0 / col1
----

skipif mysql # not compatible
query III rowsort label-4755
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) + col0 / + - col1 BETWEEN - col1 * 48 AND col0 / col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 28 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT + col0 + - - 81 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> - - ( 97 )
----

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE - col1 * + + 50 + - - 48 BETWEEN + col2 AND ( 84 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4762
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
3
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( - - 10 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 + + col0 + - - col1 + - col0 + + 27 + 37 = - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - + COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4765
SELECT - + COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT - 50 * - col0 AS col0 FROM tab1 AS cor0
----
2550
4250
4550

query I rowsort
SELECT DISTINCT - 12 * - 21 * 56 * + col2 FROM tab0 AS cor0
----
1397088
141120
663264

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT 60 - - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4768
SELECT 60 - - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL col0 + + - ( 24 ) FROM tab2
----
22
40
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col2 * - - 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4771
SELECT - 44 AS col1, 71 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-44
68

skipif mysql # not compatible
query II rowsort label-4771
SELECT - 44 AS col1, 71 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-44
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( - col1 / col2 * - 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 26 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 cor0
----
3
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / + col2 + - col2 > + col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + + ( + 16 ) + + col0 AS col1 FROM tab0 cor0
----
113
1311
423

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4778
SELECT DISTINCT - col0 DIV - + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-4778
SELECT DISTINCT - col0 / - + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + - SUM( ALL - 50 ) AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - SUM ( ALL - 50 ) AS col2 FROM tab1 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL 34 DIV + - 4 + col2 + col0 FROM tab1 AS cor0
----
136
139
151

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 34 / + - 4 + col2 + col0 FROM tab1 AS cor0
----
136
139
151

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col1 FROM tab0 cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col1 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT col1 DIV 82 + + col0 + - col2 AS col1 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-4784
SELECT col1 / 82 + + col0 + - col2 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT - col1 + - + 54 AS col2 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT - 52 + 64 FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MIN( ALL - col2 ) + - 71 AS col1 FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-4787
SELECT MIN ( ALL - col2 ) + - 71 AS col1 FROM tab1
----
-167

query I rowsort
SELECT col1 + + + col2 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab0 WHERE + + 62 >= ( + col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col1 ) col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + SUM( ALL - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + SUM ( ALL - + col0 ) FROM tab2
----
-185

query I rowsort
SELECT 33 + + col1 FROM tab2
----
100
110
84

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT NULL <> - + col0 )
----

query I rowsort
SELECT ALL - + col1 + - ( 49 ) * - 69 - 50 AS col0 FROM tab1 AS cor0
----
3284
3317
3326

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4795
SELECT + + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
6

query I rowsort
SELECT 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 17 + + 6 + + 9 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT col2 - - col1 - - col0 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT ALL - 49 AS col0, ( COUNT( * ) ) + + COUNT( * ) + + - 96 * + 47 AS col2 FROM tab1 AS cor0
----
-49
-4506

skipif mysql # not compatible
query II rowsort label-4800
SELECT ALL - 49 AS col0, ( COUNT ( * ) ) + + COUNT ( * ) + + - 96 * + 47 AS col2 FROM tab1 AS cor0
----
-49
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - + COUNT( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - + COUNT ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT + col1, ( + col0 ) + + 7 AS col0, + 61 - - col2 FROM tab1 AS cor0
----
9 values hashing to 64f3b26225bc3651a5e09ffd0b024a39

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + + ( + MIN( 54 ) ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + + ( + MIN ( 54 ) ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT + col0 * + 37 * + + 46 FROM tab1 AS cor0
----
144670
154882
86802

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, 99 AS col1 FROM tab1 cor0
----
-51
99
-85
99
-91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL ( + + MIN( DISTINCT 78 ) ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL ( + + MIN ( DISTINCT 78 ) ) FROM tab1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4808
SELECT - SUM( DISTINCT 65 ) AS col2, 16 * - 16 + + CAST( NULL AS SIGNED ) FROM tab2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-4808
SELECT - SUM ( DISTINCT 65 ) AS col2, 16 * - 16 + + CAST ( NULL AS INTEGER ) FROM tab2
----
-65
NULL

query I rowsort
SELECT DISTINCT + col0 / + - 12 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 52 * col2 FROM tab2
----
-1196
-2080
-3016

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + + col1
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + - COUNT( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4813
SELECT + - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - SUM( 33 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4814
SELECT - SUM ( 33 ) AS col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL ( + + ( + 23 ) ) FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + SUM( DISTINCT - + ( col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + SUM ( DISTINCT - + ( col0 ) ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 + - - col1
----

query II rowsort
SELECT - col2 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 * 69 FROM tab2 AS cor0
----
3473
4548
5249

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4821
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MAX ( + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4823
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT - COUNT( * ) DIV + 43 * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - COUNT ( * ) / + 43 * + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT 71 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 50 * col2 AS col0 FROM tab0
----
2350
4950
500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4827
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN + CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4827
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN + CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT - col1 + - + 89 DIV + + 60 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4828
SELECT - col1 + - + 89 / + + 60 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE col1 / + + col2 * - col2 + 50 * - + CAST( NULL AS SIGNED ) NOT IN ( - col1, - col2 )
----

skipif mysql # not compatible
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE col1 / + + col2 * - col2 + 50 * - + CAST ( NULL AS INTEGER ) NOT IN ( - col1, - col2 )
----

query I rowsort
SELECT - - col2 * col0 + + - 77 * - col2 FROM tab2 AS cor0
----
2829
5640
8816

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( * ) + + 71 * - 21 AS col0 FROM tab0 AS cor0
----
-1494

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( * ) + + 71 * - 21 AS col0 FROM tab0 AS cor0
----
-1494

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - 24 + + - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 24 + + - COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT - + MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT 29 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - + MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT 29 IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + + MAX( DISTINCT ( - + 40 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT ALL + + MAX ( DISTINCT ( - + 40 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - 87 - col1 + ( - - col0 ) FROM tab2 AS cor0
----
-100
-79
-92

query I rowsort
SELECT DISTINCT - - 4 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT + col2 - - col0 + + CAST( NULL AS SIGNED ) * 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT + col2 - - col0 + + CAST ( NULL AS INTEGER ) * 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 43 * col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

query I rowsort
SELECT + 1 AS col1 FROM tab0 cor0 WHERE NOT col0 < - 45 - + - 32
----
1
1
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + ( + col2 ) / + - 17 * - - col0 * - + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 89 * - 42 FROM tab0 cor0
----
-3738
-3738
-3738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) col1, + col2 col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - - COUNT( ALL - col0 ) + - - 3 * + 13 AS col0 FROM tab1 WHERE NOT + + 70 NOT BETWEEN NULL AND col1
----
39

skipif mysql # not compatible
query I rowsort label-4844
SELECT - - COUNT ( ALL - col0 ) + - - 3 * + 13 AS col0 FROM tab1 WHERE NOT + + 70 NOT BETWEEN NULL AND col1
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + ( + 95 ) NOT IN ( + ( - - col2 ) + - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - COUNT( col2 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT ALL - COUNT ( col2 ) col1 FROM tab2
----
-3

query I rowsort
SELECT col2 / - col1 + - col2 FROM tab2 WHERE NOT col2 + + col0 + - + col2 * - col1 * + + col1 * - col1 * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4848
SELECT ALL col1 DIV - + col2, - col1 * col0 AS col0 FROM tab0
----
-1
-1215
-2
-1827
0
-97

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL col1 / - + col2, - col1 * col0 AS col0 FROM tab0
----
-1
-1215
-2
-1827
0
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT col0 AS col2, + 36 FROM tab0
----
15
36
87
36
97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL + COUNT( * ) - + + 84 + + - 76 FROM tab1 cor0 WHERE col0 IS NULL
----
-160

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + COUNT ( * ) - + + 84 + + - 76 FROM tab1 cor0 WHERE col0 IS NULL
----
-160

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
1
21
81

query I rowsort
SELECT 5 + - col0 * 6 + + 45 FROM tab0 AS cor0 WHERE NOT ( NULL < ( - + col2 + - - col1 * - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT 57 * - + 51 AS col2 FROM tab1 AS cor0 WHERE + 81 <> + - col0
----
-2907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col0 col0 FROM tab1 AS cor0
----
1224
2040
2184

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * - 10 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col2 * ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col2 * ( - col2 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4860
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col2 + - + 47 AS col1 FROM tab1 AS cor0
----
12
21
49

query I rowsort
SELECT ALL + + AVG ( + col1 ) FROM tab0 WHERE NOT + 41 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT col0 * 98 * + 84 + - 19 * - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT col0 * 98 * + 84 + - 19 * - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT COUNT( * ) + 28 AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4865
SELECT COUNT ( * ) + 28 AS col1 FROM tab0
----
31

query I rowsort
SELECT col1 + - col1 - + + 39 * - - col0 AS col1 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL + 90 + + MIN( ALL - col0 ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT ALL + 90 + + MIN ( ALL - col0 ) col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT MIN( DISTINCT + 23 ) AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT MIN ( DISTINCT + 23 ) AS col1 FROM tab1
----
23

query I rowsort
SELECT + 79 FROM tab2 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL - COUNT( - 36 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - COUNT ( - 36 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT CAST( + 37 AS SIGNED ) * + COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4871
SELECT CAST ( + 37 AS INTEGER ) * + COUNT ( * ) FROM tab0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT 17 + + - col1 + - col1 + + - col1 DIV + col1 FROM tab1 cor0
----
-12
-78
6

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT 17 + + - col1 + - col1 + + - col1 / + col1 FROM tab1 cor0
----
-12
-78
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - CAST( NULL AS SIGNED ) * - col1 * - - col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - CAST ( NULL AS INTEGER ) * - col1 * - - col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 27 - + + col2 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL MIN( ALL + col0 ) + - COUNT( * ) col0 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4876
SELECT ALL MIN ( ALL + col0 ) + - COUNT ( * ) col0 FROM tab2
----
43

query I rowsort
SELECT ( + ( + + 59 ) ) + col1 + - - col0 FROM tab2
----
156
200
201

query I rowsort
SELECT col0 + col1 + 80 FROM tab2
----
177
221
222

query I rowsort
SELECT DISTINCT col1 - + ( + + 75 ) AS col2 FROM tab0
----
-54
-74
6

query I rowsort
SELECT ALL + ( + - col1 ) * + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + 59 * 15 FROM tab2 AS cor0
----
885
885
885

query I rowsort
SELECT ALL + 36 * - 67 AS col0 FROM tab0 cor0
----
-2412
-2412
-2412

query II rowsort
SELECT - - col1 * + col2 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4884
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col2, + 38 FROM tab2 AS cor0
----
1
38

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col2, + 38 FROM tab2 AS cor0
----
1
38

query I rowsort
SELECT + - col0 * - + col2 * - 34 FROM tab1 AS cor0
----
-166464
-170510
-210392

query I rowsort
SELECT ALL - + 10 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL + COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * - 10 * ( 24 ) FROM tab1
----
11280
1200
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4891
SELECT COUNT( * ) / + - 96 * SUM( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT COUNT ( * ) / + - 96 * SUM ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT + + 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT + + col1 - 0 AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN + col1 AND + - 86 + ( col1 ) * 26 / - ( - - col2 ) + - 31 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4894
SELECT + + col1 - 0 AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN + col1 AND + - 86 + ( col1 ) * 26 / - ( - - col2 ) + - 31 - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT MIN( ALL - 63 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4895
SELECT MIN ( ALL - 63 ) FROM tab0 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT 16 DIV - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT 16 / - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col0 FROM tab2 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT COUNT ( * ) col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col2 + - 46 AND NULL
----
1

query I rowsort
SELECT + 15 * + 66 AS col2 FROM tab0 AS cor0
----
990
990
990

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + 88 ) IS NULL
----

query I rowsort
SELECT 43 * - col1 + - 15 FROM tab0
----
-3498
-58
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - COUNT( * ) - 45 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - COUNT ( * ) - 45 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT + 48 + - + COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + 48 + - + COUNT ( * ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT col0 + + - 65 + - col0 + 46 * - col0 / - + col0 * + - col2 / - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 75 + + + 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - MAX( ALL 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-4911
SELECT - MAX ( ALL 74 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT 29 * + 90 FROM tab2
----
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + SUM( - 81 ) AS col2 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4914
SELECT + SUM ( - 81 ) AS col2 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL 56 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL 56 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL + 99 * - col1 FROM tab1 AS cor0
----
-1386
-4653
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT + col2 DIV + col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + col2 / + col1 FROM tab1 cor0
----
1
11
6

query I rowsort
SELECT + col2 * + + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT ALL 8 DIV + 98 * - + col1 + col2 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 8 / + 98 * - + col1 + col2 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
2
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL - 95 * + COUNT( * ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - 95 * + COUNT ( * ) FROM tab0 AS cor0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT DISTINCT MAX( CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT MAX ( CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col1 AND + 68
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + - COUNT( DISTINCT + 1 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT + - COUNT ( DISTINCT + 1 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 * 13 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to bf2996c613f3a131e145fea8100a862a

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT - 46 DIV - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 46 / - col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT SUM( + col0 ) DIV COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4927
SELECT SUM ( + col0 ) / COUNT ( * ) FROM tab1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT - col1 * col2 DIV + 61 FROM tab0
----
-1
-3
-62

skipif mysql # not compatible
query I rowsort label-4928
SELECT - col1 * col2 / + 61 FROM tab0
----
-1
-3
-62

query I rowsort
SELECT - col1 * ( + 22 ) AS col1 FROM tab2
----
-1122
-1474
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - COUNT( * ) * - - 2 * 2 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - COUNT ( * ) * - - 2 * 2 AS col0 FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT col0 DIV + - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT col0 / + - col1 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col0 + + 85 + col1 FROM tab0 AS cor0
----
-11
151
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 33 ) col2 FROM tab1 cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col2 * + 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + ( col1 ) + + + 93 AS col2 FROM tab0 AS cor0
----
114
174
94

query I rowsort
SELECT ALL + 56 / + 50 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NOT NULL )
----

query I rowsort
SELECT + col1 * - col2 + + + col2 - col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 WHERE col0 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 32 + col2 AS col2 FROM tab0
----
131
42
79

query I rowsort
SELECT DISTINCT + ( - 8 ) FROM tab1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL - col0 - - + 73 DIV - - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - col0 - - + 73 / - - col0 FROM tab2
----
-45
-63
-75

query II rowsort
SELECT - 52 AS col1, + 45 FROM tab0
----
-52
45
-52
45
-52
45

query I rowsort
SELECT DISTINCT - col0 - - 61 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - COUNT( * ) - - SUM( + 54 ) + - 79 + - 9 * - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-4946
SELECT - COUNT ( * ) - - SUM ( + 54 ) + - 79 + - 9 * - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
161

query II rowsort
SELECT + col2 AS col1, ( - col1 ) + ( + ( col1 ) ) + col1 AS col0 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 64 AS SIGNED ) + - - 13 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 64 AS INTEGER ) + - - 13 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col0 * - - col2 * + 44 FROM tab0 cor0
----
31020
38280
422532

query II rowsort
SELECT col1 * - col0 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1215
47
-1827
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4953
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - 47, MIN( - col2 ) AS col2 FROM tab0
----
-47
-99

skipif mysql # not compatible
query II rowsort label-4955
SELECT - 47, MIN ( - col2 ) AS col2 FROM tab0
----
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COUNT( * ) FROM tab2 WHERE NOT + - 39 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT COUNT ( * ) FROM tab2 WHERE NOT + - 39 >= NULL
----
0

query I rowsort
SELECT ALL - col2 * - ( - col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT col2 AS col0, 59 * + col0 FROM tab0
----
10
5133
47
885
99
5723

query I rowsort
SELECT DISTINCT - - 39 * + col0 * + 16 AS col2 FROM tab1 AS cor0
----
31824
53040
56784

query I rowsort
SELECT DISTINCT col1 * + 98 + + col2 AS col0 FROM tab2 AS cor0
----
5021
6624
7586

query I rowsort
SELECT + - col1 * + col1 * - col0 + col2 FROM tab0 AS cor0
----
196
38377
98462

query I rowsort
SELECT + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT - 55 * + + 32 + + + col2 * - col1 + - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT - 55 * + + 32 + + + col2 * - col1 + - 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 ALL + ( - col2 ) + + col1 + col1 col0, + 52 AS col1 FROM tab1
----
-49
52
-68
52
26
52

query I rowsort
SELECT + - ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - + ( col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL + + 8 + - CAST( MIN( + 96 ) AS SIGNED ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + + 8 + - CAST ( MIN ( + 96 ) AS INTEGER ) FROM tab2 AS cor0
----
-88

query I rowsort
SELECT - + col1 - 0 * col1 + - col2 + - - 76 FROM tab2 AS cor0
----
-41
-49
2

query I rowsort
SELECT - col2 FROM tab0 WHERE - + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col0 FROM tab1
----
102
170
182

query I rowsort
SELECT + + col2 * - - col2 + col0 - - + 85 AS col0 FROM tab2 AS cor0 WHERE NOT - 43 * - col1 IS NULL
----
1749
3524
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL + + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, - 73 FROM tab1 AS cor0
----
59
-73
68
-73
96
-73

query II rowsort
SELECT col1 * - 86 * - col0 * + 83 AS col2, - col2 FROM tab2 AS cor0
----
16745748
-23
35176064
-40
35868450
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL - MIN( - - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - MIN ( - - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * col0 + + - col1 col0 FROM tab2
----
547
755
908

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT ALL * FROM tab1 WHERE + + 80 / 17 * - CAST( 78 AS SIGNED ) + + col1 IN ( - col2, col0, 24 + + col1, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT ALL * FROM tab1 WHERE + + 80 / 17 * - CAST ( 78 AS INTEGER ) + + col1 IN ( - col2, col0, 24 + + col1, + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL COUNT( * ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL COUNT ( * ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
9

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 0 * + 49 = NULL
----

query I rowsort
SELECT 14 + - col0 AS col2 FROM tab2
----
-32
-50
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4982
SELECT 16 + + 56 col1, CAST( - col1 AS SIGNED ) * + col0 * col1 * - col1 FROM tab0
----
72
7971615
72
805707
72
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4982
SELECT 16 + + 56 col1, CAST ( - col1 AS INTEGER ) * + col0 * col1 * - col1 FROM tab0
----
72
7971615
72
805707
72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + + MIN( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT + 13 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-4983
SELECT + + MIN ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT + 13 IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT ( + + CAST( - 63 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ( + + CAST ( - 63 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4985
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + + col0 ) * - CAST( + col2 AS SIGNED ) + + 19 + + col2 + - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4985
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + + col0 ) * - CAST ( + col2 AS INTEGER ) + + 19 + + col2 + - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab2 WHERE - - 63 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT - + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4987
SELECT - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT col0 + 16 AS col2 FROM tab1 AS cor0
----
101
107
67

query I rowsort
SELECT DISTINCT - 87 + + col1 AS col1 FROM tab2 AS cor0
----
-10
-20
-36

query I rowsort
SELECT - 44 FROM tab0 AS cor0 WHERE NULL <= + col2 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - + CAST( col1 AS SIGNED ) + col0 - + - 4 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - + CAST ( col1 AS INTEGER ) + col0 - + - 4 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - 32 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 86 + - col1 AS col2 FROM tab2 AS cor0
----
19
35
9

query II rowsort
SELECT 76, + 25 + - 31 AS col1 FROM tab0 AS cor0
----
76
-6
76
-6
76
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT CAST( 21 AS SIGNED ) FROM tab1 cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4996
SELECT CAST ( 21 AS INTEGER ) FROM tab1 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - col2 - + 54
----

query I rowsort
SELECT DISTINCT + 26 * + + 70 + col1 + 79 AS col2 FROM tab0
----
1900
1920
1980

query I rowsort
SELECT DISTINCT - col0 - - 33 * - col0 * col0 AS col1 FROM tab2
----
-135232
-185700
-69874

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1, + ( + - col2 ) * col2, 76 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5001
SELECT DISTINCT - col0 DIV 64, - 34 * - col1 AS col2 FROM tab1
----
-1
1598
-1
170
0
476

skipif mysql # not compatible
query II rowsort label-5001
SELECT DISTINCT - col0 / 64, - 34 * - col1 AS col2 FROM tab1
----
-1
1598
-1
170
0
476

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT - SUM( + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - SUM ( + col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN + col2 / - col1 / - ( + col2 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN + col2 / - col1 / - ( + col2 ) AND col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5004
SELECT ALL col0 DIV + 74 AS col2, + 70 FROM tab0
----
0
70
1
70
1
70

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL col0 / + 74 AS col2, + 70 FROM tab0
----
0
70
1
70
1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ( + MAX( + - col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5005
SELECT ( + MAX ( + - col0 ) ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - col1 * - 16 AS col2 FROM tab1 WHERE NOT + + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5007
SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT + - CAST( + CAST( - - 81 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-5008
SELECT + - CAST ( + CAST ( - - 81 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - - 78 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5009
SELECT - - 78 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
234

query I rowsort
SELECT - 25 * col0 AS col2 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT 4 - + + ( + + col2 ) * - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT 4 - + + ( + + col2 ) * - col1 = NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab0 WHERE NOT NULL IN ( - - col2, - col0, - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT + 92 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 92 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + COUNT( DISTINCT + - 49 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5014
SELECT + COUNT ( DISTINCT + - 49 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT + ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + - MAX( - col1 ) + - 25 col1 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT DISTINCT + - MAX ( - col1 ) + - 25 col1 FROM tab1 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5018
SELECT - - CAST( NULL AS SIGNED ) col1, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5018
SELECT - - CAST ( NULL AS INTEGER ) col1, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL SUM( - CAST( ( 83 ) AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT ALL SUM ( - CAST ( ( 83 ) AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT - 64 + + - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - 64 + + - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT 48 * col2 + 60 + ( ( - col2 ) ) * col2 * + col2 * + 82 * 26 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5022
SELECT CAST( NULL AS SIGNED ) AS col0, + col1 * - col1 - - col2 FROM tab2
----
NULL
-2578
NULL
-4431
NULL
-5889

skipif mysql # not compatible
query II rowsort label-5022
SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 * - col1 - - col2 FROM tab2
----
NULL
-2578
NULL
-4431
NULL
-5889

query I rowsort
SELECT DISTINCT - 86 FROM tab1 WHERE NOT ( col2 BETWEEN 68 AND NULL )
----
-86

query I rowsort
SELECT + 57 FROM tab1 WHERE NULL IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT - - CAST( NULL AS DECIMAL ) + - 37 / + - col1 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - - CAST ( NULL AS REAL ) + - 37 / + - col1 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT col0 DIV + + 55 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5030
SELECT col0 / + + 55 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT SUM( + CAST( - 45 AS SIGNED ) ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT SUM ( + CAST ( - 45 AS INTEGER ) ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT + + col0 - + - 85 * col1 FROM tab1 AS cor0
----
1241
4086
510

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT - - col1 - col1 + 35 DIV 58 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT - - col1 - col1 + 35 / 58 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col1 - 68 * - col1 FROM tab1 AS cor0
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + ( + 78 ) * MIN( ALL + col2 ) FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + ( + 78 ) * MIN ( ALL + col2 ) FROM tab0 AS cor0
----
780

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 75 * + col1 * + col0 + - + 54 IN ( - col2, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + COUNT( * ) - ( COUNT( - col1 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT + COUNT ( * ) - ( COUNT ( - col1 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 6 + - 30 AS col0 FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 35, - col1 col0 FROM tab2 AS cor0
----
-1610
-51
-2240
-77
-2625
-67

query I rowsort
SELECT ALL 37 * + col0 AS col0 FROM tab1
----
1887
3145
3367

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - 22 FROM tab2
----
51
-22
67
-22
77
-22

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 + + + 82 FROM tab1
----
59
141
68
150
96
178

query I rowsort
SELECT + ( - col0 ) * - - ( + + col0 ) AS col1 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, - ( + col1 ) AS col2 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 38 IS NULL
----

query I rowsort
SELECT ALL col0 + col2 * 63 * + col1 FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 2 * - - 94 FROM tab1 AS cor0
----
-15980
-17108
-9588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + 63 col1 FROM tab2
----
147798
310464
316575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 35 * col0 * + - col1 IS NULL
----

query II rowsort
SELECT + - 59 * - col2, col1 FROM tab2 AS cor0
----
1357
51
2360
77
3422
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col2 - - + CAST( col2 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col2 - - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 <> NULL
----

query I rowsort
SELECT ALL - - 28 AS col0 FROM tab0 cor0
----
28
28
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + col1 / 54 + - + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + - + ( + 12 ) col1 FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT + COUNT( * ) + + 44 DIV + COUNT( * ) col0 FROM tab0 cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT DISTINCT + COUNT ( * ) + + 44 / + COUNT ( * ) col0 FROM tab0 cor0
----
17

query I rowsort
SELECT 57 + 0 * ( + 6 ) FROM tab0
----
57
57
57

query I rowsort
SELECT ALL col0 + + - col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + COUNT( + 26 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + COUNT ( + 26 ) FROM tab1
----
3

query I rowsort
SELECT - 74 * - col0 AS col1 FROM tab2
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL - 58 + - 64 + + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 58 + - 64 + + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
-116

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + + 3 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT 6 DIV - 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT 6 / - 67 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 col0, ( + - 64 ) AS col0 FROM tab2
----
75
-64
75
-64
75
-64

query I rowsort
SELECT + col1 * + 14 FROM tab0 AS cor0
----
1134
14
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + + ( - col0 ) col2 FROM tab1 WHERE col1 IS NOT NULL
----
-135
-169
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT + 79 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 79 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 63 - 14 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 92 * + 83 AS col2 FROM tab1 AS cor0
----
-7636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL + 42 * - - CAST( + 97 AS SIGNED ) * + - 43 + COUNT( * ) + - + MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + 42 * - - CAST ( + 97 AS INTEGER ) * + - 43 + COUNT ( * ) + - + MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT CAST( - 18 AS SIGNED ) col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT DISTINCT CAST ( - 18 AS INTEGER ) col0 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT + 22 * - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 22 * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( + col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( + col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT SUM( - + col1 ) - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT SUM ( - + col1 ) - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT DISTINCT + col2 * col1 DIV 54 AS col2 FROM tab0
----
1
3
70

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + col2 * col1 / 54 AS col2 FROM tab0
----
1
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + MIN( - 35 ) AS col1 FROM tab2, tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + MIN ( - 35 ) AS col1 FROM tab2, tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND - col1
----

query II rowsort
SELECT 13 AS col0, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
13
1
13
21
13
81

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT ALL 92 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL 92 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + + 45 * 99 FROM tab0 AS cor0
----
-387585
-432135
-66825

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + + COUNT( * ) + - 38 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + + COUNT ( * ) + - 38 FROM tab1 cor0
----
-35

query I rowsort
SELECT + ( - 11 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL - col1 + - 79 - col2 - + + 88 FROM tab0 AS cor0
----
-198
-267
-295

query I rowsort
SELECT 44 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT MIN( - + col1 ) * 40 + - COUNT( ALL + col1 ) + + COUNT( * ) FROM tab2 cor0 WHERE ( col1 BETWEEN NULL AND - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT MIN ( - + col1 ) * 40 + - COUNT ( ALL + col1 ) + + COUNT ( * ) FROM tab2 cor0 WHERE ( col1 BETWEEN NULL AND - 32 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col2, col1 FROM tab2 AS cor0
----
52
51
52
67
52
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT - COUNT( * ) * + + COUNT( ALL col2 ) * + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT - COUNT ( * ) * + + COUNT ( ALL col2 ) * + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + 83 * 68 AS col1 FROM tab1 AS cor0
----
5553
5559
5593

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5094
SELECT - MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + 50 + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT - 48 + col0 DIV col0 + + 66 * + col0 FROM tab2
----
2989
4177
4903

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - 48 + col0 / col0 + + 66 * + col0 FROM tab2
----
2989
4177
4903

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + MIN( 15 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + MIN ( 15 ) AS col0 FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT ALL - col1 DIV 37 - - + 33 * 68 col0 FROM tab2
----
2242
2243
2243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT ALL - col1 / 37 - - + 33 * 68 col0 FROM tab2
----
2242
2243
2243

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - 5 + - + 46 * col2 < col1 * 95 * + 4 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + + 54 col1 FROM tab2 AS cor0
----
156
188
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col2 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - - col2 * + 15 IS NULL
----

query I rowsort
SELECT + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT 52 AS col1, col0 AS col1 FROM tab2 AS cor0
----
52
46
52
64
52
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - ( + ( ( + + COUNT( * ) ) ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5105
SELECT - ( + ( ( + + COUNT ( * ) ) ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - 64 * + col1 AS col2 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT - - ( + - ( 62 ) ) FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + - MAX( + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + - MAX ( + - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5109
SELECT + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 3 * - 21 * col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 10, col2 * col0 AS col1 FROM tab0
----
-10
705
-10
870
-10
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5115
SELECT col2 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT col2 * + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT MIN( + 36 ) * + 72 col2 FROM tab2
----
2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT MIN ( + 36 ) * + 72 col2 FROM tab2
----
2592

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - + col0 * + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT 42 * + COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT 42 * + COUNT ( * ) FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 WHERE - 54 <= + 93 + + - 2 + col1
----
-51
-67
-77

query I rowsort
SELECT + 43 FROM tab2 WHERE NOT + col2 / - 3 / col2 * col1 + - + col0 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT - + 70 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 97 + - 38 * - col1 col1 FROM tab0 AS cor0
----
3028
40
711

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 91 + - col1 = - col0
----

query I rowsort
SELECT + 99 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - COUNT( DISTINCT col2 ) * - MIN( - col2 ) + + + 19 FROM tab2 WHERE - 51 + + col0 + + + 20 <= - - col1
----
-155

skipif mysql # not compatible
query I rowsort label-5126
SELECT - COUNT ( DISTINCT col2 ) * - MIN ( - col2 ) + + + 19 FROM tab2 WHERE - 51 + + col0 + + + 20 <= - - col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) - + 76 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) - + 76 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT COUNT( * ) AS col1, - 86 FROM tab2
----
3
-86

skipif mysql # not compatible
query II rowsort label-5128
SELECT COUNT ( * ) AS col1, - 86 FROM tab2
----
3
-86

query I rowsort
SELECT DISTINCT + col2 * + - 30 - + col1 FROM tab0
----
-1491
-2971
-321

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + COUNT( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + 82 * col2 + + 78 AS col1 FROM tab2 AS cor0
----
209998
356778
86834

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT SUM( ALL + 97 ) FROM tab0 AS cor0 WHERE 81 <= - - 1 * - + col2 / col2 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT SUM ( ALL + 97 ) FROM tab0 AS cor0 WHERE 81 <= - - 1 * - + col2 / col2 * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ( col1 ) + col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT 28 + - 12 AS col2 FROM tab1
----
16
16
16

query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab2 WHERE NOT 25 + + 45 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT COUNT( * ) + + 40 * COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) + + 40 * COUNT ( * ) FROM tab0
----
123

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 8 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * col2 + - col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT 59 + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT + 70 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 70 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 WHERE NOT + col2 + + 33 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5145
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 WHERE NOT + col2 + + 33 IS NULL
----
3

query I rowsort
SELECT - 59 + col2 * col1 FROM tab1
----
1285
236
3137

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 * col0 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT + col1 * + 74 - - col0 FROM tab2
----
3820
5033
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT 27 * - COUNT( * ) + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT 27 * - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT ALL 95 + ( - 88 ) * - 28 AS col2 FROM tab0
----
2559
2559
2559

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ( - col0 ) DIV - col0 + + col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-5152
SELECT ( - col0 ) / - col0 + + col2 FROM tab0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT col1 DIV col2 + col1 AS col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-5153
SELECT col1 / col2 + col1 AS col2 FROM tab2
----
53
68
78

query I rowsort
SELECT + 47 * 99 + + col0 AS col2 FROM tab2
----
4699
4717
4728

query I rowsort
SELECT ALL 29 + 57 AS col0 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT - col0 * 43 + - col0 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 - col0 >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT SUM( DISTINCT + col0 ) + 33 AS col1 FROM tab2
----
218

skipif mysql # not compatible
query I rowsort label-5159
SELECT SUM ( DISTINCT + col0 ) + 33 AS col1 FROM tab2
----
218

query I rowsort
SELECT DISTINCT + col2 + - 15 AS col2 FROM tab1
----
44
53
81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 ON 66 NOT BETWEEN 29 + - 96 AND ( NULL )
----

query I rowsort
SELECT ALL col0 * + 76 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT + ( 20 ) AS col1 FROM tab1
----
20

query I rowsort
SELECT ALL + col0 * - col2 + + ( 88 + + ( + 77 ) ) AS col1 FROM tab0 AS cor0
----
-540
-705
-9438

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 - col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT + CAST( + col0 AS SIGNED ) + + 27 FROM tab0 cor0 WHERE NULL IS NULL
----
114
124
42

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CAST ( + col0 AS INTEGER ) + + 27 FROM tab0 cor0 WHERE NULL IS NULL
----
114
124
42

query I rowsort
SELECT - 61 * - 62 AS col0 FROM tab1 AS cor0
----
3782
3782
3782

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + col2 + + 3 * + col1 AS col0 FROM tab1 AS cor0
----
138
209
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT + 20 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + 20 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COUNT( * ) - 13 col2 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT + COUNT ( * ) - 13 col2 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 94 )
----

query I rowsort
SELECT + col2 - + 16 * col2 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT COUNT( * ) - + 19 * - COUNT( DISTINCT - col1 - + col0 * col1 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT COUNT ( * ) - + 19 * - COUNT ( DISTINCT - col1 - + col0 * col1 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + COUNT( * ) FROM tab0 WHERE ( - col0 ) BETWEEN ( + col2 * - ( col1 ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT + COUNT ( * ) FROM tab0 WHERE ( - col0 ) BETWEEN ( + col2 * - ( col1 ) ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL + 83 * - + 60 + - COUNT( * ) FROM tab0
----
-4983

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + 83 * - + 60 + - COUNT ( * ) FROM tab0
----
-4983

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col2 ) OR ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( col0 ) + + 56 AS col2 FROM tab2 WHERE 61 IS NOT NULL
----
102
120
131

query I rowsort
SELECT ALL + 48 AS col2 FROM tab2 WHERE NULL IN ( col0 + + 51 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col0 * - 28 IS NULL
----

query I rowsort
SELECT ALL col0 - - 77 FROM tab1
----
128
162
168

query I rowsort
SELECT - ( - 99 ) AS col0 FROM tab1 WHERE ( + 46 ) NOT IN ( - 90 )
----
99
99
99

query I rowsort
SELECT DISTINCT col2 + - 17 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 99 * col0 - - col0 AS col2 FROM tab0
----
1500
8700
9700

query I rowsort
SELECT ALL col1 - + - 58 + + 10 AS col2 FROM tab0
----
149
69
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> 97 * col0 - + 86
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query II rowsort
SELECT - 93 AS col1, + 12 AS col0 FROM tab2
----
-93
12
-93
12
-93
12

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT + col1 AS col1, col1 AS col2 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT 4, + 0 AS col1 FROM tab2 AS cor0
----
4
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 29 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col2 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> ( NULL ) OR NOT - 24 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 54 ) FROM tab2
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) + - - COUNT( * ) * + 66 AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) + - - COUNT ( * ) * + 66 AS col2 FROM tab1
----
195

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + 19 * + col2 * + col0 AS col1 FROM tab1
----
117481
92973
95200

query I rowsort
SELECT ALL + 34 AS col0 FROM tab0 WHERE NOT NULL <= - + ( 30 ) + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5205
SELECT 97 DIV - 53 AS col1, - col1 AS col0 FROM tab2
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-5205
SELECT 97 / - 53 AS col1, - col1 AS col0 FROM tab2
----
-1
-51
-1
-67
-1
-77

query I rowsort
SELECT - 15 AS col1 FROM tab0 WHERE NOT + 29 / - + 53 - ( - 57 ) IS NULL
----
-15
-15
-15

query II rowsort
SELECT + ( + + col0 ), col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT - CAST( NULL AS SIGNED ) * - AVG ( - + CAST( ( 59 ) AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( - + CAST ( ( 59 ) AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 IN ( 90 * col1 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( + col2 = - 66 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0 * - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + + + col0 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + + + col0 IS NULL
----
97

query I rowsort
SELECT ALL - col0 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 97 + - - col2 = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT ALL + - col2 DIV + + col2 + + ( + - col0 ) * + ( col2 ) FROM tab2 AS cor0
----
-1059
-2561
-4351

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + - col2 / + + col2 + + ( + - col0 ) * + ( col2 ) FROM tab2 AS cor0
----
-1059
-2561
-4351

query I rowsort
SELECT ALL col2 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5218
SELECT * FROM tab1 AS cor0 WHERE CAST( 44 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5218
SELECT * FROM tab1 AS cor0 WHERE CAST ( 44 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( 47 - + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( 47 - + - col0 ) IS NULL
----
0

query I rowsort
SELECT 78 FROM tab0 AS cor0 WHERE NULL IS NULL
----
78
78
78

query I rowsort
SELECT ALL col0 * - + ( + col1 ) + - ( - col2 ) FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT - 44 + col1 AS col0 FROM tab0 WHERE + 83 BETWEEN ( + col0 * - col2 * - col0 / - 43 + col0 + - col2 ) AND + col0
----
-23
-43

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 3 ) < ( NULL )
----

query I rowsort
SELECT ALL 27 + 16 AS col0 FROM tab1
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0 FROM tab2 WHERE - 88 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 WHERE - 88 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - COUNT( * ) - + 14 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - COUNT ( * ) - + 14 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - SUM( ALL + 82 ) + COUNT( * ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - SUM ( ALL + 82 ) + COUNT ( * ) FROM tab2
----
-243

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + 69 NOT IN ( - - 3 / + + 76 * + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT ALL COUNT( * ) * - COUNT( * ) DIV - - 28 * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL COUNT ( * ) * - COUNT ( * ) / - - 28 * + COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT ALL col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + + 25 * 34 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT + + 25 * 34 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + COUNT( 40 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + COUNT ( 40 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + - col1 * - 58 ) OR NOT NULL < + col0 - - col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5235
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0, - 73 AS col1 FROM tab2
----
-46
-73
-64
-73
-75
-73

skipif mysql # not compatible
query II rowsort label-5235
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0, - 73 AS col1 FROM tab2
----
-46
-73
-64
-73
-75
-73

query I rowsort
SELECT - ( + 54 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL + ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 18 AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - COUNT( col2 ) + COUNT( ALL ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 * - 14 + - col2 + col1 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT - COUNT ( col2 ) + COUNT ( ALL ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 * - 14 + - col2 + col1 * + - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IN ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - ( COUNT( + 26 ) ) * + COUNT( * ) * + 63 AS col0 FROM tab0 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-5241
SELECT - ( COUNT ( + 26 ) ) * + COUNT ( * ) * + 63 AS col0 FROM tab0 AS cor0
----
-567

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + col0 * - 97 + - - col0 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + + ( - - col2 ) AND col0 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL COUNT( col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL COUNT ( col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 + 44 + + col2 * + - col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT 59 AS col1, COUNT( * ) * - - 11 AS col1 FROM tab0
----
59
33

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT 59 AS col1, COUNT ( * ) * - - 11 AS col1 FROM tab0
----
59
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + COUNT( * ) FROM tab2 WHERE ( col1 * - 73 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT + COUNT ( * ) FROM tab2 WHERE ( col1 * - 73 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT ALL + - COUNT( * ) col0, 90 AS col1 FROM tab2 AS cor0
----
-3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5250
SELECT ALL + - COUNT ( * ) col0, 90 AS col1 FROM tab2 AS cor0
----
-3
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 35 / + col1 ) IS NULL
----

query I rowsort
SELECT - 17 * + 63 FROM tab0 AS cor0
----
-1071
-1071
-1071

query I rowsort
SELECT + col1 * col0 + - + col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + col1 - + ( 92 ) FROM tab1 AS cor0
----
-45
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - - 78 * MIN( - 94 ) col2 FROM tab0 AS cor0
----
-7332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5256
SELECT DISTINCT - - 78 * MIN ( - 94 ) col2 FROM tab0 AS cor0
----
-7332

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT - + COUNT( * ) - 60 AS col2, COUNT( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0
----
-63
470191

skipif mysql # not compatible
query II rowsort label-5257
SELECT - + COUNT ( * ) - 60 AS col2, COUNT ( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0
----
-63
470191

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT COUNT( * ) - + 75 AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5258
SELECT COUNT ( * ) - + 75 AS col2 FROM tab0 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + + MIN( - ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + + MIN ( - ( - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL - 81 + ( + + MAX( ALL - col0 ) ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - 81 + ( + + MAX ( ALL - col0 ) ) FROM tab0 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5262
SELECT * FROM tab0 AS cor0 WHERE + col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5262
SELECT * FROM tab0 AS cor0 WHERE + col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - 51 + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 51 + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + 11 + - - 6 AS col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + col0 + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + MAX ( - + col0 ) FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) * + col2 BETWEEN - 85 AND NULL
----

query II rowsort
SELECT + col1 AS col1, - 80 FROM tab1
----
14
-80
47
-80
5
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, col0 + 7 + + col0 FROM tab1
----
51
109
85
177
91
189

onlyif mysql # DIV for integer division: 
query II rowsort label-5271
SELECT col2 DIV col0 AS col1, - 50 + + 65 FROM tab1
----
0
15
0
15
1
15

skipif mysql # not compatible
query II rowsort label-5271
SELECT col2 / col0 AS col1, - 50 + + 65 FROM tab1
----
0
15
0
15
1
15

query I rowsort
SELECT ALL - col0 * + - col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 66 * ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col0 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + MAX( + - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT + MAX ( + - col1 ) col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 79 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-79
23
-79
40
-79
58

query II rowsort
SELECT + + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT - + 40 AS col0 FROM tab1 AS cor0 WHERE NOT 91 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT - col0 * + ( col2 ) * + - col0, + col0 AS col2 FROM tab0 cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 40 + COUNT( * ) col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5280
SELECT 40 + COUNT ( * ) col1 FROM tab1
----
43

query I rowsort
SELECT ALL + 18 AS col0 FROM tab0 WHERE NOT col1 + 29 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * col0 + col2 col2 FROM tab1
----
3207
5244
5619

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT CAST( ( CAST( - 73 AS SIGNED ) ) AS SIGNED ) + - COUNT( * ) + + 26 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-5284
SELECT CAST ( ( CAST ( - 73 AS INTEGER ) ) AS INTEGER ) + - COUNT ( * ) + + 26 FROM tab1
----
-50

query I rowsort
SELECT ALL - 75 * - col0 AS col0 FROM tab2
----
3450
4800
5625

query II rowsort
SELECT DISTINCT - col1 * + + 61, col1 AS col0 FROM tab1
----
-2867
47
-305
5
-854
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT 93 + col2 AS col0 FROM tab1
----
152
161
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <> + col1 + col0 ) )
----

query I rowsort
SELECT - 75 * - - 63 FROM tab2 cor0
----
-4725
-4725
-4725

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5293
SELECT + CAST( col0 AS DECIMAL ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5293
SELECT + CAST ( col0 AS REAL ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 89 * 21 FROM tab2 cor0
----
1869
1869
1869

query I rowsort
SELECT - 36 * + col0 AS col0 FROM tab0
----
-3132
-3492
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + CAST( MIN( DISTINCT + col2 ) AS SIGNED ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT ALL + CAST ( MIN ( DISTINCT + col2 ) AS INTEGER ) col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT COUNT( * ) * - - 18 col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5298
SELECT DISTINCT COUNT ( * ) * - - 18 col1 FROM tab0
----
54

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 22 col2 FROM tab2 AS cor0
----
-1122
-1474
-1694

query II rowsort
SELECT col2, 81 * - col2 AS col1 FROM tab2
----
23
-1863
40
-3240
58
-4698

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 73 * + + col0 - 85 - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + - 2 * 68 + - + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-145

skipif mysql # not compatible
query I rowsort label-5305
SELECT + - 2 * 68 + - + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT COUNT( * ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5306
SELECT COUNT ( * ) FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - MIN( - - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5308
SELECT - MIN ( - - 36 ) FROM tab0 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT + CAST( + + 93 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5310
SELECT + CAST ( + + 93 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5311
SELECT - col1 AS col0, col1 DIV col1 + - col2 * col2 FROM tab2 AS cor0
----
-51
-528
-67
-3363
-77
-1599

skipif mysql # not compatible
query II rowsort label-5311
SELECT - col1 AS col0, col1 / col1 + - col2 * col2 FROM tab2 AS cor0
----
-51
-528
-67
-3363
-77
-1599

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT 61 * - - MIN( - col0 ) FROM tab2
----
-4575

skipif mysql # not compatible
query I rowsort label-5314
SELECT 61 * - - MIN ( - col0 ) FROM tab2
----
-4575

query I rowsort
SELECT DISTINCT col1 * - col0 + + col1 FROM tab2
----
-2295
-4851
-4958

query II rowsort
SELECT + 74 AS col0, + col1 FROM tab0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5318
SELECT DISTINCT * FROM tab1 WHERE + col2 * + CAST( NULL AS SIGNED ) * col0 IN ( + col1 ) AND - 13 + - + 96 + + ( - + col0 ) / + - 0 BETWEEN - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5318
SELECT DISTINCT * FROM tab1 WHERE + col2 * + CAST ( NULL AS INTEGER ) * col0 IN ( + col1 ) AND - 13 + - + 96 + + ( - + col0 ) / + - 0 BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT + 69 * + + COUNT( * ) col0 FROM tab1 WHERE - 88 IS NULL AND NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT + 69 * + + COUNT ( * ) col0 FROM tab1 WHERE - 88 IS NULL AND NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - SUM( - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT - SUM ( - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 71 AS col1, + 49 AS col1 FROM tab2
----
71
49

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( - 41 / 92 * col2 * + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT ALL - COUNT( * ) DIV 26 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - COUNT ( * ) / 26 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT + 49 DIV 60 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT DISTINCT + 49 / 60 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + AVG ( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= 62 * + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT + - 7 DIV + col1 AS col1 FROM tab0 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT + - 7 / + col1 AS col1 FROM tab0 AS cor0
----
-7
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col2 + - 37 IS NULL
----

query I rowsort
SELECT DISTINCT + 42 * 19 - + 3 + - 98 FROM tab0 AS cor0
----
697

query I rowsort
SELECT DISTINCT + - 61 AS col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT - col2 * - col2 * + + col0 FROM tab1 AS cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col2 * + - col1, - col0 + - col1 col0 FROM tab2 AS cor0
----
-197120
-141
-291450
-142
-53958
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT MIN( DISTINCT 76 ) AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5332
SELECT MIN ( DISTINCT 76 ) AS col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + SUM( DISTINCT col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5333
SELECT + SUM ( DISTINCT col0 ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 16 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + + 7 AS col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 AS cor0 WHERE col2 - col2 IS NOT NULL
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col2 ) AS col2, - 99 + - - col0 col2 FROM tab2
----
-23
-53
-40
-35
-58
-24

query III rowsort
SELECT * FROM tab0 WHERE - + col0 NOT IN ( 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - - col1 + - - col0 - col1 - col2 / col1 < NULL
----

query I rowsort
SELECT 40 + col0 FROM tab2
----
104
115
86

query II rowsort
SELECT DISTINCT + + 67 AS col2, + 13 * - ( + 69 ) FROM tab0 WHERE - 6 * - - 9 IS NOT NULL
----
67
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + MAX( DISTINCT - + 19 ) + 35 * + 49 + + 45 + 52 + - 58 AS col1 FROM tab0
----
1735

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + MAX ( DISTINCT - + 19 ) + 35 * + 49 + + 45 + 52 + - 58 AS col1 FROM tab0
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - COUNT( * ) * 37 * - COUNT( * ) col1 FROM tab2
----
333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5346
SELECT - COUNT ( * ) * 37 * - COUNT ( * ) col1 FROM tab2
----
333

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 WHERE NOT NULL <= col0
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 < NULL
----

query II rowsort
SELECT 90, col2 AS col1 FROM tab0
----
90
10
90
47
90
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 * + 37 col2 FROM tab1
----
-15725
-158249
-26418

query I rowsort
SELECT - ( - + 71 ) AS col1 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col0, + ( + col2 ) AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL col2 + - 36 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT ALL + col2 + - 13 * + ( col2 ) FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + 93 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 93 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT + CAST( + - 70 AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT DISTINCT + CAST ( + - 70 AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-70

query I rowsort
SELECT DISTINCT + - col2 * + 37 FROM tab0 cor0
----
-1739
-3663
-370

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / - - 15 - + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 82 AS col0, 27 * col0 AS col1 FROM tab0 cor0
----
82
2349
82
2619
82
405

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT - ( + col0 ) DIV - 14 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5364
SELECT - ( + col0 ) / - 14 FROM tab2
----
3
4
5

query I rowsort
SELECT + + 64 + - col0 FROM tab2 WHERE NOT - 33 - ( - col1 ) IN ( + - 49, 11 )
----
-11
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL SUM( - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL SUM ( - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) * COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 61 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 61 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT ALL col0 + ( col0 ) + 95 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
129
151
94

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL col0 + ( col0 ) + 95 / ( col0 ) AS col0 FROM tab2 AS cor0
----
129
151
94

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + col1 = + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT + - 39 DIV - 41 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT + - 39 / - 41 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT col1 + 40 + + 85 + ( col0 ) * CAST( 75 AS SIGNED ) * + + 45 FROM tab1 cor0
----
172264
287005
307297

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT col1 + 40 + + 85 + ( col0 ) * CAST ( 75 AS INTEGER ) * + + 45 FROM tab1 cor0
----
172264
287005
307297

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT + col0 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col0 * col0 IS NULL
----
-3

query I rowsort
SELECT - - 95 AS col1 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT 36 AS col1, 74 + col1 AS col2 FROM tab2 cor0
----
36
125
36
141
36
151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - 11 * + MIN( + col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - 11 * + MIN ( + col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 col2, col2 * + col1 AS col1 FROM tab0 AS cor0
----
-66
210
-66
3807
-66
99

query I rowsort
SELECT - + ( ( - col2 ) ) - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + ( - 3 ) + - - col1 AS col0 FROM tab0 AS cor0
----
-1
159
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT ALL - col1 + + - 44 - + 5 * col2 DIV - 99 FROM tab2 AS cor0
----
-109
-119
-94

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - col1 + + - 44 - + 5 * col2 / - 99 FROM tab2 AS cor0
----
-109
-119
-94

query I rowsort
SELECT + col0 - - 34 FROM tab2
----
109
80
98

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL NOT IN ( - - 8 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + + col1 - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 41 BETWEEN + col1 + col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - col0 * col1 AND - + ( 74 ) + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 79 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT col1 * col1 DIV + + col2 FROM tab1
----
0
2
32

skipif mysql # not compatible
query I rowsort label-5392
SELECT col1 * col1 / + + col2 FROM tab1
----
0
2
32

query II rowsort
SELECT + col2 AS col0, - 1 AS col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query I rowsort
SELECT ALL + ( + ( - - col2 ) ) * - + 12 * 61 * + - col0 * - - col2 AS col2 FROM tab2 AS cor0
----
17812488
184683600
74956800

query I rowsort
SELECT DISTINCT - - col2 * - 28 * + 28 + 65 AS col2 FROM tab0 AS cor0
----
-36783
-77551
-7775

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 AS col2 FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT ALL - col2 DIV + col2 col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL - col2 / + col2 col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + + COUNT( - - col1 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5398
SELECT + + COUNT ( - - col1 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 86 / 96 AS col0 FROM tab0 WHERE NOT + - col0 + + - 36 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 41 * - 32 * - + COUNT( * ) FROM tab1
----
3936

skipif mysql # not compatible
query I rowsort label-5402
SELECT 41 * - 32 * - + COUNT ( * ) FROM tab1
----
3936

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5403
SELECT + ( col0 ), col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5403
SELECT + ( col0 ), col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT col2, ( col0 ) * + col1 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT - ( - 70 ) * + - col0 AS col1 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL COUNT( * ) + + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
54

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 20 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 3 * + col0 * - col1 * - - 93 * - col0 - col0 + col0 AS col0, - col0 col2 FROM tab1 AS cor0
----
-10078875
-85
-10159506
-51
-108588753
-91

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE - 51 IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 3 * 55 - col0 AND - 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col2, - 82 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - 99 - + + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 99 - + + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + col1 FROM tab0 WHERE col1 * col1 * 8 IS NULL
----

query II rowsort
SELECT + 51, + col2 AS col1 FROM tab1
----
51
59
51
68
51
96

query II rowsort
SELECT - 85 AS col1, + col0 * - col1 AS col2 FROM tab0
----
-85
-1215
-85
-1827
-85
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - 81 col1 FROM tab2
----
127
145
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 * + 33 * + + col0 / + + 93 + - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT - SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5423
SELECT + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 IS NULL AND - 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col1 ) * + - 17 FROM tab2 AS cor0
----
-1139
-1309
-867

query II rowsort
SELECT + + ( - + col0 ) AS col2, + 78 * + - col1 AS col2 FROM tab2 AS cor0
----
-46
-3978
-64
-6006
-75
-5226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT ALL + - 15 DIV + COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + - 15 / + COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5428
SELECT + + 81 * + col1, + 21 * - col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1134
-28224
3807
-67116
405
-6195

skipif mysql # not compatible
query II rowsort label-5428
SELECT + + 81 * + col1, + 21 * - col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1134
-28224
3807
-67116
405
-6195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND + col2
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT col1 * CAST( NULL AS SIGNED ) * + col0 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT col1 * CAST ( NULL AS INTEGER ) * + col0 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL + COUNT( * ) * + 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + COUNT ( * ) * + 74 FROM tab1
----
222

query I rowsort
SELECT DISTINCT col0 * 92 FROM tab1
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT + + 20 - COUNT( DISTINCT - 55 ) FROM tab1 WHERE NOT ( - col1 - - 82 ) NOT BETWEEN col1 AND NULL
----
20

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + + 20 - COUNT ( DISTINCT - 55 ) FROM tab1 WHERE NOT ( - col1 - - 82 ) NOT BETWEEN col1 AND NULL
----
20

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL 49 * + - COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL 49 * + - COUNT ( * ) FROM tab2
----
-147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5438
SELECT CAST( - - col2 AS SIGNED ) + col1 DIV - 95 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5438
SELECT CAST ( - - col2 AS INTEGER ) + col1 / - 95 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ( + - 30 ) + + + col0 * + + col1 + + + col1 + col2 FROM tab0 AS cor0
----
1313
167
1828

query I rowsort
SELECT ALL + 67 + + col0 - + + col0 AS col1 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + col1 + - 5 - + col0 AS col0 FROM tab2
----
-13
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL col2 DIV + - 67 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL col2 / + - 67 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + + 19 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT ALL + col1 + + col1 * - col2 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT + col1 + - + col1 + + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - + 76 - - MIN( + 88 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5447
SELECT - + 76 - - MIN ( + 88 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL 39 AS col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + - COUNT( * ) - 22 AS col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5449
SELECT + - COUNT ( * ) - 22 AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT 5 + + 31 AS col0 FROM tab1 cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT + col2 * + + col2 / - CAST( NULL AS SIGNED ) * + - col1 / - col2 + - col2 + - col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + col2 * + + col2 / - CAST ( NULL AS INTEGER ) * + - col1 / - col2 + - col2 + - col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 - - col0 - + 78 AS col2 FROM tab0
----
-768
-861
-9584

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COUNT( * ) + + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( * ) + + 52 FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT MIN( - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5455
SELECT MIN ( - - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT - COUNT( - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - COUNT ( - col2 ) FROM tab0
----
-3

query I rowsort
SELECT 74 * - 35 AS col0 FROM tab1 AS cor0
----
-2590
-2590
-2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL COUNT( DISTINCT 82 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL COUNT ( DISTINCT 82 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2, tab0 cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + col2 < + - 36 * + col0 + col2 )
----

query II rowsort
SELECT DISTINCT 50, + col2 AS col2 FROM tab2
----
50
23
50
40
50
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT col0 AS col0, + 93 FROM tab0 AS cor0
----
15
93
87
93
97
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL - ( - ( COUNT( * ) ) ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - ( - ( COUNT ( * ) ) ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT DISTINCT 11 + - col2 * + col0 FROM tab1
----
-4885
-5004
-6177

query II rowsort
SELECT DISTINCT - col1 * - col2 AS col2, col1 FROM tab2
----
1173
51
3080
77
3886
67

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL - col0 + - 92 AS col0 FROM tab2
----
-138
-156
-167

query I rowsort
SELECT DISTINCT 97 * + - 91 * + col2 AS col0 FROM tab0
----
-414869
-873873
-88270

query II rowsort
SELECT ALL 46 * col2, col1 AS col0 FROM tab1
----
2714
5
3128
47
4416
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT - COUNT( * ) * + 13 AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5477
SELECT - COUNT ( * ) * + 13 AS col2 FROM tab2
----
-39

query I rowsort
SELECT + - col1 * + col0 * + + col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * + 44 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + ( - + MIN( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5480
SELECT + ( - + MIN ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col0 + + - col0 - - - col1 / + 55 / + col1
----

query I rowsort
SELECT col1 + - - col1 - col2 FROM tab1
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT - + MIN( + 39 ) AS col1, ( + - 29 ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-5483
SELECT - + MIN ( + 39 ) AS col1, ( + - 29 ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL
-29

query I rowsort
SELECT - col0 + + + 67 FROM tab1
----
-18
-24
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT col1 DIV + + 13 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT col1 / + + 13 FROM tab1
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT + ( - - COUNT( * ) ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + ( - - COUNT ( * ) ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col2 + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5488
SELECT - 14 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-5488
SELECT - 14 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL COUNT( * ) + - - 11 AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL COUNT ( * ) + - - 11 AS col2 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT 6 DIV - 80 * + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT 6 / - 80 * + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 WHERE - 70 + + col1 + + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, + 46 col1 FROM tab1
----
51
46
85
46
91
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - + ( 21 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, 60 AS col1 FROM tab2 AS cor0
----
-23
60
-40
60
-58
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 99 IS NULL
----

query I rowsort
SELECT + + 87 AS col2 FROM tab1 cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL - col2 + - ( - + 53 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - col2 + - ( - + 53 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5500
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + ( + - col1 ) ) > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5500
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + ( + - col1 ) ) > + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL 56 + - + COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL 56 + - + COUNT ( * ) FROM tab2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - MAX( + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - MAX ( + + col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col0 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + + 17 + COUNT( * ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-5507
SELECT + + 17 + COUNT ( * ) FROM tab1 cor0
----
20

query I rowsort
SELECT ALL col2 * col0 * col1 + + col0 FROM tab1 WHERE + 32 IS NOT NULL
----
25160
290927
68595

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT + COUNT( * ) + ( + ( - - 83 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
92

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + COUNT ( * ) + ( + ( - - 83 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT DISTINCT + + 23 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 - - 47 AS col0 FROM tab2 AS cor0
----
114
124
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT + ( - MIN( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + ( - MIN ( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT ALL + - 72 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + - 72 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL col2 * + col0 * - 6 AS col2 FROM tab2 AS cor0
----
-15360
-26100
-6348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT + CAST( - 80 AS SIGNED ) FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND + - 26
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT + CAST ( - 80 AS INTEGER ) FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND + - 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT ALL COUNT( * ) DIV - - ( 69 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL COUNT ( * ) / - - ( 69 ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - SUM( ALL + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5519
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab2
----
-195

query II rowsort
SELECT - 28 AS col1, col0 FROM tab1
----
-28
51
-28
85
-28
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) + - - MAX( - + 80 ) + COUNT( * ) + - 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) + - - MAX ( - + 80 ) + COUNT ( * ) + - 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT ALL CAST( NULL AS SIGNED ), ( ( + col2 ) ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5522
SELECT ALL CAST ( NULL AS INTEGER ), ( ( + col2 ) ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + 55 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16 / - col1
----

query II rowsort
SELECT ALL + + col2, col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT ALL col0 DIV 79 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL col0 / 79 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab2 WHERE NOT + col0 + + + 41 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT col2 AS col1, - 70 AS col2 FROM tab2 AS cor0
----
23
-70
40
-70
58
-70

query II rowsort
SELECT DISTINCT + col1 AS col1, ( col0 ) - + col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 92 col2, + 10 FROM tab0 AS cor0
----
92
10
92
10
92
10

query I rowsort
SELECT + col1 + + col0 + 78 * - + 32 * - - col0 FROM tab2 cor0
----
-114719
-159603
-187058

query I rowsort
SELECT DISTINCT - 56 + col2 * + + 46 AS col1 FROM tab2 AS cor0 WHERE 36 IS NULL
----

query I rowsort
SELECT DISTINCT - + 35 + - 40 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col0 + + 98 - + + 56 AS col0 FROM tab2
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( col1 ) * - + 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( col1 ) * - + 10 FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT 38 - - col2 AS col0 FROM tab0
----
137
48
85

query I rowsort
SELECT + 57 * - - col2 + col0 AS col0 FROM tab1
----
3448
3967
5523

query I rowsort
SELECT - col0 + - col2 * + - col1 FROM tab2
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 - + ( + 3 ) col0, - col1 AS col0 FROM tab2
----
34
-51
34
-67
34
-77

query I rowsort
SELECT - col1 - - + 91 FROM tab2 WHERE + + col2 * 30 IS NOT NULL
----
14
24
40

query I rowsort
SELECT DISTINCT - 11 - + 96 AS col1 FROM tab0
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT ALL - - COUNT( * ) * + + COUNT( * ) * 7 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
63
-3

skipif mysql # not compatible
query II rowsort label-5544
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) * 7 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
63
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5545
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 * + col1 BETWEEN + ( - + col0 ) AND CAST( NULL AS SIGNED ) * + + col0 * + 26
----

skipif mysql # not compatible
query III rowsort label-5545
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 * + col1 BETWEEN + ( - + col0 ) AND CAST ( NULL AS INTEGER ) * + + col0 * + 26
----

query I rowsort
SELECT ALL + col0 * - + 67 + + ( + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-5819
-6400
-958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98, 49 col0 FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
98
49
98
49
98
49

query I rowsort
SELECT - col1 * + 39 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT ALL - + 1 * - 73 + + col0 * 48 + - col1 AS col1 FROM tab0 AS cor0
----
4228
4728
712

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT - + 81 * + MIN( + 95 ) + - COUNT( * ) * - MIN( ALL - col0 ), - ( + 51 ) AS col1 FROM tab2 AS cor0
----
-7920
-51

skipif mysql # not compatible
query II rowsort label-5550
SELECT - + 81 * + MIN ( + 95 ) + - COUNT ( * ) * - MIN ( ALL - col0 ), - ( + 51 ) AS col1 FROM tab2 AS cor0
----
-7920
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5551
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT 73 DIV col2 DIV + - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT 73 / col2 / + - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5553
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT 52 DIV col2 * + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT 52 / col2 * + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL - MAX( ALL + 11 ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - MAX ( ALL + 11 ) AS col2 FROM tab2
----
-11

query I rowsort
SELECT DISTINCT 56 * + + col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT ALL 74 * col0 + col1 FROM tab0 cor0
----
1191
6459
7179

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL + 90 DIV + + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 90 / + + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ( - COUNT( ALL col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( - COUNT ( ALL col2 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + 84 * - col0 - + col1 + + + col0 FROM tab2 AS cor0
----
3859
5363
6308

query II rowsort
SELECT + + col2 + - - col1, col0 AS col0 FROM tab2 cor0
----
117
64
125
75
74
46

query I rowsort
SELECT + ( + col1 ) * 10 * 29 AS col2 FROM tab0 AS cor0
----
23490
290
6090

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 23 - + + col2 AS col2 FROM tab2 AS cor0
----
40
46
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 60 + ( col2 ) + + ( - - col1 ) + + 50 * col1 * - col1 * col0 col1 FROM tab2 AS cor0
----
-16833565
-18972623
-5982166

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + + ( + - ( - 7 ) ) AS col1, + MAX( ALL + col0 ) FROM tab0 AS cor0
----
7
97

skipif mysql # not compatible
query II rowsort label-5567
SELECT + + ( + - ( - 7 ) ) AS col1, + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
7
97

query I rowsort
SELECT ALL - + col1 + 85 AS col1 FROM tab1 AS cor0
----
38
71
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT ALL COUNT( * ) AS col0, 86 + - COUNT( * ) FROM tab2
----
3
83

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL COUNT ( * ) AS col0, 86 + - COUNT ( * ) FROM tab2
----
3
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT ALL 10, - col0 * 42 - - col0 - + col2 + - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
10
NULL
10
NULL
10
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL 10, - col0 * 42 - - col0 - + col2 + - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
10
NULL
10
NULL
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + col2 + - 45 - - - col2 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT DISTINCT + - col0 DIV col0 * col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + - col0 / col0 * col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - + COUNT( * ) + + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - + COUNT ( * ) + + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5575
SELECT + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 93 * + col1 FROM tab2 cor0
----
-4743
-6231
-7161

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <= 54
----
15
81
47

query II rowsort
SELECT col1 * col1, col0 FROM tab0 AS cor0
----
1
97
441
87
6561
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 + + ( - 53 ) IS NOT NULL
----

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5581
SELECT CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5581
SELECT CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - 66 * + SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
-7986

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - 66 * + SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
-7986

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT 10, COUNT( - 64 ) AS col0 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-5583
SELECT 10, COUNT ( - 64 ) AS col0 FROM tab0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT - + 47 + - + 84 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 10 IS NULL
----
-1307
-7355
-8195

query I rowsort
SELECT col0 + 49 AS col1 FROM tab0
----
136
146
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT + 88 + - CAST( NULL AS SIGNED ) * CAST( COUNT( * ) - - 1 * + 72 AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT + 88 + - CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) - - 1 * + 72 AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + 68 / col0 col1 FROM tab2 WHERE NOT ( NULL ) IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT 7 + - ( - 62 - COUNT( * ) ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5589
SELECT 7 + - ( - 62 - COUNT ( * ) ) FROM tab2
----
72

query I rowsort
SELECT ALL 33 * - col1 AS col1 FROM tab0
----
-2673
-33
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL col2 FROM tab0 WHERE NOT ( col0 * CAST( col1 * - col1 AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL col2 FROM tab0 WHERE NOT ( col0 * CAST ( col1 * - col1 AS INTEGER ) ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5592
SELECT DISTINCT + COUNT( * ) DIV + 96 AS col2 FROM tab1 WHERE NULL >= 48
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT + COUNT ( * ) / + 96 AS col2 FROM tab1 WHERE NULL >= 48
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + + 78 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 WHERE NULL BETWEEN + col0 + - col1 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) NOT BETWEEN col2 - + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT - 49 * + col1 AS col2 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT + ( ( + col0 ) ) + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 90 + + 94 FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col0 * - 35 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL COUNT( * ) + 38 AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL COUNT ( * ) + 38 AS col2 FROM tab0
----
41

query I rowsort
SELECT 60 + - 85 FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT CAST( + CAST( + 47 AS SIGNED ) AS SIGNED ) FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5604
SELECT CAST ( + CAST ( + 47 AS INTEGER ) AS INTEGER ) FROM tab2
----
47
47
47

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * 52 AS col1 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT ALL 89 * col0 AS col2 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT + 40 * col1 FROM tab0 WHERE NOT ( + col2 ) BETWEEN ( - 26 * + 63 ) AND - col0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5609
SELECT * FROM tab2 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND 87
----

skipif mysql # not compatible
query III rowsort label-5609
SELECT * FROM tab2 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND 87
----

query I rowsort
SELECT + col0 * + col2 + - 93 FROM tab2
----
2467
4257
965

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab1
----
51

query I rowsort
SELECT + col2 * col1 + ( + col1 ) FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT 33 DIV ( COUNT( ALL col0 ) ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-5613
SELECT 33 / ( COUNT ( ALL col0 ) ) AS col2 FROM tab1
----
11

query I rowsort
SELECT ALL - col0 + - 85 * - col2 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - 37 ) BETWEEN + ( + col2 ) + + 93 AND 74
----

query I rowsort
SELECT ALL + 37 + - col2 * + col2 FROM tab1 AS cor0
----
-3444
-4587
-9179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 96 col0 FROM tab1 cor0
----
101
110
143

query I rowsort
SELECT ALL 24 FROM tab2 WHERE - 91 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 90 AS col1 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - 96 col0 FROM tab0 WHERE NOT + col0 > col1 * - col0
----

query I rowsort
SELECT DISTINCT col2 - col0 FROM tab2 WHERE col1 * + col2 IN ( + col2 + col1 * + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - + MIN( col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - + MIN ( col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 27 - - col2 * + col1 FROM tab2 AS cor0 WHERE ( col1 + 42 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT - COUNT( ALL - 44 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - COUNT ( ALL - 44 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 58 AS col2 FROM tab2 cor0
----
58
58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 = ( + col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT - MIN( ALL 69 ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - MIN ( ALL 69 ) AS col1 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 ) < ( - col0 * - 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT CAST( - 11 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT CAST ( - 11 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - ( + 13 ) AS col2 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL MAX( DISTINCT + ( - ( - 72 ) ) ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL MAX ( DISTINCT + ( - ( - 72 ) ) ) AS col2 FROM tab1
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col2 / + col0 )
----

query I rowsort
SELECT col1 * 11 AS col0 FROM tab1
----
154
517
55

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 50 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 50 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5637
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( * ) * 18 * SUM( DISTINCT - col2 ) FROM tab0
----
-8424

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) * 18 * SUM ( DISTINCT - col2 ) FROM tab0
----
-8424

query I rowsort
SELECT ALL + 5 * + col2 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL 17 * - 46 FROM tab2
----
-782
-782
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + COUNT( * ) * 66 AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + COUNT ( * ) * 66 AS col1 FROM tab0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT + 51 + + - col0 DIV col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + 51 + + - col0 / col0 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT 31 + COUNT( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 31 + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NULL
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 18 ) IN ( - col0 )
----

query I rowsort
SELECT - AVG ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - - ( + SUM( - col0 ) ) + COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5647
SELECT - - ( + SUM ( - col0 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-196

query III rowsort
SELECT * FROM tab1 WHERE 68 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + 5 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - COUNT( * ) FROM tab0 WHERE + + col0 IN ( 24 + col1 * - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-5650
SELECT - COUNT ( * ) FROM tab0 WHERE + + col0 IN ( 24 + col1 * - 71 )
----
0

query I rowsort
SELECT + 14 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT 82 + col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5652
SELECT 82 + col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - - col2 * col2 AS col1 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT DISTINCT - COUNT( * ) DIV + 8 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - COUNT ( * ) / + 8 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL - - 89 DIV col0 DIV - col0 + - col2 + + 23 AS col1 FROM tab2 AS cor0
----
-17
-35
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - - 89 / col0 / - col0 + - col2 + + 23 AS col1 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT DISTINCT - col1 * - col2 + - 59 FROM tab1 AS cor0
----
1285
236
3137

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - - 83 - + ( + - COUNT( * ) ) FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5659
SELECT - - 83 - + ( + - COUNT ( * ) ) FROM tab0 cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT - + col1 * col0 DIV - col1 - + 71 * col2 AS col0 FROM tab1 AS cor0
----
-4104
-4737
-6765

skipif mysql # not compatible
query I rowsort label-5661
SELECT - + col1 * col0 / - col1 - + 71 * col2 AS col0 FROM tab1 AS cor0
----
-4104
-4737
-6765

query I rowsort
SELECT DISTINCT - + 67 + col0 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT - 39 * col1 FROM tab2 WHERE + ( col0 ) NOT IN ( - col0 )
----
-1989
-2613
-3003

query III rowsort
SELECT * FROM tab2 WHERE ( ( 67 ) ) NOT IN ( col1 / col2 + - 34 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT 36 + col0 * + 24 FROM tab0
----
2124
2364
396

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT IN ( + col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT col1 * - - col1 + + 41 - col0 DIV col2 FROM tab2
----
2640
4529
5969

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT col1 * - - col1 + + 41 - col0 / col2 FROM tab2
----
2640
4529
5969

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 9 - + - 36 FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 19 NOT IN ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + - 98 + - 69 * col1 col1 FROM tab1
----
-255864
-708395
-814781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT + CAST( NULL AS SIGNED ) * 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

ski