sqllogictest
Artifact Content
Not logged in

Artifact f6411f7cae595bcdfb9b0682a3cc69f8f26cc90c:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT ALL - - 18 DIV CAST( + - 87 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - - 18 / CAST ( + - 87 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT SUM( + + 49 ) FROM tab1, tab0 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-2
SELECT SUM ( + + 49 ) FROM tab1, tab0 AS cor0
----
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT DISTINCT + - 11 FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( col2 * col0 + - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + - 11 FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( col2 * col0 + - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + MAX( + 85 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4
SELECT + MAX ( + 85 ) AS col1 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

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

query II rowsort
SELECT + 35 * - col0 AS col0, col1 FROM tab2 AS cor0
----
-1610
51
-2240
77
-2625
67

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> + 97
----

query I rowsort
SELECT - + col0 * + + ( - 78 ) AS col1 FROM tab0 AS cor0
----
1170
6786
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL + MIN( ALL ( 71 ) ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + MIN ( ALL ( 71 ) ) AS col0 FROM tab1
----
71

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

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab0 WHERE NOT ( + col0 / col1 ) NOT BETWEEN col2 * + col0 * - col0 AND + + col1 + 90 + 61
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT CAST( - col1 AS SIGNED ) + + col2 AS col1 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-15
SELECT CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + col0 * + col1 * + col2 + + col2 FROM tab0 AS cor0
----
18280
57152
9702

query I rowsort
SELECT + 75 + col2 AS col1 FROM tab0 AS cor0
----
122
174
85

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

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

query I rowsort
SELECT ALL + - col2 * col2 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

query I rowsort
SELECT - ( + col1 ) + - col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-21
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 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-21
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-22
SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 DIV col0 AS col1 FROM tab0 AS cor0
----
1
46
133
45
24
45

skipif mysql # not compatible
query II rowsort label-22
SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 / col0 AS col1 FROM tab0 AS cor0
----
1
46
133
45
24
45

query I rowsort
SELECT + + 65 * 56 * col0 FROM tab1 AS cor0
----
185640
309400
331240

query I rowsort
SELECT ALL + - 92 + + + col1 AS col2 FROM tab0 AS cor0
----
-11
-71
-91

query II rowsort
SELECT DISTINCT - 28 + - - 99, + col1 FROM tab2
----
71
51
71
67
71
77

query I rowsort
SELECT ALL + 82 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

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

query I rowsort
SELECT ALL + + col2 + - 26 FROM tab1 AS cor0
----
33
42
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + col2 + col1 DIV - col0 * + + ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + col2 + col1 / - col0 * + + ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL 21 * + col2 - - 98 AS col1 FROM tab1 AS cor0
----
1337
1526
2114

query I rowsort
SELECT DISTINCT + 11 + 63 * - 25 FROM tab0 AS cor0
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT DISTINCT - col0 + - col2 * + 31 + + 65 DIV + 9 AS col2 FROM tab2
----
-1297
-1866
-752

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - col0 + - col2 * + 31 + + 65 / + 9 AS col2 FROM tab2
----
-1297
-1866
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT MIN( ALL col1 ) - - + COUNT( * ) + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT MIN ( ALL col1 ) - - + COUNT ( * ) + COUNT ( * ) FROM tab0
----
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * + col1 col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT ALL - col2 * + col1 * + - 33 AS col2 FROM tab1 AS cor0
----
105468
44352
9735

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

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

query II rowsort
SELECT ALL + + col1 * col1 AS col1, col0 FROM tab2 AS cor0
----
2601
46
4489
75
5929
64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-41
SELECT + COUNT ( DISTINCT - + col2 ) col2 FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-43
SELECT ALL - CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT - 76 DIV col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - 76 / col1 FROM tab1 AS cor0
----
-1
-15
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL - - COUNT( DISTINCT + 88 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - - COUNT ( DISTINCT + 88 ) FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - SUM( DISTINCT ( ( 62 ) ) ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - SUM ( DISTINCT ( ( 62 ) ) ) FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - SUM( 22 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-50
SELECT - SUM ( 22 ) FROM tab0
----
-66

query II rowsort
SELECT DISTINCT col2 * - col1 AS col0, - col1 FROM tab0
----
-210
-21
-3807
-81
-99
-1

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL = NULL
----

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

query I rowsort
SELECT + col2 * - 82 FROM tab0 cor0
----
-3854
-8118
-820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT - 43 + SUM( - 88 ) FROM tab0 AS cor0
----
-307

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - 43 + SUM ( - 88 ) FROM tab0 AS cor0
----
-307

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-57
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 + - - CAST( NULL AS SIGNED ) - + col0 - - 4 + 64 - 63 * - col2 * ( - + ( col2 ) ) + 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-57
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 + - - CAST ( NULL AS INTEGER ) - + col0 - - 4 + 64 - 63 * - col2 * ( - + ( col2 ) ) + 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 82 + - + col2 FROM tab0
----
-17
35
72

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE ( NOT ( NOT + - 69 IS NOT NULL ) )
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-61
SELECT 70 col0, + col2 DIV ( + + col2 ) FROM tab0 AS cor0
----
70
1
70
1
70
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-61
SELECT 70 col0, + col2 / ( + + col2 ) FROM tab0 AS cor0
----
70
1
70
1
70
1

query I rowsort
SELECT + + col2 * + 27 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 39 AS col2, + 86 FROM tab1 AS cor0
----
39
86

query I rowsort
SELECT ALL - col0 + + ( + col2 ) FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + col2 * - - col2 * - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - 63 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 63 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
189

query II rowsort
SELECT + + col2 * - ( - + col2 ) * col0 + 82, + col0 + + col0 * 73 AS col1 FROM tab1 cor0
----
295967
6290
420866
6734
470098
3774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT - ( + COUNT( * ) ) DIV + - 15 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - ( + COUNT ( * ) ) / + - 15 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - 1 - ( - col2 ) FROM tab1
----
58
67
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-71
SELECT MAX( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 NOT BETWEEN + + col1 AND + col1 + - + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL + col0 DIV + - col0 + col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + col0 / + - col0 + col1 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT DISTINCT 91 * + - ( - col2 ) - + col2 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ( - MAX( - col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-78
SELECT ( - MAX ( - col2 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT + - col2 DIV 92 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + - col2 / 92 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

query I rowsort
SELECT ALL 78 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT DISTINCT + col0 + 46 * + col2 FROM tab2 AS cor0
----
1104
1904
2743

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + 44 * - + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT DISTINCT CAST( + + 24 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT CAST ( + + 24 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT - COUNT( * ) + - 73 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - COUNT ( * ) + - 73 FROM tab2
----
-76

query II rowsort
SELECT ALL col2, 97 FROM tab0
----
10
97
47
97
99
97

query I rowsort
SELECT col0 + - 55 AS col2 FROM tab1
----
-4
30
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-88
SELECT DISTINCT col2 AS col0, + CAST( 12 AS SIGNED ) * + - 68 + col2 * - col1 AS col0 FROM tab0
----
10
-1026
47
-4623
99
-915

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT col2 AS col0, + CAST ( 12 AS INTEGER ) * + - 68 + col2 * - col1 AS col0 FROM tab0
----
10
-1026
47
-4623
99
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT col0 + + col1 + - col1 DIV col1 + 5 - col0 FROM tab2 AS cor0
----
55
71
81

skipif mysql # not compatible
query I rowsort label-89
SELECT col0 + + col1 + - col1 / col1 + 5 - col0 FROM tab2 AS cor0
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT - COUNT( * ) * + - SUM( ALL 21 ) * - COUNT( DISTINCT - + col2 ) + 41 col2 FROM tab1 AS cor0
----
-526

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT ALL + 58 * CAST( + 22 AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
1218
1236
1253

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL + 58 * CAST ( + 22 AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
1218
1236
1253

query I rowsort
SELECT col1 + - 34 + col0 FROM tab2 cor0
----
107
108
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 85 * 94, 99 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 - - ( + + col1 ) AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-99
SELECT 15 DIV MIN( col0 ), COUNT( * ) AS col2 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-99
SELECT 15 / MIN ( col0 ), COUNT ( * ) AS col2 FROM tab1
----
0
3

query I rowsort
SELECT ALL - 86 * col2 AS col1 FROM tab0
----
-4042
-8514
-860

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

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

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

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

skipif mysql # not compatible
query I rowsort label-104
SELECT SUM ( + - col2 ) FROM tab1
----
-223

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

onlyif mysql # aggregate syntax: 
query II rowsort label-106
SELECT + 29, COUNT( * ) * 86 * + - ( - MAX( + + 3 ) ) AS col1 FROM tab0 AS cor0
----
29
774

skipif mysql # not compatible
query II rowsort label-106
SELECT + 29, COUNT ( * ) * 86 * + - ( - MAX ( + + 3 ) ) AS col1 FROM tab0 AS cor0
----
29
774

query I rowsort
SELECT - 32 * + - col2 FROM tab0
----
1504
3168
320

query I rowsort
SELECT ALL 71 * + 90 * + col0 FROM tab1
----
325890
543150
581490

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + + - col0 * - + 78 * - ( - + col1 ) + col1 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT col2 AS col0, 62 + col0 FROM tab2 AS cor0
----
23
108
40
126
58
137

query II rowsort
SELECT DISTINCT col0 + + col2 AS col2, col0 FROM tab1
----
144
85
147
51
159
91

query I rowsort
SELECT 96 * - 85 AS col2 FROM tab1
----
-8160
-8160
-8160

query I rowsort
SELECT - col1 + 28 AS col2 FROM tab0 WHERE - 43 + + col2 + - ( + col0 ) <> + col0 * + 25
----
-53
27
7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT 29 DIV + + col2, 69 AS col1 FROM tab2
----
0
69
0
69
1
69

skipif mysql # not compatible
query II rowsort label-118
SELECT 29 / + + col2, 69 AS col1 FROM tab2
----
0
69
0
69
1
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT - col0 DIV - col2 + - + 48 * - + ( + col2 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2833
3265
4608

skipif mysql # not compatible
query I rowsort label-120
SELECT - col0 / - col2 + - + 48 * - + ( + col2 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2833
3265
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - MIN( DISTINCT - 28 ) + COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-121
SELECT - MIN ( DISTINCT - 28 ) + COUNT ( * ) FROM tab0 AS cor0
----
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 4 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
50
68
79

query I rowsort
SELECT - - col0 + + 61 + + - 36 AS col1 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT ALL 3 + - ( - - col2 ) FROM tab2
----
-20
-37
-55

query I rowsort
SELECT 83 + - col2 FROM tab1
----
-13
15
24

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

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

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

query I rowsort
SELECT - 64 * col0 * + 43 AS col0 FROM tab2 AS cor0
----
-126592
-176128
-206400

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL + - COUNT( * ) - - - 54 col0 FROM tab0 AS cor0
----
-57

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

query II rowsort
SELECT + 44 AS col0, 65 AS col0 FROM tab1 AS cor0
----
44
65
44
65
44
65

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

query II rowsort
SELECT - + col2 + 92, col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
34
75
52
64
69
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT MIN( + col0 ) * 48 col0 FROM tab1
----
2448

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-135
SELECT DISTINCT MIN ( + col0 ) * 48 col0 FROM tab1
----
2448

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT col1 DIV - - 43 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT col1 / - - 43 col2 FROM tab2
----
1
1
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-140
SELECT DISTINCT - - col0 * + + CAST( NULL AS DECIMAL ) * + col2 / - col1 * 87 * 73 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - - col0 * + + CAST ( NULL AS REAL ) * + col2 / - col1 * 87 * 73 * + col0 FROM tab2 AS cor0
----
NULL

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 AS col2, - col1 col0, col1 * 82 FROM tab1
----
9 values hashing to bf8cb8bd1eb9cb1e18f3046c11c7ff29

query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 57 + col2 - col0 AS col0 FROM tab2
----
33
34
40

query I rowsort
SELECT col0 * + + 27 + 55 + 33 FROM tab0
----
2437
2707
493

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT MIN( ALL + col1 ) * MAX( 96 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
4893

skipif mysql # not compatible
query I rowsort label-150
SELECT MIN ( ALL + col1 ) * MAX ( 96 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4893

query I rowsort
SELECT - 95 * - col1 * + col2 * - col2 * + 51 FROM tab0 AS cor0
----
-10174500
-47485845
-866911005

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0, - col0 * 80 * + col2 + + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0, - col0 * 80 * + col2 + + 15 )
----
0

query I rowsort
SELECT - col2 - + - 26 FROM tab0
----
-21
-73
16

query I rowsort
SELECT DISTINCT - ( - 7 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-157
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + ( + 80 ) * + + col0 AS col1 FROM tab1 AS cor0
----
4080
6800
7280

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT + 90 >= col2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-160
SELECT DISTINCT - col1 DIV 7 AS col1, + col0 FROM tab2 AS cor0
----
-11
64
-7
46
-9
75

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT - col1 / 7 AS col1, + col0 FROM tab2 AS cor0
----
-11
64
-7
46
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1
----
NULL

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

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

query II rowsort
SELECT + col2 AS col2, col0 * 24 FROM tab0
----
10
2088
47
360
99
2328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE + col1 NOT BETWEEN + + 51 AND - 19 / + col2
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + MIN( 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + MIN ( 62 ) FROM tab1
----
62

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 IN ( - col0 - - 20 + + col2 * - - col1 * - col1, 89, 9, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 21 * + - 64 * + col1 / + - col1 + 86 IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col0 + - 25 FROM tab2 AS cor0
----
-42
-48
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL - + CAST( + + col2 AS SIGNED ) + + 77 FROM tab1 AS cor0
----
-19
18
9

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - + CAST ( + + col2 AS INTEGER ) + + 77 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-174
SELECT 83 / + CAST( NULL AS DECIMAL ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT 83 / + CAST ( NULL AS REAL ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + SUM( DISTINCT + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-175
SELECT + SUM ( DISTINCT + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL - 70 + - 76 FROM tab0
----
-146
-146
-146

query I rowsort
SELECT DISTINCT ( + 7 ) * - 67 + - col1 AS col0 FROM tab0
----
-470
-490
-550

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

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

query I rowsort
SELECT DISTINCT + - col0 * - col0 FROM tab1 WHERE NOT + 26 NOT BETWEEN + col0 AND + 72
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - + COUNT( * ) - + COUNT( * ) + + MIN( ALL + col1 ) * + 62 * + 27 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
25104

skipif mysql # not compatible
query I rowsort label-181
SELECT - + COUNT ( * ) - + COUNT ( * ) + + MIN ( ALL + col1 ) * + 62 * + 27 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
25104

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT DISTINCT + col2 * + col1 DIV + - col1 + + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT + col2 * + col1 / + - col1 + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col1 + - + col2 * + - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

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

skipif mysql # not compatible
query I rowsort label-185
SELECT + - MAX ( ALL - + col1 ) * - + COUNT ( * ) + 80 AS col1 FROM tab0 AS cor0
----
77

query II rowsort
SELECT ALL + col0 * - 34, col0 AS col1 FROM tab2
----
-1564
46
-2176
64
-2550
75

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL + 59 * + 58 FROM tab0 AS cor0
----
3422
3422
3422

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

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + col2 / + + 18 AS col0 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT + + 53 * + COUNT( * ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + + 53 * + COUNT ( * ) FROM tab2 AS cor0
----
159

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) * + col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

query II rowsort
SELECT DISTINCT - 43 AS col1, - 3 FROM tab0 AS cor0
----
-43
-3

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 43 * + + 54 * - col2 FROM tab0
----
-1637010
-2020140
-22298166

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT DISTINCT - SUM( col1 ), 4 col1 FROM tab2 WHERE - + 85 IS NOT NULL
----
-195
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-199
SELECT DISTINCT - SUM ( col1 ), 4 col1 FROM tab2 WHERE - + 85 IS NOT NULL
----
-195
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL - - MIN( ALL + - col0 ) * 63 FROM tab2 AS cor0 WHERE + 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - - MIN ( ALL + - col0 ) * 63 FROM tab2 AS cor0 WHERE + 86 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL COUNT( ALL + - 26 ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL COUNT ( ALL + - 26 ) + + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + MIN( DISTINCT col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - MIN( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

skipif mysql # not compatible
query I rowsort label-206
SELECT - MIN ( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

query I rowsort
SELECT + 0 + - 53 + - + 82 AS col2 FROM tab2 AS cor0
----
-135
-135
-135

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT DISTINCT COUNT( ALL - + col1 ) * - + 20 + - COUNT( * ), 38 AS col1 FROM tab2
----
-63
38

skipif mysql # not compatible
query II rowsort label-210
SELECT DISTINCT COUNT ( ALL - + col1 ) * - + 20 + - COUNT ( * ), 38 AS col1 FROM tab2
----
-63
38

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT MAX( DISTINCT - col0 ) + + 37 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT MAX ( DISTINCT - col0 ) + + 37 AS col1 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 57 + - COUNT( * ) + + + 67 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-212
SELECT 57 + - COUNT ( * ) + + + 67 FROM tab1
----
121

query I rowsort
SELECT + col1 * - col1 * + col2 FROM tab0
----
-308367
-4410
-99

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

query I rowsort
SELECT - - col2 + - - col1 FROM tab1 AS cor0 WHERE - 0 IS NOT NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= col2 + - 53 * 63
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

query I rowsort
SELECT DISTINCT 79 * + - 53 FROM tab0
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT - 2 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - 2 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-221
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + + col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-224
SELECT 60 * - - col2 + CAST( NULL AS SIGNED ), + 17 AS col0 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

skipif mysql # not compatible
query II rowsort label-224
SELECT 60 * - - col2 + CAST ( NULL AS INTEGER ), + 17 AS col0 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL + MIN( + 56 ) FROM tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + MIN ( + 56 ) FROM tab1 cor0
----
56

query I rowsort
SELECT + + col0 * 7 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT + 64 * - COUNT( * ) AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-227
SELECT + 64 * - COUNT ( * ) AS col1 FROM tab1
----
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-228
SELECT ALL + col2 / - 18 + - + 41 FROM tab2 WHERE NOT NULL BETWEEN - col0 + + - CAST( + 16 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + col2 / - 18 + - + 41 FROM tab2 WHERE NOT NULL BETWEEN - col0 + + - CAST ( + 16 AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT COUNT( + 29 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-229
SELECT COUNT ( + 29 ) FROM tab0
----
3

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

query I rowsort
SELECT DISTINCT - col0 * + 77 AS col2 FROM tab0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-232
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND 23
----

skipif mysql # not compatible
query III rowsort label-232
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL - ( + COUNT( * ) ) * + ( - 72 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - ( + COUNT ( * ) ) * + ( - 72 ) FROM tab2
----
216

query I rowsort
SELECT DISTINCT + 81 * + col1 AS col2 FROM tab1
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT - 75 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - 75 / + col2 FROM tab0
----
-1
-7
0

query I rowsort
SELECT DISTINCT - col2 * - 19 * - + col0 - - - col2 * - ( - 42 ) + + + 36 AS col0 FROM tab2 AS cor0
----
-21032
-50284
-85050

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 51 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + 58 - + - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + 58 - + - COUNT ( * ) AS col0 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT - + SUM( col1 ) * MAX( + 30 ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - + SUM ( col1 ) * MAX ( + 30 ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 96 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT DISTINCT col0 / - col1 + + col1 + + CAST( NULL AS SIGNED ) + - col2 AS col1, 60 FROM tab0 AS cor0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-241
SELECT DISTINCT col0 / - col1 + + col1 + + CAST ( NULL AS INTEGER ) + - col2 AS col1, 60 FROM tab0 AS cor0
----
NULL
60

query I rowsort
SELECT col0 - - 92 FROM tab1
----
143
177
183

query III rowsort
SELECT * FROM tab0 WHERE - + 89 / col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 97 FROM tab0 WHERE + col0 IS NOT NULL
----
-107
-144
-196

query I rowsort
SELECT ALL col2 - 69 AS col1 FROM tab0
----
-22
-59
30

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2, - 13 - - + col0 + + + 67 )
----

query II rowsort
SELECT DISTINCT - + 91 - col0 + - - col2 AS col0, 29 FROM tab1 AS cor0
----
-114
29
-117
29
-46
29

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

query I rowsort
SELECT ALL + ( + 84 ) FROM tab1 cor0
----
84
84
84

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

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

skipif mysql # not compatible
query II rowsort label-251
SELECT - - CAST ( + - col2 AS INTEGER ) AS col1, - 24 AS col0 FROM tab1 AS cor0
----
-59
-24
-68
-24
-96
-24

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

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

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

query I rowsort
SELECT ALL - 41 * + col2 FROM tab1
----
-2419
-2788
-3936

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

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT - SUM( - - col0 ) * + COUNT( * ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-256
SELECT - SUM ( - - col0 ) * + COUNT ( * ) AS col2 FROM tab0
----
-597

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT - 48 DIV + col2 col1 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-257
SELECT DISTINCT - 48 / + col2 col1 FROM tab0
----
-1
-4
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-258
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( 7 / - + col1 + - 77 / 52, - CAST( NULL AS SIGNED ) / col0, + col1 * + - col0 * + + 98, 22 * + col0 * - - 37 - + 93, - + col0, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-258
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( 7 / - + col1 + - 77 / 52, - CAST ( NULL AS INTEGER ) / col0, + col1 * + - col0 * + + 98, 22 * + col0 * - - 37 - + 93, - + col0, + + col2 )
----

query II rowsort
SELECT DISTINCT + 15 AS col1, + ( - col1 ) FROM tab2
----
15
-51
15
-67
15
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - MAX( ALL 77 ) FROM tab1 WHERE NOT - 75 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-260
SELECT - MAX ( ALL 77 ) FROM tab1 WHERE NOT - 75 IS NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT SUM( - ( - 44 ) ) + - 28 col2 FROM tab2
----
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT SUM ( - ( - 44 ) ) + - 28 col2 FROM tab2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT col2 + + CAST( col2 AS SIGNED ) col2 FROM tab0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-262
SELECT col2 + + CAST ( col2 AS INTEGER ) col2 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * - - 74 col2 FROM tab1 AS cor0
----
1132
3546
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 37 * - col2 + + - col2 - - ( + - ( - - col0 ) ) col2 FROM tab0 AS cor0
----
1692
3564
360

query I rowsort
SELECT ALL col0 + + 28 FROM tab2 cor0
----
103
74
92

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT 62, - COUNT( * ) col0 FROM tab1
----
62
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-266
SELECT 62, - COUNT ( * ) col0 FROM tab1
----
62
-3

query II rowsort
SELECT ALL + col0 * + col2 + ( + col1 ) + - 65, - col2 FROM tab1 WHERE - col2 / 89 / + - ( col0 ) < NULL
----

query I rowsort
SELECT 97 * ( col1 ) * + + 61 - - - 86 FROM tab2
----
301681
396353
455523

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 30 * - - COUNT( * ) - - + 6 * - COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-269
SELECT + 30 * - - COUNT ( * ) - - + 6 * - COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT 48 * - col1 - + col0 AS col0 FROM tab2
----
-2494
-3291
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT DISTINCT - COUNT( * ) col1, + 78 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-271
SELECT DISTINCT - COUNT ( * ) col1, + 78 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
75

query I rowsort
SELECT DISTINCT + col0 + + - 40 AS col1 FROM tab0 AS cor0
----
-25
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 33 * - col1 col2 FROM tab0 AS cor0
----
1
-33
21
-693
81
-2673

query I rowsort
SELECT - 41 + col0 * - col0 FROM tab0 AS cor0
----
-266
-7610
-9450

query I rowsort
SELECT ALL - col2 - + 85 AS col0 FROM tab0 AS cor0
----
-132
-184
-95

query II rowsort
SELECT DISTINCT - - col0 / + 12 / + col2, + col1 FROM tab0 WHERE ( - col2 >= + 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-277
SELECT - COUNT( * ) * - COUNT( * ) - - MAX( ALL + - 24 ) AS col0 FROM tab1 WHERE + - CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT - COUNT ( * ) * - COUNT ( * ) - - MAX ( ALL + - 24 ) AS col0 FROM tab1 WHERE + - CAST ( NULL AS REAL ) + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 82 - - ( col2 ) FROM tab1
----
141
150
178

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 + ( - col0 ) FROM tab2
----
1035
2536
4333

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

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT - SUM( DISTINCT - - 2 ) AS col0, 6 FROM tab1
----
-2
6

skipif mysql # not compatible
query II rowsort label-281
SELECT - SUM ( DISTINCT - - 2 ) AS col0, 6 FROM tab1
----
-2
6

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col2 + + 37 + - 61 <= NULL
----

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

query I rowsort
SELECT 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * + ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL SUM( ALL - ( + + 70 ) ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL SUM ( ALL - ( + + 70 ) ) FROM tab2 AS cor0
----
-210

query I rowsort
SELECT ALL - 74 * + 47 AS col1 FROM tab0 AS cor0
----
-3478
-3478
-3478

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 * - + ( - 41 ) IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL CAST( + - 60 AS SIGNED ) * + + col1 FROM tab0
----
-1260
-4860
-60

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL CAST ( + - 60 AS INTEGER ) * + + col1 FROM tab0
----
-1260
-4860
-60

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 < 38 * + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - SUM( ALL + col1 ) * + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-292
SELECT - SUM ( ALL + col1 ) * + COUNT ( * ) FROM tab1
----
-198

query I rowsort
SELECT + ( - 45 ) * + 89 AS col0 FROM tab2
----
-4005
-4005
-4005

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

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

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

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

query I rowsort
SELECT + 89 + + + 43 AS col2 FROM tab1 cor0
----
132
132
132

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

query I rowsort
SELECT ALL + ( + 15 ) + - col2 AS col2 FROM tab2 AS cor0
----
-25
-43
-8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT + COUNT( * ) + - - 86 col0, + 24 * + 39 - - 72 FROM tab0 AS cor0
----
89
1008

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-300
SELECT + COUNT ( * ) + - - 86 col0, + 24 * + 39 - - 72 FROM tab0 AS cor0
----
89
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + + SUM( DISTINCT + 61 ) + + 29 * - 93 FROM tab1 AS cor0
----
-2636

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + + SUM ( DISTINCT + 61 ) + + 29 * - 93 FROM tab1 AS cor0
----
-2636

query I rowsort
SELECT ALL - col2 - col0 AS col2 FROM tab2
----
-104
-133
-69

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

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

query I rowsort
SELECT DISTINCT + ( 75 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 38 * + 76 * ( - 58 ) * + 89 AS col0 FROM tab1 AS cor0
----
-14907856
-14907856
-14907856

query I rowsort
SELECT + 18 - - 12 AS col0 FROM tab2 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT - + 57 + + SUM( col0 ) AS col2 FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - + 57 + + SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
170

query I rowsort
SELECT ALL 36 + + col2 * + - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT ALL col0 DIV - 63 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL col0 / - 63 AS col1 FROM tab1
----
-1
-1
0

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

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

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

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

query II rowsort
SELECT + 56 * + col2 AS col1, col1 * col1 FROM tab2 AS cor0
----
1288
2601
2240
5929
3248
4489

query I rowsort
SELECT - 53 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

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

query I rowsort
SELECT 27 * + 11 AS col2 FROM tab2 AS cor0
----
297
297
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT 71 DIV - COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT 71 / - COUNT ( * ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - 47 * - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL 9 + COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-320
SELECT ALL 9 + COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0 WHERE NOT + 66 * - - 29 NOT BETWEEN + col1 AND + col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-322
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-325
SELECT DISTINCT + CAST( - col1 AS SIGNED ), col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-325
SELECT DISTINCT + CAST ( - col1 AS INTEGER ), col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT - 87 + + col1 AS col1, + col0 FROM tab0 AS cor0 WHERE col2 * 45 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - MAX( - 86 ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - MAX ( - 86 ) AS col0 FROM tab0
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 33 IN ( - - 25, - 53, - 84 * - 64 )
----

query II rowsort
SELECT - col0 * + col1 + - col2 AS col0, col1 AS col0 FROM tab2
----
-2369
51
-4968
77
-5083
67

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT COUNT( * ) + + + SUM( - - 87 ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-331
SELECT COUNT ( * ) + + + SUM ( - - 87 ) AS col2 FROM tab0
----
264

query I rowsort
SELECT DISTINCT col2 * - + col1 + + 83 AS col2 FROM tab1
----
-1261
-212
-3113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT + - 8 * + COUNT( * ) + - 86 AS col1 FROM tab1 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + - 8 * + COUNT ( * ) + - 86 AS col1 FROM tab1 AS cor0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-335
SELECT SUM ( col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT - col1 + - 18 FROM tab2
----
-69
-85
-95

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND - 87
----

query I rowsort
SELECT ALL - col0 - 34 * + col2 FROM tab1
----
-2091
-2403
-3315

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

query I rowsort
SELECT ALL + col1 * ( col0 ) AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 91 + col0 ) > NULL
----

query I rowsort
SELECT 78 + + col1 FROM tab2
----
129
145
155

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + 1 + col2 DIV - col0 AS col2 FROM tab0
----
-2
0
1

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + 1 + col2 / - col0 AS col2 FROM tab0
----
-2
0
1

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

query I rowsort
SELECT - 60 + 58 FROM tab0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + 97 ) <> NULL
----

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

query I rowsort
SELECT col0 + + col2 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
104
133
69

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

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

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

query I rowsort
SELECT 82 - + col0 FROM tab0
----
-15
-5
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN ( - col1 ) AND + col0
----
51
14
96

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

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - 32 + - ( CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab1
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( + 65 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - 85 > ( col0 + 49 )
----
3

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - 85 > ( col0 + 49 )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL 20 * col1 AS col2 FROM tab1 AS cor0
----
100
280
940

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-359
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-359
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT DISTINCT COUNT( * ) DIV 80 FROM tab1 AS cor0 WHERE col0 DIV 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT COUNT ( * ) / 80 FROM tab1 AS cor0 WHERE col0 / 37 IS NULL
----
0

query I rowsort
SELECT 85 * 90 FROM tab0
----
7650
7650
7650

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
54

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab2 ON ( 95 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 53 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT - + MIN( + col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - + MIN ( + col0 ) AS col2 FROM tab0 cor0
----
-15

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 21 - 54 * 10 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT + + 34 DIV - MIN( - col1 * 80 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT + + 34 / - MIN ( - col1 * 80 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT ALL + + col2 + col1 DIV col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + + col2 + col1 / col1 FROM tab0 AS cor0
----
100
11
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL - 92 + MAX( DISTINCT col0 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 92 + MAX ( DISTINCT col0 ) FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) NOT IN ( + col0 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col0 * col1 ) <= ( 15 ) OR NOT + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col0 * col1 ) <= ( 15 ) OR NOT + col1 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + 9 - + col2 FROM tab0
----
-1
-38
-90

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT + col1 * col1 - 79 NOT IN ( - 7 + col1 )
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 39 / 43 IN ( - col0 / col1 + - col0 )
----

query I rowsort
SELECT - ( + - 40 ) * col0 + 82 AS col2 FROM tab2 AS cor0
----
1922
2642
3082

query I rowsort
SELECT - 93 * - col0 + col2 + + col2 FROM tab0 AS cor0
----
1489
8111
9219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-382
SELECT CAST( NULL AS DECIMAL ) * - 42 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT CAST ( NULL AS REAL ) * - 42 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL - col0 * - 74 FROM tab2 AS cor0
----
3404
4736
5550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT - SUM( ALL - - col2 ) * + - ( 9 ) + + 65 * - 73 AS col0 FROM tab1 AS cor0
----
-2738

skipif mysql # not compatible
query I rowsort label-387
SELECT - SUM ( ALL - - col2 ) * + - ( 9 ) + + 65 * - 73 AS col0 FROM tab1 AS cor0
----
-2738

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 * + col2 col1 FROM tab2 cor0
----
-138
-240
-348

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-391
SELECT AVG ( ALL col2 ) + CAST( - ( + 74 ) AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT AVG ( ALL col2 ) + CAST ( - ( + 74 ) AS REAL ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) >= ( NULL )
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT col2 + col1 col2 FROM tab1 WHERE NOT ( + CAST( + col0 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-396
SELECT col2 + col1 col2 FROM tab1 WHERE NOT ( + CAST ( + col0 AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT ALL - - 8 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT 49 DIV - 32 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-399
SELECT 49 / - 32 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * 81 * + - col0 FROM tab2
----
171396
331776
455625

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT ALL col0 DIV + 45 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL col0 / + 45 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT + SUM( - col1 ) DIV - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + SUM ( - col1 ) / - COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT ALL + col2 + + col2 * + 56 + col1 FROM tab0 cor0
----
2760
5644
591

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

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

query I rowsort
SELECT DISTINCT 57 * - col2 AS col1 FROM tab0
----
-2679
-5643
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT col0 DIV + - 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-406
SELECT col0 / + - 77 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * ( - col0 ) FROM tab1 WHERE NULL NOT IN ( - col0 * - - 83 - + + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - MAX( ALL - 16 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - MAX ( ALL - 16 ) FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT DISTINCT - + col1 + - CAST( + 65 AS SIGNED ), col0 FROM tab2 AS cor0
----
-116
46
-132
75
-142
64

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT - + col1 + - CAST ( + 65 AS INTEGER ), col0 FROM tab2 AS cor0
----
-116
46
-132
75
-142
64

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 NOT IN ( + + 77 / + + 89 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + - col0 col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL 51 + + CAST( col2 AS SIGNED ) + + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1491
3315
405

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL 51 + + CAST ( col2 AS INTEGER ) + + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1491
3315
405

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-418
SELECT - 49, + MIN( - col1 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col0 > NULL
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-418
SELECT - 49, + MIN ( - col1 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col0 > NULL
----
-49
NULL

query I rowsort
SELECT 40 + - 91 + + 86 FROM tab1
----
35
35
35

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

query II rowsort
SELECT col0 * + 61, ( + col1 ) FROM tab0
----
5307
21
5917
1
915
81

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + + 12 AS col0, 60 FROM tab2 AS cor0
----
12
60
12
60
12
60

query II rowsort
SELECT - 94, - col2 * + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-94
-210
-94
-3807
-94
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-426
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 44 + + 9 * - col1 / + CAST( NULL AS SIGNED ) = ( col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-426
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 44 + + 9 * - col1 / + CAST ( NULL AS INTEGER ) = ( col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT COUNT( * ) - - COUNT( * ), + COUNT( DISTINCT + 21 ) AS col0 FROM tab1
----
6
1

skipif mysql # not compatible
query II rowsort label-427
SELECT COUNT ( * ) - - COUNT ( * ), + COUNT ( DISTINCT + 21 ) AS col0 FROM tab1
----
6
1

query I rowsort
SELECT DISTINCT ( - 52 ) AS col2 FROM tab2
----
-52

query I rowsort
SELECT DISTINCT + col0 * + 85 * - + 79 FROM tab1
----
-342465
-570775
-611065

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - SUM( + + 37 ) AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-430
SELECT - SUM ( + + 37 ) AS col0 FROM tab0
----
-111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + MIN( - 32 ) - - + AVG ( DISTINCT + 76 ) FROM tab2 AS cor0 WHERE - col0 + + 37 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + MIN ( - 32 ) - - + AVG ( DISTINCT + 76 ) FROM tab2 AS cor0 WHERE - col0 + + 37 >= NULL
----
NULL

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT NULL = - 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - + col0 * - col0 + + + col0, col1 )
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 * - - col1 * 23 IS NOT NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT + SUM( - 15 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + SUM ( - 15 ) FROM tab2
----
-45

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

query I rowsort
SELECT col2 * ( 82 ) AS col0 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT ALL 81 * + col0 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT 99 * + + col0 AS col1 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT ALL + col2 + + - 56 AS col1 FROM tab0 WHERE NOT + + col2 + - - 1 * 28 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-446
SELECT + - col1 FROM tab2 cor0 WHERE NOT - CAST( + col1 AS DECIMAL ) < ( + 73 )
----

skipif mysql # not compatible
query I rowsort label-446
SELECT + - col1 FROM tab2 cor0 WHERE NOT - CAST ( + col1 AS REAL ) < ( + 73 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-447
SELECT 35 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND 44 * + ( - CAST( NULL AS DECIMAL ) ) / - 55 + - 31 - 75
----
0

skipif mysql # not compatible
query I rowsort label-447
SELECT 35 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND 44 * + ( - CAST ( NULL AS REAL ) ) / - 55 + - 31 - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 31 + + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 31 + + 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL ( col2 ) / - CAST( NULL AS SIGNED ) * 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL ( col2 ) / - CAST ( NULL AS INTEGER ) * 62 FROM tab1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + 48 * 98 + + - COUNT( * ) FROM tab0 AS cor0
----
4701

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 48 * 98 + + - COUNT ( * ) FROM tab0 AS cor0
----
4701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + - col0 col2 FROM tab0 AS cor0
----
-108
-96
-98

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

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

query I rowsort
SELECT + 51 - + + col1 AS col2 FROM tab1
----
37
4
46

query I rowsort
SELECT DISTINCT - col1 - col1 - col1 * - col0 FROM tab2
----
2244
4774
4891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / + ( 58 ) * + col2 NOT BETWEEN NULL AND NULL AND col0 BETWEEN - col1 AND - 23 * - col1 + col0 + 25
----

query I rowsort
SELECT ALL + 14 + - + col2 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT DISTINCT 58 * + 8 * - - 53 FROM tab0
----
24592

query I rowsort
SELECT ALL 6 - col0 FROM tab1
----
-45
-79
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-461
SELECT DISTINCT + COUNT( * ) AS col1, 11 * 28 * - 61 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
-18788

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT + COUNT ( * ) AS col1, 11 * 28 * - 61 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
-18788

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 56 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT + COUNT( * ) DIV 59 - - 17 AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-463
SELECT + COUNT ( * ) / 59 - - 17 AS col2 FROM tab1 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 90 * + 85 * col1 + + col0 > ( + col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( + 36 ) IS NULL
----

query II rowsort
SELECT + col2 AS col2, 36 * - col0 * ( - + 2 ) FROM tab2
----
23
3312
40
4608
58
5400

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, + 68 + col2 col2 FROM tab0 cor0
----
-10
78
-47
115
-99
167

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

query II rowsort
SELECT col1 AS col2, + col1 + + 37 * 77 AS col1 FROM tab2 AS cor0
----
51
2900
67
2916
77
2926

onlyif mysql # aggregate syntax: 
query II rowsort label-472
SELECT DISTINCT + COUNT( * ), 11 * + 49 * - SUM( col1 ) * - 52 * + 37 AS col1 FROM tab2 AS cor0
----
3
202222020

skipif mysql # not compatible
query II rowsort label-472
SELECT DISTINCT + COUNT ( * ), 11 * + 49 * - SUM ( col1 ) * - 52 * + 37 AS col1 FROM tab2 AS cor0
----
3
202222020

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - MIN( DISTINCT 71 ) FROM tab1 WHERE NOT col0 IS NULL
----
-71

skipif mysql # not compatible
query I rowsort label-474
SELECT - MIN ( DISTINCT 71 ) FROM tab1 WHERE NOT col0 IS NULL
----
-71

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT - SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + ( - 27 ) FROM tab1 AS cor0
----
-27
-27
-27

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

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT ALL + 12 + col0 + - + 48 * col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-2150
23
-2996
40
-3513
58

query I rowsort
SELECT - col0 + - + 51 + + col1 AS col0 FROM tab0 AS cor0
----
-117
-147
15

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 WHERE col0 - col2 < + col1
----
3

query I rowsort
SELECT - 70 FROM tab1 AS cor0 WHERE + col2 + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT ALL col2 DIV ( - - 10 ) FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL col2 / ( - - 10 ) FROM tab0
----
1
4
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1 - + - col0 + - col2 * - 74 - - 19 )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + - 56 ) * - ( - + col2 ) IS NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-488
SELECT - COUNT ( * ) * 77 AS col1 FROM tab2
----
-231

query I rowsort
SELECT DISTINCT col2 * - 72 FROM tab2
----
-1656
-2880
-4176

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - 53 / - - col1 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + 56 * - col2 / + 78 - + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-498
SELECT * FROM tab2 AS cor0 WHERE NULL > + + col2 OR col1 - - CAST( NULL AS SIGNED ) + + + col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-498
SELECT * FROM tab2 AS cor0 WHERE NULL > + + col2 OR col1 - - CAST ( NULL AS INTEGER ) + + + col0 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT MAX( DISTINCT + 83 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-500
SELECT MAX ( DISTINCT + 83 ) FROM tab1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT MIN( DISTINCT 4 ) DIV - 87 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT MIN ( DISTINCT 4 ) / - 87 AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT - 59 + 18 AS col0 FROM tab1 cor0
----
-41
-41
-41

query I rowsort
SELECT + col2 + 12 * + 0 - col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT MIN( ALL - 85 ) AS col0 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT MIN ( ALL - 85 ) AS col0 FROM tab2 cor0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IN ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IN ( - 6 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - col0 col1 FROM tab1 AS cor0
----
-2652
-7310
-8372

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + - MAX( DISTINCT + col2 ) * + 12 AS col2 FROM tab2 AS cor0
----
-696

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + - MAX ( DISTINCT + col2 ) * + 12 AS col2 FROM tab2 AS cor0
----
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 83 col0 FROM tab2 cor0
----
-25
-43
-60

query II rowsort
SELECT ALL col1 + 62 AS col2, col1 FROM tab1 AS cor0
----
109
47
67
5
76
14

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT ALL + col1 DIV - ( col2 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + col1 / - ( col2 ) FROM tab0
----
-1
-2
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT ALL 64 DIV ( - col1 ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL 64 / ( - col1 ) AS col0 FROM tab2
----
-1
0
0

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

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

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

query I rowsort
SELECT + col1 * + ( - 31 ) FROM tab1 AS cor0
----
-1457
-155
-434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT ALL + 62 DIV ( + COUNT( * ) ) + - - 48 AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 62 / ( + COUNT ( * ) ) + - - 48 AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-92

query I rowsort
SELECT - col0 * + 33 - + col2 AS col0 FROM tab0 cor0
----
-2881
-3300
-542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL + 42 + - ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-527
SELECT ALL + 42 + - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
45

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-530
SELECT + CAST( - col1 AS SIGNED ) AS col0, + 58 * - col0 + + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-530
SELECT + CAST ( - col1 AS INTEGER ) AS col0, + 58 * - col0 + + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

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

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

query II rowsort
SELECT ALL - 78 * + col1, + col1 AS col2 FROM tab2 AS cor0
----
-3978
51
-5226
67
-6006
77

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL - COUNT( * ) + + + 8 AS col2 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - COUNT ( * ) + + + 8 AS col2 FROM tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT 9 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT 75 + + COUNT( * ) + + MAX( + col0 ) FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-535
SELECT 75 + + COUNT ( * ) + + MAX ( + col0 ) FROM tab0
----
175

query I rowsort
SELECT col1 + + + 34 * - col0 AS col0 FROM tab0
----
-2937
-3297
-429

query I rowsort
SELECT + col1 + - - col1 - - col1 AS col2 FROM tab0
----
243
3
63

query I rowsort
SELECT 23 + - 83 FROM tab1
----
-60
-60
-60

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

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

query I rowsort
SELECT - 39 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT 10 + + - CAST( col1 AS SIGNED ) - 20 FROM tab1
----
-15
-24
-57

skipif mysql # not compatible
query I rowsort label-541
SELECT 10 + + - CAST ( col1 AS INTEGER ) - 20 FROM tab1
----
-15
-24
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL + COUNT( - - col1 ) - + + 30 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + COUNT ( - - col1 ) - + + 30 FROM tab0 AS cor0
----
-27

query II rowsort
SELECT ALL + - 99 + col0 + - - ( - + col0 ) AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-99
59
-99
68
-99
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL MAX( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL MAX ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - - col0 <> CAST( - + 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-547
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - col0 <> CAST ( - + 7 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - + 85 / - MIN( DISTINCT - - 77 ) FROM tab1 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT - + 85 / - MIN ( DISTINCT - - 77 ) FROM tab1 WHERE NOT col2 < NULL
----
NULL

query I rowsort
SELECT ALL + 11 * col2 * 33 * - - 69 FROM tab0
----
1177209
2479653
250470

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + 89 * + col2 - - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 79 * + + 32 * - - COUNT( * ) FROM tab0 cor0
----
7584

skipif mysql # not compatible
query I rowsort label-551
SELECT + 79 * + + 32 * - - COUNT ( * ) FROM tab0 cor0
----
7584

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

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

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

query I rowsort
SELECT DISTINCT - 4 + + col2 FROM tab0
----
43
6
95

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

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

query I rowsort
SELECT ALL - col0 + col1 + - col1 * - 15 FROM tab2
----
1168
770
997

onlyif mysql # aggregate syntax: 
query II rowsort label-557
SELECT - - 69 AS col1, MAX( + + 26 ) col0 FROM tab0 WHERE - 5 > NULL
----
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-557
SELECT - - 69 AS col1, MAX ( + + 26 ) col0 FROM tab0 WHERE - 5 > NULL
----
69
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col2 FROM tab1
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + 47 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL >= col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL - SUM( ALL - 80 ) AS col0 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - SUM ( ALL - 80 ) AS col0 FROM tab1 AS cor0
----
240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - COUNT( * ) + + 40 * 43 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1714

skipif mysql # not compatible
query I rowsort label-563
SELECT - COUNT ( * ) + + 40 * 43 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1714

query I rowsort
SELECT + 30 * 57 + + - col2 FROM tab0 AS cor0
----
1611
1663
1700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-565
SELECT * FROM tab1 WHERE CAST( - 64 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-565
SELECT * FROM tab1 WHERE CAST ( - 64 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT + CAST( 69 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif mysql # not compatible
query I rowsort label-566
SELECT + CAST ( 69 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT 97 * col0 * col2 FROM tab0 AS cor0
----
68385
84390
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL 38 * + - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 38 * + - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

query II rowsort
SELECT col2 - - + 88 + col2 * - 10 + - - col1, - col2 AS col1 FROM tab1 cor0
----
-438
-59
-477
-68
-762
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT DISTINCT + - MAX( ALL - 83 ) FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + - MAX ( ALL - 83 ) FROM tab2 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT - CAST( - col0 AS SIGNED ) - - - 92 AS col2 FROM tab0 AS cor0
----
-5
-77
5

skipif mysql # not compatible
query I rowsort label-571
SELECT - CAST ( - col0 AS INTEGER ) - - - 92 AS col2 FROM tab0 AS cor0
----
-5
-77
5

query I rowsort
SELECT DISTINCT - 86 - 11 FROM tab0 AS cor0
----
-97

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

query II rowsort
SELECT + 65 * + + 88, ( + + 55 ) AS col1 FROM tab0
----
5720
55
5720
55
5720
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 36 >= col2
----

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

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

query I rowsort
SELECT - col1 * + - 40 * - 10 FROM tab1 AS cor0
----
-18800
-2000
-5600

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

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT + 77 AS col1, - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
77
-3

skipif mysql # not compatible
query II rowsort label-580
SELECT + 77 AS col1, - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
77
-3

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

skipif mysql # not compatible
query III rowsort label-581
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - + col1 + - 51 + ( 14 ) FROM tab0 AS cor0
----
-118
-38
-58

query I rowsort
SELECT - col1 * - ( + + col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN + + 36 AND + - 94 / - + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT - COUNT( * ) + - 31 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - COUNT ( * ) + - 31 FROM tab1
----
-34

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

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

query I rowsort
SELECT 81 * + col1 + + + col1 FROM tab2
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT - 14 DIV - col1 + 74 FROM tab1
----
74
75
76

skipif mysql # not compatible
query I rowsort label-587
SELECT - 14 / - col1 + 74 FROM tab1
----
74
75
76

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT DISTINCT COUNT( * ) AS col0, 51 FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT COUNT ( * ) AS col0, 51 FROM tab2
----
3
51

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

query I rowsort
SELECT 46 * - - col2 * + + 54 FROM tab0
----
116748
245916
24840

query I rowsort
SELECT + col0 * + - 56 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT DISTINCT + 74 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - 31
----

query I rowsort
SELECT - 58 * + col0 AS col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT CAST( + - 22 AS SIGNED ) * + 56 - + 29 * COUNT( * ) FROM tab0
----
-1319

skipif mysql # not compatible
query I rowsort label-594
SELECT CAST ( + - 22 AS INTEGER ) * + 56 - + 29 * COUNT ( * ) FROM tab0
----
-1319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT ALL CAST( + 96 AS SIGNED ) - - COUNT( * ) col1 FROM tab1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT ALL CAST ( + 96 AS INTEGER ) - - COUNT ( * ) col1 FROM tab1
----
99

query I rowsort
SELECT col0 + ( - 56 ) FROM tab1
----
-5
29
35

query I rowsort
SELECT - col0 * - col0 * + col0 * - col0 + - 36 + + - col0 AS col2 FROM tab1
----
-52200746
-6765288
-68575088

query I rowsort
SELECT ALL - 44 + - + ( col1 ) AS col2 FROM tab1
----
-49
-58
-91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT - COUNT( * ) * - CAST( + 47 AS SIGNED ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-601
SELECT - COUNT ( * ) * - CAST ( + 47 AS INTEGER ) AS col0 FROM tab1
----
141

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( col1 - - 88 + - col0 > ( NULL ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab1
----
-48
-48
-48

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - 82 * SUM( - + col2 ) + + SUM( col1 ) AS col2 FROM tab0 cor0
----
12895

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - 82 * SUM ( - + col2 ) + + SUM ( col1 ) AS col2 FROM tab0 cor0
----
12895

query II rowsort
SELECT + + col1, ( - 33 ) FROM tab0 AS cor0
----
1
-33
21
-33
81
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT ALL 43 + CAST( + col0 AS SIGNED ) * - - col1 col1 FROM tab0 AS cor0
----
1258
140
1870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-612
SELECT ALL 43 + CAST ( + col0 AS INTEGER ) * - - col1 col1 FROM tab0 AS cor0
----
1258
140
1870

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

query I rowsort
SELECT - 20 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query II rowsort
SELECT DISTINCT - col0, 87 AS col1 FROM tab0
----
-15
87
-87
87
-97
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IN ( - - col0, 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - + 74 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-619
SELECT ALL - col0 col1, + col0 DIV - + col1 FROM tab1 AS cor0
----
-51
-3
-85
-17
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-619
SELECT ALL - col0 col1, + col0 / - + col1 FROM tab1 AS cor0
----
-51
-3
-85
-17
-91
-1

query I rowsort
SELECT ALL - - col1 + - + 75 FROM tab0 cor0
----
-54
-74
6

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

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

query I rowsort
SELECT DISTINCT col1 * + + col1 - + - ( col2 ) + - col2 * - - col0 * + 26 * - col2 FROM tab2 AS cor0
----
2668369
635308
6564347

query I rowsort
SELECT ALL - ( col1 ) * 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT DISTINCT 84 + + 59 AS col2, COUNT( * ) FROM tab1 cor0
----
143
3

skipif mysql # not compatible
query II rowsort label-625
SELECT DISTINCT 84 + + 59 AS col2, COUNT ( * ) FROM tab1 cor0
----
143
3

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

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

query II rowsort
SELECT - ( - 20 ), col2 FROM tab1
----
20
59
20
68
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + SUM( DISTINCT 88 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-629
SELECT + SUM ( DISTINCT 88 ) FROM tab1
----
88

query I rowsort
SELECT - 58 FROM tab0 WHERE NULL IS NULL
----
-58
-58
-58

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

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

query II rowsort
SELECT - + 45 + - ( + - col2 ) AS col2, - col2 + - 82 FROM tab2 AS cor0
----
-22
-105
-5
-122
13
-140

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT - 35 + MAX( - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-634
SELECT - 35 + MAX ( - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT DISTINCT - col2 DIV + + 75 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT - col2 / + + 75 FROM tab1
----
-1
0

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

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

query I rowsort
SELECT DISTINCT - col1 * 8 FROM tab0 AS cor0
----
-168
-648
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-641
SELECT ALL 62 AS col0, - CAST( NULL AS SIGNED ) + + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
62
NULL
62
NULL
62
NULL

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL 62 AS col0, - CAST ( NULL AS INTEGER ) + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
62
NULL
62
NULL
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + COUNT( - - 89 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-642
SELECT + COUNT ( - - 89 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 56 AS col0 FROM tab1 AS cor0 WHERE NULL > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT DISTINCT CAST( col2 AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT CAST ( col2 AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT - 26 * + + COUNT( * ) * - 39 FROM tab1
----
3042

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - 26 * + + COUNT ( * ) * - 39 FROM tab1
----
3042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) > + 36
----

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) > + 36
----

query I rowsort
SELECT col0 + - - col1 * + col0 AS col1 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT SUM( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-649
SELECT SUM ( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT ( + 9 ) * - + 86 FROM tab0
----
-774
-774
-774

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-651
SELECT ( - CAST( NULL AS SIGNED ) ) * + - 39 AS col2, 47 FROM tab1
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-651
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - 39 AS col2, 47 FROM tab1
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT + - 49 * - col2 * + col1 + 10 FROM tab1 cor0
----
14465
156614
65866

query I rowsort
SELECT 95 + - 76 FROM tab2 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( DISTINCT + - col1 ) * + + 55 AS col1 FROM tab2 cor0 WHERE + 59 / + col2 IS NOT NULL
----
-165

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( DISTINCT + - col1 ) * + + 55 AS col1 FROM tab2 cor0 WHERE + 59 / + col2 IS NOT NULL
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL COUNT( * ) + + 19 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL COUNT ( * ) + + 19 FROM tab2 cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL + 35 + - + ( + 28 ) + + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + 35 + - + ( + 28 ) + + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
103

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL + 72 + + - col2 + - - 63 FROM tab2
----
112
77
95

query I rowsort
SELECT DISTINCT - 33 * - ( + - col1 ) FROM tab1
----
-1551
-165
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-662
SELECT ALL col0 - CAST( - col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL col0 - CAST ( - col0 AS INTEGER ) FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + col2 * ( + 34 ) * - col1 FROM tab0
----
-129438
-3366
-7140

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

query I rowsort
SELECT - col2 * + - 86 FROM tab0
----
4042
8514
860

query I rowsort
SELECT 36 * - col1 AS col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT DISTINCT - COUNT( * ) AS col0, - 95 FROM tab2 AS cor0
----
-3
-95

skipif mysql # not compatible
query II rowsort label-667
SELECT DISTINCT - COUNT ( * ) AS col0, - 95 FROM tab2 AS cor0
----
-3
-95

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

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

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

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

query I rowsort
SELECT ALL - col1 * - 35 * col0 AS col1 FROM tab2
----
172480
175875
82110

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT + - MAX( - + ( - - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + - MAX ( - + ( - - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-673
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-674
SELECT DISTINCT col0 DIV - - col0, 18 * ( 56 ) AS col0 FROM tab0 AS cor0
----
1
1008

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT col0 / - - col0, 18 * ( 56 ) AS col0 FROM tab0 AS cor0
----
1
1008

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

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + 90 * COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
0

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

query II rowsort
SELECT 40 * - col1 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-2040
-51
-2680
-67
-3080
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL MIN( DISTINCT - 74 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT ALL MIN ( DISTINCT - 74 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 * 45 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT 37 * - 8 * + ( - col2 ) FROM tab1
----
17464
20128
28416

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + col0 / + + ( 59 ) - - + 84
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-684
SELECT DISTINCT - 65 DIV + COUNT( * ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - 65 / + COUNT ( * ) AS col0 FROM tab2
----
-21

query I rowsort
SELECT ALL + ( + col2 ) * - col0 * col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL + - 4 + + col2 AS col2 FROM tab0 AS cor0
----
43
6
95

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

query II rowsort
SELECT ALL + + col0 AS col2, 77 FROM tab0 AS cor0
----
15
77
87
77
97
77

query I rowsort
SELECT + col0 + - col0 * - + col2 FROM tab2
----
1104
2624
4425

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

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

query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 56 + + 31 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT - + CAST( + ( - + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-693
SELECT - + CAST ( + ( - + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 - 78 * + col2 * col0 AS col0 FROM tab1
----
-383232
-391465
-485860

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 - - 19 col0 FROM tab1
----
37
37
37

query I rowsort
SELECT col1 - - 64 FROM tab2
----
115
131
141

query I rowsort
SELECT ALL + + ( + 52 ) FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - 17 FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-701
SELECT + - col1 * col2 * col1, - CAST( NULL AS SIGNED ) + - + col2 * col2 AS col0 FROM tab0 cor0
----
-308367
NULL
-4410
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-701
SELECT + - col1 * col2 * col1, - CAST ( NULL AS INTEGER ) + - + col2 * col2 AS col0 FROM tab0 cor0
----
-308367
NULL
-4410
NULL
-99
NULL

query I rowsort
SELECT 41 * col0 * 38 FROM tab2 AS cor0
----
116850
71668
99712

query I rowsort
SELECT + col1 * col1 - 47 AS col2 FROM tab0 AS cor0
----
-46
394
6514

query I rowsort
SELECT DISTINCT col0 * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

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

query II rowsort
SELECT ALL + 46, col1 FROM tab2
----
46
51
46
67
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL - 27 * COUNT( + 92 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - 27 * COUNT ( + 92 ) FROM tab1
----
-81

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) > + + 79 + - + 94 + - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT DISTINCT - - 18 * - ( - COUNT( - ( 52 ) ) ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT - - 18 * - ( - COUNT ( - ( 52 ) ) ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT - COUNT( * ) * + 12 AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-712
SELECT - COUNT ( * ) * + 12 AS col2 FROM tab0 AS cor0
----
-36

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-714
SELECT DISTINCT + CAST( col2 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

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

onlyif mysql # DIV for integer division: 
query II rowsort label-716
SELECT DISTINCT + 73 DIV 55 col1, + col0 col2 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-716
SELECT DISTINCT + 73 / 55 col1, + col0 col2 FROM tab0
----
1
15
1
87
1
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT COUNT( * ) + + + COUNT( - + col1 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-718
SELECT COUNT ( * ) + + + COUNT ( - + col1 ) AS col0 FROM tab1
----
6

query I rowsort
SELECT + 61 + - col2 FROM tab2 WHERE ( 78 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL + 4 * + - COUNT( * ) col1 FROM tab1
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT DISTINCT + 32 DIV col1 * + 25 FROM tab0 AS cor0
----
0
25
800

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT + 32 / col1 * + 25 FROM tab0 AS cor0
----
0
25
800

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col1 * col2 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab0 cor0
----
-10
-47
-99

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

query I rowsort
SELECT - + col1 FROM tab0 WHERE + - 19 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 - - ( 66 ), + 36 AS col2 FROM tab0
----
113
36
165
36
76
36

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-731
SELECT ALL MAX( + 1 ) + + - COUNT( * ) + 67 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL MAX ( + 1 ) + + - COUNT ( * ) + 67 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT COUNT( * ) FROM tab0 WHERE NOT + - ( + + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-732
SELECT COUNT ( * ) FROM tab0 WHERE NOT + - ( + + col0 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + - 72 FROM tab2 cor0
----
-72

query I rowsort
SELECT - 58 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

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

query I rowsort
SELECT DISTINCT - col0 + + 58 FROM tab2 cor0
----
-17
-6
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 <= 91 + - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT DISTINCT - 67 DIV + - COUNT( * ) col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-739
SELECT DISTINCT - 67 / + - COUNT ( * ) col1 FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT DISTINCT + - 65 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT + - 65 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 <> ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT ALL 49 + - 12, COUNT( * ) AS col2 FROM tab2
----
37
3

skipif mysql # not compatible
query II rowsort label-743
SELECT ALL 49 + - 12, COUNT ( * ) AS col2 FROM tab2
----
37
3

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

query II rowsort
SELECT 77 AS col2, 89 FROM tab1
----
77
89
77
89
77
89

query I rowsort
SELECT ALL - 77 + col0 FROM tab1
----
-26
14
8

query I rowsort
SELECT DISTINCT + 44 * + + col1 AS col1 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT DISTINCT + ( - 44 ), 73 * - + SUM( - - col2 ) AS col1 FROM tab0
----
-44
-11388

skipif mysql # not compatible
query II rowsort label-748
SELECT DISTINCT + ( - 44 ), 73 * - + SUM ( - - col2 ) AS col1 FROM tab0
----
-44
-11388

query II rowsort
SELECT ALL - 9 AS col0, - 34 AS col2 FROM tab0
----
-9
-34
-9
-34
-9
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col1 * col1 col0 FROM tab2
----
46
-2601
64
-5929
75
-4489

query I rowsort
SELECT + + 6 + + + col0 FROM tab2 cor0
----
52
70
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL - - col1 * col2 DIV + col2 + - 2 AS col1 FROM tab1 AS cor0
----
12
3
45

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - - col1 * col2 / + col2 + - 2 AS col1 FROM tab1 AS cor0
----
12
3
45

query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL - ( - + COUNT( * ) ) - + 21 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - ( - + COUNT ( * ) ) - + 21 FROM tab2 AS cor0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL 1 * SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL 1 * SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - col2 * col1 + + - ( - 18 ) * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3537
1356
1647

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

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

query I rowsort
SELECT - col2 - + + col0 + + col1 + - + 81 FROM tab2 AS cor0
----
-108
-147
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-762
SELECT + + col1 DIV - col1 AS col2, - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1
-425
-1
-4277
-1
-714

skipif mysql # not compatible
query II rowsort label-762
SELECT + + col1 / - col1 AS col2, - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1
-425
-1
-4277
-1
-714

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT - 15 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-765
SELECT - 15 / + col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT - 33 DIV - + 17 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-766
SELECT - 33 / - + 17 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT DISTINCT 2 DIV - - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 2 / - - col1 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT MIN( DISTINCT - 37 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT MIN ( DISTINCT - 37 ) FROM tab2
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - col1 * - + col2 AS col0 FROM tab1 cor0
----
1344
295
3196

query II rowsort
SELECT ALL + col2, + col2 * ( + 34 ) + - col0 * + col0 * - col2 FROM tab0 AS cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT ALL col2 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL col2 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-28
-37
-9

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

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

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE 35 >= + col0 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - 76
----

query I rowsort
SELECT ALL col1 + + 3 FROM tab0
----
24
4
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + ( - col1 ) * - col2 + - 71 * col1 FROM tab1
----
-141
-60
350

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

query I rowsort
SELECT - ( col1 ) * 89 + 86 * + col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT col0 + + ( + col2 + - ( col1 ) ) AS col0 FROM tab0
----
-19
195
76

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

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT + ( COUNT ( col2 ) ) FROM tab1
----
3

query I rowsort
SELECT - 33 AS col0 FROM tab1 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-787
SELECT DISTINCT - col2 FROM tab0 WHERE NOT CAST( 81 AS DECIMAL ) * - col0 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - col2 FROM tab0 WHERE NOT CAST ( 81 AS REAL ) * - col0 NOT IN ( col1 )
----

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

query I rowsort
SELECT ALL - 1 * col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT 74 + COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-790
SELECT 74 + COUNT ( * ) FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 94 * col1 ) > ( - col1 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 44 / + col2 )
----

query I rowsort
SELECT - 95 * col1 AS col1 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT col2 DIV - col0 + 91 AS col0 FROM tab0
----
88
90
91

skipif mysql # not compatible
query I rowsort label-796
SELECT col2 / - col0 + 91 AS col0 FROM tab0
----
88
90
91

query I rowsort
SELECT DISTINCT - col1 + - 97 AS col1 FROM tab1
----
-102
-111
-144

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

query I rowsort
SELECT ALL + col0 * 54 AS col0 FROM tab1
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT ALL - 75 + ( col1 + + col2 ) DIV + col1 FROM tab0 WHERE ( - col1 * col1 - col2 ) IS NOT NULL
----
-74
-74
25

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - 75 + ( col1 + + col2 ) / + col1 FROM tab0 WHERE ( - col1 * col1 - col2 ) IS NOT NULL
----
-74
-74
25

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

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-59
-68
-96

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

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

skipif mysql # not compatible
query I rowsort label-805
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT col2 + 40 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT MIN( col1 ) + 44 * + COUNT( * ) FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT MIN ( col1 ) + 44 * + COUNT ( * ) FROM tab1
----
137

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

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

query I rowsort
SELECT + col1 + + 18 FROM tab2
----
69
85
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 - - 87 col0 FROM tab1
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT ALL col0 DIV 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL col0 / 83 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + - COUNT ( * ) * - MIN ( col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT ALL + - COUNT( * ) DIV 11 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + - COUNT ( * ) / 11 AS col2 FROM tab2 AS cor0
----
0

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL + MIN( ALL + - col2 ) * SUM( - col1 + - col2 * - 29 ) AS col1 FROM tab0
----
-437679

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL + MIN ( ALL + - col2 ) * SUM ( - col1 + - col2 * - 29 ) AS col1 FROM tab0
----
-437679

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT - COUNT( * ) FROM tab0 WHERE NOT - col2 NOT BETWEEN 3 AND col0 / col2
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - col2 NOT BETWEEN 3 AND col0 / col2
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT IN ( 30 * 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - col0 IN ( col2 + - 88 )
----

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

query I rowsort
SELECT ALL 78 + ( col2 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 72 + + ( - col2 ) col0 FROM tab1 AS cor0
----
-1104
-3452
-419

query I rowsort
SELECT ALL + col2 * - + 82 AS col2 FROM tab2
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT 66 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
594

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT 66 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
594

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

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

query I rowsort
SELECT + AVG ( 4 ) FROM tab2 AS cor0 WHERE + col1 + - col0 IS NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT ALL CAST( 32 AS SIGNED ) FROM tab1 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL CAST ( 32 AS INTEGER ) FROM tab1 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT DISTINCT + MAX( + + col1 ) DIV - 78 + 41 + COUNT( * ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + MAX ( + + col1 ) / - 78 + 41 + COUNT ( * ) AS col0 FROM tab0
----
43

query III rowsort
SELECT * FROM tab0 WHERE NULL < 32
----

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

query I rowsort
SELECT + 36 - + ( + col1 ) AS col1 FROM tab0
----
-45
15
35

query I rowsort
SELECT ALL + 86 * + ( 84 ) * - col1 + col0 + + 84 * + 60 AS col1 FROM tab2
----
-363338
-478893
-551144

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab2 WHERE NULL <= ( + col0 * + col0 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE - - 11 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-849
SELECT - AVG ( ALL + + 4 ) + CAST( NULL AS DECIMAL ) * + COUNT( DISTINCT - ( + col0 ) ) * AVG ( DISTINCT col2 + 96 * 90 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT - AVG ( ALL + + 4 ) + CAST ( NULL AS REAL ) * + COUNT ( DISTINCT - ( + col0 ) ) * AVG ( DISTINCT col2 + 96 * 90 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 / 35 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-851
SELECT CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col0 )
----
NULL
NULL
NULL

query II rowsort
SELECT 49 + - col2, - col0 AS col2 FROM tab0 cor0
----
-50
-97
2
-15
39
-87

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 < ( + ( 7 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 40, col0 FROM tab1
----
40
51
40
85
40
91

query I rowsort
SELECT ALL + 62 * - col2 FROM tab2
----
-1426
-2480
-3596

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-858
SELECT + 67 * + ( + 39 ) + + - MIN( - CAST( - 12 AS SIGNED ) ) * 69 FROM tab2 cor0
----
1785

skipif mysql # not compatible
query I rowsort label-858
SELECT + 67 * + ( + 39 ) + + - MIN ( - CAST ( - 12 AS INTEGER ) ) * 69 FROM tab2 cor0
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT 38 * - 0 * + COUNT( + - 4 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT 38 * - 0 * + COUNT ( + - 4 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-860
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-860
SELECT ALL - MIN ( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 * + 53 AS col2 FROM tab0 AS cor0
----
-2491
-5247
-530

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT - 44 IS NULL
----
51
85
91

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

query I rowsort
SELECT ALL 61 * col1 FROM tab0 AS cor0
----
1281
4941
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab0 WHERE NOT col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 79 AS col0 FROM tab2
----
1817
3160
4582

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( + col2 IS NULL ) )
----

query I rowsort
SELECT + 56 * + - 75 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT - col1 AS col2, col2 * + ( + + col1 ) + - col2 FROM tab2 AS cor0
----
-51
1150
-67
3828
-77
3040

query I rowsort
SELECT + col0 * col0 + + 8 FROM tab1 AS cor0
----
2609
7233
8289

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + 50 + - COUNT( * ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + 50 + - COUNT ( * ) FROM tab2 cor0
----
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT - - 68 DIV + + 23 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-875
SELECT - - 68 / + + 23 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL 61 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT - col0 * 69 + - + 96 * + col0 FROM tab2 AS cor0
----
-10560
-12375
-7590

query I rowsort
SELECT + + 29 + - + 35 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + ( 33 ) + - MAX( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-879
SELECT + ( 33 ) + - MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
84

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

query I rowsort
SELECT 45 * + 82 + + - col2 FROM tab2 AS cor0
----
3632
3650
3667

query I rowsort
SELECT DISTINCT + col2 + + col1 * + 13 FROM tab0 AS cor0
----
1100
112
283

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * col1 + 97 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 67 + 31 / - + col2 * + - col2 + - - 82 AND NULL
----

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

query I rowsort
SELECT ALL + col1 - + 87 + 88 * - 45 + - - col2 * - + ( 13 ) AS col1 FROM tab2
----
-4295
-4490
-4734

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-887
SELECT ALL + CAST ( + col1 AS INTEGER ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + MAX( DISTINCT 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + MAX ( DISTINCT 40 ) AS col0 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL - SUM( + - col2 ) * + COUNT( * ) + + - 86 + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
586

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL - SUM ( + - col2 ) * + COUNT ( * ) + + - 86 + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
586

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

query I rowsort
SELECT - 85 * + - col2 FROM tab0
----
3995
8415
850

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 20 AS col2 FROM tab0 cor0
----
20

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

query II rowsort
SELECT col1, col1 AS col2 FROM tab2 WHERE NOT NULL >= ( + - 10 - - 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-899
SELECT COUNT ( * ) / 69 AS col0 FROM tab1
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col2 FROM tab0 WHERE NOT ( col2 ) <> + col0 - - col1 * - + 74
----

query I rowsort
SELECT ALL col2 * - 55 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT DISTINCT ( - 40 ) * - 96 FROM tab2
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + 86 * - ( MIN( + + col2 ) ) FROM tab1
----
-5074

skipif mysql # not compatible
query I rowsort label-904
SELECT + 86 * - ( MIN ( + + col2 ) ) FROM tab1
----
-5074

query I rowsort
SELECT col2 * 51 FROM tab0
----
2397
5049
510

query I rowsort
SELECT + 93 AS col0 FROM tab1 WHERE NOT - - col2 NOT IN ( - col0 + + col0, 90 )
----

query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab2 AS cor0 WHERE ( + 9 * 30 ) = + 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-909
SELECT DISTINCT + 93 + - CAST( NULL AS SIGNED ) + + - col0, - col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT + 93 + - CAST ( NULL AS INTEGER ) + + - col0, - col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL + 6 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT - 98 DIV + - 81 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-913
SELECT - 98 / + - 81 AS col0 FROM tab2 AS cor0
----
1
1
1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-915
SELECT + - 3 / col0 col0 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-916
SELECT + col0, col1 / - - col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-917
SELECT COUNT ( * ) AS col2, 85 col2 FROM tab0 AS cor0
----
3
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - COUNT( * ) - + 97 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-919
SELECT - COUNT ( * ) - + 97 FROM tab0
----
-100

query I rowsort
SELECT + col1 * - - 39 - - col0 AS col1 FROM tab1
----
1924
280
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 + - + 50 col1 FROM tab2
----
-42
-55
-63

query I rowsort
SELECT DISTINCT 95 - 2 AS col1 FROM tab0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - + col1 col2 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 - + 55 AS col0 FROM tab0
----
-45
-8
44

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT col1 - - col2 + + col1 DIV - + 96 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT col1 - - col2 + + col1 / - + 96 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT COUNT( * ) + + - COUNT( * ) * + MIN( - col1 ) + - - COUNT( * ) + + 49 * + + 37 * - - MIN( ALL col0 ) FROM tab0 AS cor0
----
27444

skipif mysql # not compatible
query I rowsort label-927
SELECT COUNT ( * ) + + - COUNT ( * ) * + MIN ( - col1 ) + - - COUNT ( * ) + + 49 * + + 37 * - - MIN ( ALL col0 ) FROM tab0 AS cor0
----
27444

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + + 78 * + 59 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-13806

skipif mysql # not compatible
query I rowsort label-928
SELECT + + 78 * + 59 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-13806

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

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - - 60 / + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
2
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 54 <= + col0
----
46
51
23

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

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

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

query II rowsort
SELECT ALL col0, - 47 * + col1 FROM tab2 AS cor0
----
46
-2397
64
-3619
75
-3149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) + 61 + - + ( + - col1 ) <> + 1
----

query II rowsort
SELECT ALL col0 + + - col2 AS col0, - 28 AS col1 FROM tab0
----
-2
-28
-32
-28
77
-28

query I rowsort
SELECT DISTINCT - col1 * 55 AS col0 FROM tab1
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT + COUNT( * ) + - MIN( + col2 ) + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-938
SELECT + COUNT ( * ) + - MIN ( + col2 ) + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 81 * 43 * 78 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + 28 * - COUNT( ALL + - col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-940
SELECT + 28 * - COUNT ( ALL + - col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL - MIN( - - 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - MIN ( - - 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT 27 + + - CAST( + col0 AS SIGNED ) + 16 * + - col2 FROM tab2
----
-387
-677
-976

skipif mysql # not compatible
query I rowsort label-942
SELECT 27 + + - CAST ( + col0 AS INTEGER ) + 16 * + - col2 FROM tab2
----
-387
-677
-976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT + col0 + - CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT + col0 + - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT ALL - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-947
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + col0 + - 73 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-947
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + col0 + - 73 * - + CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-948
SELECT + 7 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + AVG ( + - 46 ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-950
SELECT ALL col0 * CAST( NULL AS DECIMAL ) * + ( - col2 ) * + col1 + + 11 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL col0 * CAST ( NULL AS REAL ) * + ( - col2 ) * + col1 + + 11 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 93 + + - col2 AS col0 FROM tab0 cor0
----
-6
46
83

query I rowsort
SELECT DISTINCT 60 + col0 * + ( + 38 ) AS col0 FROM tab2 AS cor0
----
1808
2492
2910

query II rowsort
SELECT - 30 AS col1, - 50 AS col0 FROM tab0
----
-30
-50
-30
-50
-30
-50

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

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

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

query I rowsort
SELECT DISTINCT - 0 * + - col2 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-958
SELECT col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-958
SELECT col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-959
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) * - - ( - col1 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-959
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) * - - ( - col1 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 / - + 59 FROM tab2 WHERE NOT ( NULL ) <> + col0
----

query I rowsort
SELECT ALL - + col2 + - - col1 + col2 FROM tab0 WHERE col2 + + col2 NOT BETWEEN + + 93 AND NULL
----
21

query II rowsort
SELECT 64 * - - col1, + col0 AS col2 FROM tab1
----
3008
91
320
85
896
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-963
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col1 * + col1 * col2 / CAST( + col2 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-963
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col1 * + col1 * col2 / CAST ( + col2 AS INTEGER ) + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-964
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - + 10 )
----

skipif mysql # not compatible
query III rowsort label-964
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - + 10 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL COUNT( + 27 ) + - + 55 * + 45 AS col1 FROM tab2 AS cor0
----
-2472

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL COUNT ( + 27 ) + - + 55 * + 45 AS col1 FROM tab2 AS cor0
----
-2472

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

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

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

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

query I rowsort
SELECT - col0 * + 97 AS col0 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-970
SELECT ( + - col1 ) * - + col1 + CAST( - ( + CAST( - col0 AS DECIMAL ) ) AS SIGNED ) DIV col1 + + col0 FROM tab0
----
195
532
6576

skipif mysql # not compatible
query I rowsort label-970
SELECT ( + - col1 ) * - + col1 + CAST ( - ( + CAST ( - col0 AS REAL ) ) AS INTEGER ) / col1 + + col0 FROM tab0
----
195
532
6576

query II rowsort
SELECT - 14, col0 - + col2 AS col2 FROM tab1
----
-14
-45
-14
23
-14
26

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

skipif mysql # not compatible
query I rowsort label-972
SELECT - 12 / - col0 * + + col1 * - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 76 + 19 + - ( - col1 ) + + 57 * 36 * - col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 39 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT + - col0 + - 49 * - CAST( + col2 AS SIGNED ) col0, ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
2288
NULL
403
NULL
4754
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-976
SELECT + - col0 + - 49 * - CAST ( + col2 AS INTEGER ) col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
2288
NULL
403
NULL
4754
NULL

query II rowsort
SELECT DISTINCT + col1 * - + col2, col0 / + col0 FROM tab0 WHERE NULL >= - + col2 * - col2 + 38
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= 61 * + + ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-979
SELECT 27 DIV - 19 + + 25 * + CAST( + + MIN( ALL + 81 ) AS SIGNED ) FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-979
SELECT 27 / - 19 + + 25 * + CAST ( + + MIN ( ALL + 81 ) AS INTEGER ) FROM tab2 AS cor0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-980
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 81 NOT IN ( + col2, CAST( NULL AS SIGNED ) + col2 * + - ( + + 29 ) ) )
----

skipif mysql # not compatible
query III rowsort label-980
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 81 NOT IN ( + col2, CAST ( NULL AS INTEGER ) + col2 * + - ( + + 29 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - 2 * MAX( ALL - - col0 ) * + 69 - + COUNT( * ) FROM tab0 AS cor0
----
-13389

skipif mysql # not compatible
query I rowsort label-981
SELECT - 2 * MAX ( ALL - - col0 ) * + 69 - + COUNT ( * ) FROM tab0 AS cor0
----
-13389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT + + CAST( + col1 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-982
SELECT + + CAST ( + col1 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + + + 1 + + col2 * - - 14 FROM tab1 AS cor0
----
1294
742
862

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 NOT IN ( + 39 * 7 + - 2 + - col1, col0 * - col0, - + 10, - 17 * col2 + col1 - - - ( + 92 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - MIN( ALL + 72 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-986
SELECT - MIN ( ALL + 72 ) AS col2 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT ( + + MAX( - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT ( + + MAX ( - col2 ) ) FROM tab2
----
-23

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT CAST( 60 AS SIGNED ) FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-990
SELECT CAST ( 60 AS INTEGER ) FROM tab0
----
60
60
60

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

query I rowsort
SELECT - col1 * - col1 - - + col2 + + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-3911
-4604
-4931

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

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

query I rowsort
SELECT 98 * + col1 FROM tab0
----
2058
7938
98

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

query II rowsort
SELECT DISTINCT + 9 AS col1, 72 FROM tab0 AS cor0
----
9
72

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT + MAX( + col1 ) AS col0, 43 FROM tab2 AS cor0
----
77
43

skipif mysql # not compatible
query II rowsort label-997
SELECT + MAX ( + col1 ) AS col0, 43 FROM tab2 AS cor0
----
77
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-998
SELECT CAST( + + SUM( - - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL - 70 DIV + + 67 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 70 / + + 67 FROM tab1 cor0
----
-1
-1
-1

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

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

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

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

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

query II rowsort
SELECT + - 39 AS col1, col0 * - col2 AS col1 FROM tab1 AS cor0
----
-39
-4896
-39
-5015
-39
-6188

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT - + CAST( + ( + + 38 ) AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-102
-113
-84

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + CAST ( + ( + + 38 ) AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-102
-113
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 99 * - 66 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE ( - - col1 ) BETWEEN 42 + + col1 AND 6 + 82
----

query I rowsort
SELECT - col2 + + + col2 + + col2 FROM tab0
----
10
47
99

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

query I rowsort
SELECT ALL + col0 * - 37 + + ( + 71 ) FROM tab2 AS cor0
----
-1631
-2297
-2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1011
SELECT ALL - COUNT( * ) * + + 20 DIV 70 AS col2, - SUM( - col0 ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
0
188

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL - COUNT ( * ) * + + 20 / 70 AS col2, - SUM ( - col0 ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
0
188

query I rowsort
SELECT ALL col2 - + + col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL - - col1 AS col0, - 95 * - col0 / + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 / - - 23, - 31 )
----

query I rowsort
SELECT + 71 * - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b3bbf52f703b79682cd7939910c69b

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 FROM tab1
----
3486
4671
9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT + + CAST( - 0 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1016
SELECT + + CAST ( - 0 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 67 + ( col2 ) + + col1 - + col1 AS col0 FROM tab0 AS cor0
----
114
166
77

query II rowsort
SELECT - col1 * - col0 * col0, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, ( - col0 ) + + 31 FROM tab0 AS cor0
----
15
16
87
-56
97
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT + + ( 83 ) + + col2 + + 53 AS col0, + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col1 / + CAST( - - col2 AS SIGNED ) * - CAST( - + 97 AS SIGNED ) / + 71
----

skipif mysql # not compatible
query II rowsort label-1021
SELECT + + ( 83 ) + + col2 + + 53 AS col0, + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col1 / + CAST ( - - col2 AS INTEGER ) * - CAST ( - + 97 AS INTEGER ) / + 71
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 45 + + - 40 <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ( + MAX( - col2 ) ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1023
SELECT ( + MAX ( - col2 ) ) AS col0 FROM tab0
----
-10

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

query I rowsort
SELECT ALL col2 * - col2 * - col2 FROM tab1
----
205379
314432
884736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1026
SELECT DISTINCT - CAST( + col2 AS SIGNED ), - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

skipif mysql # not compatible
query II rowsort label-1026
SELECT DISTINCT - CAST ( + col2 AS INTEGER ), - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

query II rowsort
SELECT DISTINCT 66 * col1, ( - col1 ) AS col1 FROM tab0
----
1386
-21
5346
-81
66
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1028
SELECT - + CAST( col2 AS SIGNED ), col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-1028
SELECT - + CAST ( col2 AS INTEGER ), col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + 33 * - + col1 AS col1 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT DISTINCT - 90 * + - col0 AS col2 FROM tab0
----
1350
7830
8730

query I rowsort
SELECT ALL - - col2 * 16 + - col1 AS col2 FROM tab1 cor0
----
1041
1522
939

query I rowsort
SELECT DISTINCT + + col2 * - ( + - 40 ) + - + 9 AS col0 FROM tab1 AS cor0
----
2351
2711
3831

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL - 72 * - 43 FROM tab2 AS cor0 WHERE - CAST( + + 54 AS SIGNED ) * - 86 * col1 IS NOT NULL
----
3096
3096
3096

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - 72 * - 43 FROM tab2 AS cor0 WHERE - CAST ( + + 54 AS INTEGER ) * - 86 * col1 IS NOT NULL
----
3096
3096
3096

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - 13 * + col2 col2 FROM tab1 AS cor0
----
-1234
-762
-837

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

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

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

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

query I rowsort
SELECT ALL + col1 * + ( - + 79 ) AS col1 FROM tab2
----
-4029
-5293
-6083

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT 85 + + COUNT ( * ) FROM tab2
----
88

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + COUNT ( * ) / + COUNT ( DISTINCT + col1 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + col1 AND - - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT col1 * - 38 AS col0, - CAST( + 90 AS SIGNED ) AS col1 FROM tab0
----
-3078
-90
-38
-90
-798
-90

skipif mysql # not compatible
query II rowsort label-1046
SELECT col1 * - 38 AS col0, - CAST ( + 90 AS INTEGER ) AS col1 FROM tab0
----
-3078
-90
-38
-90
-798
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ( + MAX( + 1 ) ) * + + ( + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1048
SELECT ( + MAX ( + 1 ) ) * + + ( + 18 ) FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT + 67 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + 67 / + col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT 2 + - + SUM( col1 ) AS col0 FROM tab2
----
-193

skipif mysql # not compatible
query I rowsort label-1050
SELECT 2 + - + SUM ( col1 ) AS col0 FROM tab2
----
-193

query II rowsort
SELECT DISTINCT 97 AS col2, + 41 FROM tab2 cor0
----
97
41

query I rowsort
SELECT col2 + + + col2 FROM tab0 cor0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74, col1 col0 FROM tab0 AS cor0
----
74
1
74
21
74
81

query I rowsort
SELECT + col1 * 4 + + 80 + + + col1 * col2 FROM tab2 AS cor0
----
1457
3468
4234

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 / + - col1 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - 51 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT + COUNT( * ) + + - ( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + COUNT ( * ) + + - ( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT ALL - SUM( + col2 ), - COUNT( * ) AS col1 FROM tab0
----
-156
-3

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - SUM ( + col2 ), - COUNT ( * ) AS col1 FROM tab0
----
-156
-3

query I rowsort
SELECT DISTINCT - + col2 * 92 - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1007
-4339
-9205

query I rowsort
SELECT - + col0 * + 95 AS col2 FROM tab2 AS cor0
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1065
SELECT - + COUNT( * ) DIV 36 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT - + COUNT ( * ) / 36 AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - - ( - - 83 ) * + 5 FROM tab0 AS cor0
----
415
415
415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 * col1 * 88 col1, - col0 FROM tab1 AS cor0
----
33088
-91
3520
-85
9856
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL + MIN( 66 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + MIN ( 66 ) FROM tab2
----
66

query I rowsort
SELECT ALL + col1 * 79 FROM tab0
----
1659
6399
79

query I rowsort
SELECT ALL - + col1 + - + 72 FROM tab2 WHERE NULL IS NULL
----
-123
-139
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT DISTINCT 97 * + MAX( - 87 ) * + 63 AS col1, - COUNT( * ) * 7 FROM tab2
----
-531657
-21

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT 97 * + MAX ( - 87 ) * + 63 AS col1, - COUNT ( * ) * 7 FROM tab2
----
-531657
-21

query I rowsort
SELECT ALL + 29 * 90 AS col0 FROM tab0
----
2610
2610
2610

query I rowsort
SELECT DISTINCT - + col0 * + 88 FROM tab2 WHERE NOT col2 * 5 IS NULL
----
-4048
-5632
-6600

query I rowsort
SELECT - + 61 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

query I rowsort
SELECT - col0 * + + col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT MIN( + + col1 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-1078
SELECT MIN ( + + col1 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
8

query II rowsort
SELECT + - col2 + col2 AS col1, - col2 + - + 93 FROM tab0 AS cor0
----
0
-103
0
-140
0
-192

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

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

query I rowsort
SELECT ALL 1 * 44 AS col2 FROM tab1
----
44
44
44

query I rowsort
SELECT DISTINCT col0 * - - col2 + col2 + - 1 FROM tab1
----
4991
5073
6255

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 BETWEEN 43 AND + + 55 * col1
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 - - col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + COUNT( DISTINCT 89 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + COUNT ( DISTINCT 89 ) FROM tab1
----
1

query II rowsort
SELECT + 8, col0 FROM tab0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - COUNT( * ) + + SUM( ALL col2 ) AS col0 FROM tab0 WHERE NOT 46 IS NULL
----
153

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - COUNT ( * ) + + SUM ( ALL col2 ) AS col0 FROM tab0 WHERE NOT 46 IS NULL
----
153

query I rowsort
SELECT ( col2 ) * + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col0 AND NULL
----
59
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT ALL + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT ALL + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT DISTINCT - col0 DIV + - col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - col0 / + - col2 FROM tab0
----
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT ALL - COUNT( * ) + 14 DIV 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - COUNT ( * ) + 14 / 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT col0, + 70 * - 83 + - col2 + - - 14 AS col1 FROM tab0 AS cor0
----
15
-5843
87
-5806
97
-5895

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - ( - col2 ) / - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1099
SELECT DISTINCT col2 DIV CAST( - 88 AS SIGNED ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT col2 / CAST ( - 88 AS INTEGER ) FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT col2 * - + col0 - - col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT 96 * - MIN( DISTINCT - - col2 ) AS col1 FROM tab1
----
-5664

skipif mysql # not compatible
query I rowsort label-1101
SELECT 96 * - MIN ( DISTINCT - - col2 ) AS col1 FROM tab1
----
-5664

query I rowsort
SELECT 14 * ( + 21 ) AS col0 FROM tab2
----
294
294
294

query I rowsort
SELECT ( - - 30 ) * - - 69 FROM tab1
----
2070
2070
2070

query I rowsort
SELECT 62 * - 21 AS col0 FROM tab0
----
-1302
-1302
-1302

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

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

query I rowsort
SELECT ALL - 79 FROM tab0 AS cor0 WHERE 14 * + col1 * - + 25 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col2 col1 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT ALL + col1 + + 39 AS col1 FROM tab0
----
120
40
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) > 91 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col2 * - ( - col2 ) AS col2, - col2 col1 FROM tab1 AS cor0
----
3540
-59
4692
-68
9312
-96

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

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

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

query I rowsort
SELECT ALL - 21 * col2 + + 58 FROM tab2
----
-1160
-425
-782

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL 98 + + COUNT( col2 ) AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL 98 + + COUNT ( col2 ) AS col2 FROM tab2
----
101

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

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

query I rowsort
SELECT + 46 * - - col1 - - 52 AS col1 FROM tab0
----
1018
3778
98

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

query I rowsort
SELECT 10 * - 40 + - 93 FROM tab1
----
-493
-493
-493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 + col0 * + - col2 - - 75 col0 FROM tab1 AS cor0
----
-4824
-4943
-6116

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

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

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

query I rowsort
SELECT + + col1 * + + col1 * 34 + - col0 + + 97 FROM tab2 AS cor0
----
152648
201619
88485

query I rowsort
SELECT ( 62 ) AS col1 FROM tab2
----
62
62
62

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col0 FROM tab1 cor0
----
-59
-68
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT ALL 49 DIV - col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL 49 / - col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT ( col0 ) * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-1134
SELECT ( col0 ) * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 * + + col2 col1 FROM tab1 AS cor0
----
295885
420784
470016

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

query II rowsort
SELECT DISTINCT + + col2, 47 * col0 + + col0 * 3 FROM tab2 cor0
----
23
2300
40
3200
58
3750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1139
SELECT * FROM tab1 WHERE NOT col1 + - CAST( - col0 AS SIGNED ) + - + 65 > + - 75
----

skipif mysql # not compatible
query III rowsort label-1139
SELECT * FROM tab1 WHERE NOT col1 + - CAST ( - col0 AS INTEGER ) + - + 65 > + - 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT col2 DIV + 83 + - 12 col1 FROM tab0
----
-11
-12
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1140
SELECT col2 / + 83 + - 12 col1 FROM tab0
----
-11
-12
-12

query II rowsort
SELECT DISTINCT col1, - col2 * - + col1 + + 90 FROM tab0
----
1
189
21
300
81
3897

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

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

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

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

query I rowsort
SELECT ALL - 21 + + + col2 * 18 AS col1 FROM tab1 cor0
----
1041
1203
1707

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT COUNT( * ) * - 22 AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1147
SELECT COUNT ( * ) * - 22 AS col2 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + MIN( ALL + 39 ) * - + 34 FROM tab1
----
-1326

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + MIN ( ALL + 39 ) * - + 34 FROM tab1
----
-1326

query I rowsort
SELECT - 54 * - col2 * - - col2 + + col2 * + 32 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col2 * - + col1 * + col1 AND NULL
----
183512
29302
87680

query I rowsort
SELECT + col0 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-19
195
76

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

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

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

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

query I rowsort
SELECT + + 31 FROM tab1 WHERE - col0 + - col2 IS NOT NULL
----
31
31
31

query I rowsort
SELECT ALL - col0 * - 40 - col0 + - + col2 + - col0 AS col0 FROM tab2
----
1725
2392
2792

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT - COUNT( * ) AS col2, COUNT( * ) col0 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1156
SELECT - COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + 40 * - COUNT( * ) AS col0 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-1157
SELECT + 40 * - COUNT ( * ) AS col0 FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1158
SELECT COUNT( * ) AS col1, 72 FROM tab2
----
3
72

skipif mysql # not compatible
query II rowsort label-1158
SELECT COUNT ( * ) AS col1, 72 FROM tab2
----
3
72

query I rowsort
SELECT DISTINCT - col0 - + col0 + + - 15 FROM tab1
----
-117
-185
-197

query I rowsort
SELECT ALL + 23 * - col2 AS col2 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT DISTINCT - col2 * + 52 FROM tab2
----
-1196
-2080
-3016

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - - 21 - - + COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1163
SELECT - - 21 - - + COUNT ( * ) FROM tab0 AS cor0
----
24

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

query I rowsort
SELECT + 63 AS col1 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 10 * 62 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL - + MAX( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - + MAX ( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + + ( - col1 ) * + 36 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT SUM( + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT SUM ( + col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT - - 13 * - - 97 * - 5 AS col0 FROM tab0 AS cor0
----
-6305
-6305
-6305

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT - 84 DIV + - 93 + + 88 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - 84 / + - 93 + + 88 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT + + 26 FROM tab0 cor0
----
26

query II rowsort
SELECT DISTINCT col2 AS col2, col2 - col1 * - 2 * 49 + - col0 + - ( col1 ) FROM tab1
----
59
459
68
4536
96
1403

query I rowsort
SELECT col0 * - - 21 AS col1 FROM tab0
----
1827
2037
315

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT + col1 * 48 * 48 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT DISTINCT col2 DIV - - 73 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT col2 / - - 73 FROM tab2
----
0

query I rowsort
SELECT - 38 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - 23 + ( 86 ) + - + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 23 + ( 86 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT COUNT( * ) + 8 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT COUNT ( * ) + 8 FROM tab2 AS cor0
----
11

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT col0 * 89 * + col0 + 95 DIV - col0 FROM tab2 AS cor0
----
188322
364543
500624

skipif mysql # not compatible
query I rowsort label-1184
SELECT col0 * 89 * + col0 + 95 / - col0 FROM tab2 AS cor0
----
188322
364543
500624

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1186
SELECT - CAST( - + CAST( + + 61 AS DECIMAL ) AS SIGNED ) - COUNT( * ) col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1186
SELECT - CAST ( - + CAST ( + + 61 AS REAL ) AS INTEGER ) - COUNT ( * ) col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL col0 + col2 + + col2 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT DISTINCT - 78 FROM tab2 cor0 WHERE NOT 18 IS NULL AND NOT NULL = + col1
----

query I rowsort
SELECT + col2 - + - col1 * ( - - col2 ) * + 49 AS col0 FROM tab2
----
150960
190472
57500

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT + col0 DIV - + col0 - - - col2 AS col1 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-1190
SELECT + col0 / - + col0 - - - col2 AS col1 FROM tab0
----
-100
-11
-48

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

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

query I rowsort
SELECT ( + 33 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE ( NOT + col0 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT DISTINCT - - CAST( - 0 AS SIGNED ) col0 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 44 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
143
3611
934

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

query I rowsort
SELECT ALL + ( ( col0 ) ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - + col1 * + col1 * + 91 AS col1 FROM tab2 AS cor0
----
-236691
-408499
-539539

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

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

query I rowsort
SELECT DISTINCT + 56 * - ( ( + 84 ) ) FROM tab0
----
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT - 29 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - 29 / - col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col0 * 19 )
----

query I rowsort
SELECT DISTINCT + 26 / + 84 * 10 + col1 + - + 6 * - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT col1 DIV - + col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1205
SELECT col1 / - + col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ALL - 36 DIV + col2 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - 36 / + col2 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT - + 11 * + col1 * + + 90 FROM tab1 AS cor0
----
-13860
-46530
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT DISTINCT col1 * col2 DIV + 86 + - ( 11 ) FROM tab1 cor0
----
-8
26
4

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT col1 * col2 / + 86 + - ( 11 ) FROM tab1 cor0
----
-8
26
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - MIN( DISTINCT - 54 ) + - ( COUNT( + col2 ) ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - MIN ( DISTINCT - 54 ) + - ( COUNT ( + col2 ) ) FROM tab0 AS cor0
----
51

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

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

query I rowsort
SELECT ALL - ( - - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT - col1 + 36 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-66
-98

query I rowsort
SELECT DISTINCT - + 85 FROM tab2 cor0
----
-85

query I rowsort
SELECT DISTINCT - col0 + + col1 + - + 30 AS col2 FROM tab1 AS cor0
----
-110
-67
-74

query I rowsort
SELECT - 54 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT + col0 + - col1 DIV - + col2 + col1 AS col0 FROM tab0
----
110
97
98

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + col0 + - col1 / - + col2 + col1 AS col0 FROM tab0
----
110
97
98

query II rowsort
SELECT - col2 AS col2, + 32 FROM tab0
----
-10
32
-47
32
-99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL 82 + COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 82 + COUNT ( * ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ( MIN( ALL 96 ) ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1219
SELECT ( MIN ( ALL 96 ) ) AS col1 FROM tab2
----
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT ALL 80 col1, + COUNT( * ) AS col1 FROM tab1
----
80
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1221
SELECT ALL 80 col1, + COUNT ( * ) AS col1 FROM tab1
----
80
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1223
SELECT CAST( NULL AS SIGNED ) * + 60 * - 20 * + COUNT( * ) AS col0, - ( + 94 ) * - + COUNT( * ) * SUM( DISTINCT + col1 ) + 39 AS col2 FROM tab0
----
NULL
29085

skipif mysql # not compatible
query II rowsort label-1223
SELECT CAST ( NULL AS INTEGER ) * + 60 * - 20 * + COUNT ( * ) AS col0, - ( + 94 ) * - + COUNT ( * ) * SUM ( DISTINCT + col1 ) + 39 AS col2 FROM tab0
----
NULL
29085

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + SUM( DISTINCT + 91 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT + SUM ( DISTINCT + 91 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----
NULL

query I rowsort
SELECT ALL - col0 + col2 + + + col2 FROM tab1 AS cor0
----
141
33
45

query II rowsort
SELECT + col1 * + col2 AS col0, + 5 * - - col0 * - col1 FROM tab1 AS cor0 WHERE NOT + col0 <> col2 * - col0 + - col1
----

query II rowsort
SELECT ALL + col0 + + + 84 AS col1, - col2 + 48 + col2 * col2 FROM tab2 AS cor0
----
130
554
148
1608
159
3354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73 * - + 4 * col0, col1 col0 FROM tab1
----
-14892
14
-24820
5
-26572
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT SUM( DISTINCT + 71 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1229
SELECT SUM ( DISTINCT + 71 ) AS col1 FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col2 col1 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT 92 AS col1, + col0 FROM tab2
----
92
46
92
64
92
75

query II rowsort
SELECT - col1 AS col2, + col1 + 54 AS col0 FROM tab0
----
-1
55
-21
75
-81
135

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT + col2 + - + ( + CAST( - 73 AS SIGNED ) ) - - 85 FROM tab0 AS cor0
----
168
205
257

skipif mysql # not compatible
query I rowsort label-1234
SELECT + col2 + - + ( + CAST ( - 73 AS INTEGER ) ) - - 85 FROM tab0 AS cor0
----
168
205
257

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT ALL - 95 + - 85 DIV + col2 AS col1 FROM tab0 AS cor0
----
-103
-95
-96

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - 95 + - 85 / + col2 AS col1 FROM tab0 AS cor0
----
-103
-95
-96

query I rowsort
SELECT col2 + - col1 FROM tab2 AS cor0 WHERE - col1 = + + col1 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE 17 NOT BETWEEN ( col2 * col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT 51 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + + col2 * col1 col2 FROM tab1
----
1358
309
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - 23 * ( SUM( col2 ) ) FROM tab0
----
-3588

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - 23 * ( SUM ( col2 ) ) FROM tab0
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1241
SELECT ALL * FROM tab2 WHERE NOT - col1 + CAST( + col2 - col0 * - 87 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1241
SELECT ALL * FROM tab2 WHERE NOT - col1 + CAST ( + col2 - col0 * - 87 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT + 87 * COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 + 54 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + 87 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 + 54 = NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col1 IN ( - 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col1 + ( 91 ) FROM tab2
----
142
158
168

query I rowsort
SELECT + col0 + 59 * 29 AS col0 FROM tab0
----
1726
1798
1808

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT - 22 * COUNT( - ( + ( col0 ) ) ) + 8 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - 22 * COUNT ( - ( + ( col0 ) ) ) + 8 AS col2 FROM tab0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN ( ( 53 ) ) AND ( NULL )
----

query I rowsort
SELECT ALL + ( - col0 ) - col1 AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT - ( - CAST( col1 AS SIGNED ) ) FROM tab2 WHERE NOT + 40 * 10 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1252
SELECT - ( - CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE NOT + 40 * 10 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * 72 + col1 AS col2 FROM tab2
----
1707
2957
4243

query III rowsort
SELECT * FROM tab1 WHERE - 95 * + 20 <= ( 20 ) - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 66 / 25 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 53 FROM tab2 WHERE NOT 63 NOT BETWEEN ( + 87 / col1 - 53 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT 43 * COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ) - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT 43 * COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ) - col0 )
----
0

query I rowsort
SELECT ALL col2 * - 42 AS col0 FROM tab2 AS cor0
----
-1680
-2436
-966

query I rowsort
SELECT DISTINCT - 51 FROM tab1 cor0 WHERE NOT + 68 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT 22 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1261
SELECT 22 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + SUM( - col2 ) + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT + SUM ( - col2 ) + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - - ( + col1 ) * 73 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT col2 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT + 49 + MIN( col2 ) DIV - 19 col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1267
SELECT + 49 + MIN ( col2 ) / - 19 col2 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT ALL + col0 * - col2 + + 77 DIV + ( col2 ) FROM tab1 AS cor0
----
-4896
-5014
-6187

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + col0 * - col2 + + 77 / + ( col2 ) FROM tab1 AS cor0
----
-4896
-5014
-6187

query I rowsort
SELECT DISTINCT - 68 + + 39 AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1270
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col0 col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 WHERE + ( 14 ) - col1 NOT IN ( 51 * 98 )
----
210
3807
99

query I rowsort
SELECT DISTINCT 70 + - col2 + col1 * - 60 FROM tab0
----
-1200
-4837
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1274
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN - CAST( NULL AS DECIMAL ) AND + col2 * col2
----

skipif mysql # not compatible
query III rowsort label-1274
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN - CAST ( NULL AS REAL ) AND + col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 22 col1 FROM tab0
----
-1034
-2178
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT + - 71 DIV col1 * - 64 AS col0 FROM tab2 AS cor0
----
0
64
64

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - 71 / col1 * - 64 AS col0 FROM tab2 AS cor0
----
0
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT CAST( + 1 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1277
SELECT CAST ( + 1 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT + + 48 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-1278
SELECT + + 48 / + col1 AS col0 FROM tab1 AS cor0
----
1
3
9

query I rowsort
SELECT ALL + 62 + col0 FROM tab1
----
113
147
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1280
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= CAST( 78 AS SIGNED ) - col0
----

skipif mysql # not compatible
query III rowsort label-1280
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= CAST ( 78 AS INTEGER ) - col0
----

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

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + MIN( ALL - - ( 23 ) ) + - COUNT( ( 35 ) - col0 ) col0 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1283
SELECT + MIN ( ALL - - ( 23 ) ) + - COUNT ( ( 35 ) - col0 ) col0 FROM tab2
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 97 ) BETWEEN NULL AND 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 26 * - col2 AS col1 FROM tab1 AS cor0
----
-1534
-1768
-2496

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - + ( 80 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + + ( + 95 ) * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

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

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - MIN ( + 9 ) AS col1 FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * + col2 col0 FROM tab1 AS cor0
----
3717
4284
6048

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col0 * - - ( + col2 ) + - 77 * - 52 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) = ( + 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT + SUM( ALL + col1 ) AS col1, 2 FROM tab0
----
103
2

skipif mysql # not compatible
query II rowsort label-1297
SELECT + SUM ( ALL + col1 ) AS col1, 2 FROM tab0
----
103
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 94 * + col0 + col1 / col1 AND ( + col0 ) + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1298
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 94 * + col0 + col1 / col1 AND ( + col0 ) + - col1
----
0

query I rowsort
SELECT ALL col2 + + 45 - col0 FROM tab1 AS cor0
----
19
22
90

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

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

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

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

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

query I rowsort
SELECT + 60 + - col0 + col0 + 13 FROM tab2
----
73
73
73

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

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

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

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * - col2 AND NULL
----

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

query I rowsort
SELECT - col0 * + 59 FROM tab2 AS cor0
----
-2714
-3776
-4425

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 40 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( - CAST( + 8 AS SIGNED ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( - CAST ( + 8 AS INTEGER ) ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - + col1 + 84 FROM tab1 AS cor0
----
37
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL - COUNT( * ) + - 71 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - COUNT ( * ) + - 71 FROM tab1
----
-74

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 + - 0 col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - 65 + - col2 FROM tab0
----
-112
-164
-75

query I rowsort
SELECT - 94 + + - col0 + + col1 AS col1 FROM tab2
----
-102
-81
-89

query III rowsort
SELECT * FROM tab1 WHERE + 66 NOT BETWEEN ( - col0 ) AND ( - + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 85 col1, 25 AS col0, - col0 AS col0 FROM tab1
----
9 values hashing to 66fb010a4ef5ffa293e888e3f5aa3f61

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT ALL - + col1 DIV + - col2 + + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - + col1 / + - col2 + + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - col0 * - 30 + + - 73 * + col0 DIV col0 FROM tab2 cor0
----
1307
1847
2177

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - col0 * - 30 + + - 73 * + col0 / col0 FROM tab2 cor0
----
1307
1847
2177

query I rowsort
SELECT DISTINCT 26 * + + 11 + + 18 + 92 + - + col2 FROM tab1 AS cor0
----
300
328
337

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

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

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

query II rowsort
SELECT col2 + + col2 AS col1, col2 AS col1 FROM tab2 WHERE NULL >= 2
----

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

query I rowsort
SELECT 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + + 13 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

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

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

query I rowsort
SELECT ( - - ( - 57 ) ) FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 39 * COUNT( + 46 ) + + + COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 39 * COUNT ( + 46 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL SUM( + col0 ) * + 12 col0 FROM tab0 AS cor0 WHERE ( NOT + - col1 NOT IN ( + col0 / + 60 + - + 59 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1334
SELECT ALL SUM ( + col0 ) * + 12 col0 FROM tab0 AS cor0 WHERE ( NOT + - col1 NOT IN ( + col0 / + 60 + - + 59 ) )
----
NULL

query I rowsort
SELECT col1 * + - 14 + + 42 FROM tab2 AS cor0
----
-1036
-672
-896

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 62, + col2, - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - - COUNT( - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1337
SELECT - - COUNT ( - col1 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1338
SELECT * FROM tab1 WHERE NOT NULL >= - - CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1338
SELECT * FROM tab1 WHERE NOT NULL >= - - CAST ( - col2 AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > + - 84
----

query I rowsort
SELECT DISTINCT - col0 * - 47 FROM tab1
----
2397
3995
4277

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT COUNT ( * ) / + 40 AS col2 FROM tab2
----
0

query II rowsort
SELECT ALL + col0, - 40 * + col1 FROM tab2
----
46
-2040
64
-3080
75
-2680

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

query I rowsort
SELECT ( - - 4 ) FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 8 * - - COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1345
SELECT 8 * - - COUNT ( * ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT - col0 * 83 AS col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT col1 * + col0 + col1 - - col0 + + 78 FROM tab1 AS cor0
----
4493
593
857

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1348
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST( ( + + 12 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1348
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST ( ( + + 12 ) AS INTEGER )
----

query I rowsort
SELECT 76 * - - col2 + col0 AS col2 FROM tab1 AS cor0
----
4569
5259
7347

query I rowsort
SELECT DISTINCT col2 + 23 * + col0 * + 94 FROM tab1
----
110358
183829
196810

query II rowsort
SELECT DISTINCT - col2 - + col0 * + col1, - col2 * + col2 * + + ( - col2 ) + ( - - 64 ) AS col0 FROM tab0
----
-1262
103887
-1837
1064
-196
970363

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + COUNT( * ) * - - 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1352
SELECT + COUNT ( * ) * - - 80 FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col0 * + 7 + - col0 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 75 * - ( + COUNT( DISTINCT + - col2 ) ) col1 FROM tab0 cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1354
SELECT + 75 * - ( + COUNT ( DISTINCT + - col2 ) ) col1 FROM tab0 cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT DISTINCT + CAST( NULL AS SIGNED ), 98 AS col1 FROM tab0 AS cor0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-1355
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 98 AS col1 FROM tab0 AS cor0
----
NULL
98

query I rowsort
SELECT DISTINCT - ( 47 ) FROM tab0 AS cor0
----
-47

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

query I rowsort
SELECT 33 - - + col1 * - 38 AS col1 FROM tab0 AS cor0
----
-3045
-5
-765

query I rowsort
SELECT ALL col2 + - ( col1 ) + + 44 + ( - 46 ) + - + col1 * + + col2 * - - 50 * - col2 FROM tab2 cor0
----
11269389
1348920
6159961

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

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

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT - col2 = col1
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, + col1 * - 12 col0 FROM tab1
----
51
-168
85
-60
91
-564

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

query I rowsort
SELECT DISTINCT col1 * + 22 AS col1 FROM tab2 AS cor0
----
1122
1474
1694

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT 78 * COUNT( * ) col1 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1368
SELECT 78 * COUNT ( * ) col1 FROM tab2
----
234

query I rowsort
SELECT ALL col1 * col0 * + 97 FROM tab2
----
227562
478016
487425

query I rowsort
SELECT + 29 * ( + col1 ) FROM tab1
----
1363
145
406

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - 95 * + SUM( + col1 ) AS col0 FROM tab1
----
-6270

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 95 * + SUM ( + col1 ) AS col0 FROM tab1
----
-6270

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( + 16 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 55 + - col0 FROM tab0
----
-32
-42
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - 65 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - 65 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-62

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

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

query I rowsort
SELECT + col1 * 79 * + - 58 AS col2 FROM tab1 AS cor0
----
-215354
-22910
-64148

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT ( + 88 ) - 32 + + col1 DIV + ( + - col2 ) * - col1 * + 64, col0 col1 FROM tab1 AS cor0
----
56
51
56
85
56
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT ( + 88 ) - 32 + + col1 / + ( + - col2 ) * - col1 * + 64, col0 col1 FROM tab1 AS cor0
----
56
51
56
85
56
91

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

query I rowsort
SELECT DISTINCT col0 * 25 AS col1 FROM tab1 AS cor0
----
1275
2125
2275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL COUNT( ALL - 59 ) + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL COUNT ( ALL - 59 ) + 31 FROM tab2
----
34

query I rowsort
SELECT DISTINCT ( 56 ) - 17 FROM tab2
----
39

query I rowsort
SELECT + col2 + - col1 * - col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT + col2 * - + col2 FROM tab1 WHERE col0 + + + col0 + - col1 NOT IN ( col1 + + + col1, - col1 * + 62 + + ( - + 6 ) )
----
-3481
-4624
-9216

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE col0 * - - col1 IN ( - + 91, 40, + - col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1388
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + + 73 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT COUNT( * ) + + 35 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-1389
SELECT COUNT ( * ) + + 35 FROM tab2
----
38

query II rowsort
SELECT DISTINCT col1 - + + col0 AS col1, 0 * col1 AS col0 FROM tab2 AS cor0
----
-8
0
13
0
5
0

query II rowsort
SELECT - col1 * + col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL COUNT( * ) + - 64 FROM tab2 cor0 WHERE col0 + - 40 + + 91 BETWEEN - col0 AND + + col2 * col0
----
-61

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL COUNT ( * ) + - 64 FROM tab2 cor0 WHERE col0 + - 40 + + 91 BETWEEN - col0 AND + + col2 * col0
----
-61

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

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

query I rowsort
SELECT + 79 * col0 FROM tab2 cor0
----
3634
5056
5925

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1397
SELECT DISTINCT + 13 col0, - 72 * - CAST( NULL AS SIGNED ) - + + col1 FROM tab2 AS cor0
----
13
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1397
SELECT DISTINCT + 13 col0, - 72 * - CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 AS cor0
----
13
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1399
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 28 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * + 28 col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1400
SELECT DISTINCT + 30 DIV - col2 - col2 FROM tab1 WHERE NOT - CAST( 49 AS DECIMAL ) * + - col1 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + 30 / - col2 - col2 FROM tab1 WHERE NOT - CAST ( 49 AS REAL ) * + - col1 IS NULL
----
-59
-68
-96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ALL col1, + col2 DIV - - col0 + - + col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL col1, + col2 / - - col0 + - + col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT + - ( - col2 ) + - CAST( NULL AS SIGNED ) / col0 * - col2 FROM tab0 AS cor0 WHERE NULL <= 97
----

skipif mysql # not compatible
query I rowsort label-1404
SELECT + - ( - col2 ) + - CAST ( NULL AS INTEGER ) / col0 * - col2 FROM tab0 AS cor0 WHERE NULL <= 97
----

query II rowsort
SELECT - - col0 AS col0, col1 + col0 FROM tab2 AS cor0
----
46
97
64
141
75
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT ALL 60 * CAST( NULL AS SIGNED ) + + 98 - + 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL 60 * CAST ( NULL AS INTEGER ) + + 98 - + 71 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT - ( col2 ) DIV col0 + - - col2 * - ( + col2 ) FROM tab0 AS cor0
----
-100
-2212
-9802

skipif mysql # not compatible
query I rowsort label-1408
SELECT - ( col2 ) / col0 + - - col2 * - ( + col2 ) FROM tab0 AS cor0
----
-100
-2212
-9802

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( - 54 )
----

query I rowsort
SELECT DISTINCT - 99 * col2 * - col1 + - - 69 + + 97 * - col1 + - col2 + col2 * + 47 FROM tab1 AS cor0
----
136183
31503
315042

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, col2, - col2 )
----

query I rowsort
SELECT + + col1 + - ( - + col1 ) + col1 * + 46 AS col0 FROM tab1 AS cor0
----
2256
240
672

query II rowsort
SELECT + col2, - 84 * + - col1 AS col1 FROM tab1
----
59
420
68
3948
96
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT + 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-1417
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 20 - 69 FROM tab2
----
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 / col2 + - col0 IS NOT NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 42 IS NULL
----

query I rowsort
SELECT DISTINCT - 21 FROM tab2 WHERE NOT - + 35 <> - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + ( + - MIN( col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1424
SELECT + ( + - MIN ( col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT - + CAST( - + col1 AS SIGNED ) * - - 96 AS col0 FROM tab0 cor0
----
2016
7776
96

skipif mysql # not compatible
query I rowsort label-1425
SELECT - + CAST ( - + col1 AS INTEGER ) * - - 96 AS col0 FROM tab0 cor0
----
2016
7776
96

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

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

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

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

query I rowsort
SELECT col1 * + col0 * - 84 FROM tab0
----
-102060
-153468
-8148

query II rowsort
SELECT - 30, col2 * + col0 AS col1 FROM tab1
----
-30
4896
-30
5015
-30
6188

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) * - col2 > 64
----

query I rowsort
SELECT col2 * - 25 FROM tab1
----
-1475
-1700
-2400

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + 67 = NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 > col0 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 IS NULL
----

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

query I rowsort
SELECT 7 - - 4 FROM tab1 AS cor0
----
11
11
11

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 95 + - col2 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1168
-184
427

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - 88 * + 68 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL + ( - + col0 ) + - col1 + + col0 DIV - col0 col2 FROM tab0 AS cor0
----
-109
-97
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1442
SELECT ALL + ( - + col0 ) + - col1 + + col0 / - col0 col2 FROM tab0 AS cor0
----
-109
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) - - + col1 col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT col0 + + col2 DIV col0 + - - 28 AS col0 FROM tab1 cor0
----
113
119
80

skipif mysql # not compatible
query I rowsort label-1444
SELECT col0 + + col2 / col0 + - - 28 AS col0 FROM tab1 cor0
----
113
119
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL - ( - - MIN( DISTINCT + col0 ) ) FROM tab1 WHERE - + col2 NOT IN ( + ( - + col0 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - ( - - MIN ( DISTINCT + col0 ) ) FROM tab1 WHERE - + col2 NOT IN ( + ( - + col0 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT + MIN( ALL + + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1447
SELECT + MIN ( ALL + + 45 ) FROM tab2
----
45

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL 21 + + CAST( - AVG ( 73 ) AS SIGNED ) * - - 84 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL 21 + + CAST ( - AVG ( 73 ) AS INTEGER ) * - - 84 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT CAST( NULL AS SIGNED ) * + col1 + - 1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1452
SELECT CAST ( NULL AS INTEGER ) * + col1 + - 1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT COUNT( ALL - 92 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1455
SELECT COUNT ( ALL - 92 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1456
SELECT col0 col0, - 50 DIV - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1456
SELECT col0 col0, - 50 / - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

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

query I rowsort
SELECT - - 2 * + 69 FROM tab0 AS cor0
----
138
138
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL + COUNT( * ) + - 63 AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + COUNT ( * ) + - 63 AS col2 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1460
SELECT - 63 AS col0, - col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1460
SELECT - 63 AS col0, - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

query II rowsort
SELECT col1 AS col1, 81 * col0 FROM tab0 AS cor0
----
1
7857
21
7047
81
1215

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 NOT BETWEEN + 30 * 74 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT + CAST( - col2 AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT ALL col0 + col1 * - 70 FROM tab2
----
-3524
-4615
-5326

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

query I rowsort
SELECT 47 + col2 * - + col0 FROM tab1
----
-4849
-4968
-6141

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1467
SELECT - 84 * + CAST( NULL AS DECIMAL ) AS col2, + col2 + + col1 AS col1 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-1467
SELECT - 84 * + CAST ( NULL AS REAL ) AS col2, + col2 + + col1 AS col1 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 + + col1 col0, 25 + + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
144
48
160
83
170
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - COUNT( * ) * - - 63 AS col0 FROM tab2
----
-189

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

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

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

query I rowsort
SELECT col1 * + + col0 * + - col1 - + + col2 AS col1 FROM tab1 WHERE ( NULL NOT BETWEEN + 44 + - col2 AND - 51 + - 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col1 ) IS NULL
----

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

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

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

query I rowsort
SELECT 16 + + col0 + + col0 + - + col0 AS col0 FROM tab0
----
103
113
31

query I rowsort
SELECT ALL + 49 * 96 FROM tab2
----
4704
4704
4704

query I rowsort
SELECT col1 + - 0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - 40 * - col0 + + + col2 FROM tab0
----
3490
3979
647

query I rowsort
SELECT 11 + - col1 AS col2 FROM tab1 AS cor0
----
-3
-36
6

query I rowsort
SELECT ALL + - 86 * + 2 FROM tab1 AS cor0
----
-172
-172
-172

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

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

query I rowsort
SELECT - col2 * + - col1 * col0 - - - col0 AS col0 FROM tab0 AS cor0
----
18183
57090
9506

query I rowsort
SELECT - - col0 * - col2 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT - 47 IS NOT NULL )
----
-752
-880
-9702

query I rowsort
SELECT ALL - col0 * col0 * + col1 * + col2 FROM tab0 AS cor0
----
-1589490
-856575
-931491

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 - col2 - - 86 + + - col2 < - 18
----
46

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

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

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

query II rowsort
SELECT ALL col1 AS col2, 57 + - 56 AS col1 FROM tab2
----
51
1
67
1
77
1

query I rowsort
SELECT ALL col2 * + - 30 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT - 25 * - COUNT( * ) * 87 FROM tab1
----
6525

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - 25 * - COUNT ( * ) * 87 FROM tab1
----
6525

query III rowsort
SELECT col1 AS col2, 33 AS col1, 29 FROM tab0
----
9 values hashing to 81504e94c1cd2f3887e0b65729fb25e4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT - COUNT( * ) * COUNT( * ) DIV + 12 FROM tab0 WHERE NOT NULL < - col1 * - 76 DIV + 93 - 68
----
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT - COUNT ( * ) * COUNT ( * ) / + 12 FROM tab0 WHERE NOT NULL < - col1 * - 76 / + 93 - 68
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT ALL + 29 DIV - MAX( - col0 ) + - 69 AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + 29 / - MAX ( - col0 ) + - 69 AS col0 FROM tab2 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * + 6 + + 33 - + col1 col0 FROM tab1 AS cor0
----
-290
-299
-332

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL - SUM( - 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - SUM ( - 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT - CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 94 * + 97 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 94 * + 97 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1501
SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-45
NULL
-55
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-45
NULL
-55
NULL
27
NULL

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

query II rowsort
SELECT - 68 AS col0, + col1 FROM tab0
----
-68
1
-68
21
-68
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT ALL - + CAST( col1 AS SIGNED ) + - 9 FROM tab0 WHERE - ( + + col0 ) IS NOT NULL
----
-10
-30
-90

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - + CAST ( col1 AS INTEGER ) + - 9 FROM tab0 WHERE - ( + + col0 ) IS NOT NULL
----
-10
-30
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT DISTINCT + CAST( - 30 AS SIGNED ) * + - col1 + - 31 FROM tab0
----
-1
2399
599

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + CAST ( - 30 AS INTEGER ) * + - col1 + - 31 FROM tab0
----
-1
2399
599

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - ( - 0 ) * - COUNT( - 82 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT - ( - 0 ) * - COUNT ( - 82 ) FROM tab1
----
0

query I rowsort
SELECT ALL 95 + - col0 FROM tab2
----
20
31
49

query I rowsort
SELECT + 43 * + col1 * - - 39 AS col0 FROM tab0
----
135837
1677
35217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT - ( + + CAST( col0 AS SIGNED ) ) + + col1 * CAST( - col0 AS SIGNED ) + - + 36 FROM tab1
----
-4404
-546
-801

skipif mysql # not compatible
query I rowsort label-1509
SELECT - ( + + CAST ( col0 AS INTEGER ) ) + + col1 * CAST ( - col0 AS INTEGER ) + - + 36 FROM tab1
----
-4404
-546
-801

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

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

query I rowsort
SELECT + 28 + - - col1 AS col1 FROM tab0
----
109
29
49

query I rowsort
SELECT ALL col2 - + 88 FROM tab0
----
-41
-78
11

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

query I rowsort
SELECT + + 20 + + + col0 FROM tab0 AS cor0
----
107
117
35

onlyif mysql # DIV for integer division: 
query II rowsort label-1515
SELECT + + col0 + + + 0 + - - col0, 25 DIV - 10 col0 FROM tab2 AS cor0
----
128
-2
150
-2
92
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1515
SELECT + + col0 + + + 0 + - - col0, 25 / - 10 col0 FROM tab2 AS cor0
----
128
-2
150
-2
92
-2

query I rowsort
SELECT ALL - 82 - + + col1 FROM tab2
----
-133
-149
-159

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

query I rowsort
SELECT ALL 95 - col0 FROM tab1
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - 94 * COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1519
SELECT - 94 * COUNT ( * ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT ALL 98 * + col1 * + + col2 FROM tab0 AS cor0
----
20580
373086
9702

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

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

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

query I rowsort
SELECT DISTINCT + ( 37 ) FROM tab2 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - + COUNT( * ) * MAX( + col1 ) + 72 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1524
SELECT - + COUNT ( * ) * MAX ( + col1 ) + 72 FROM tab2 AS cor0
----
-159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT COUNT( * ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
-9

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

query I rowsort
SELECT + col1 * 80 AS col2 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL - ( - SUM( - 43 ) ) AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - ( - SUM ( - 43 ) ) AS col1 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL 88 * + COUNT( * ) col1 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1529
SELECT ALL 88 * + COUNT ( * ) col1 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT SUM( - 52 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1530
SELECT SUM ( - 52 ) FROM tab1 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col0 * - + col1 + - 14
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1533
SELECT ALL - - col2 FROM tab1 cor0 WHERE 16 + + + CAST( - + ( - col2 ) AS DECIMAL ) * - - col2 <= + col2
----

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - - col2 FROM tab1 cor0 WHERE 16 + + + CAST ( - + ( - col2 ) AS REAL ) * - - col2 <= + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + + SUM( + col1 ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-1536
SELECT + + SUM ( + col1 ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT + col0 + + + col1 DIV + col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1537
SELECT + col0 + + + col1 / + col0 FROM tab1 cor0
----
51
85
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 * + 94 col0 FROM tab2 AS cor0 WHERE + col1 / - col0 > NULL
----

query I rowsort
SELECT + AVG ( DISTINCT + - 81 ) FROM tab2 AS cor0 WHERE - col2 + - col2 BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT ALL - col0 + 43 FROM tab1 cor0
----
-42
-48
-8

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

query I rowsort
SELECT DISTINCT - 65 + - 87 AS col1 FROM tab1
----
-152

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

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

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

query I rowsort
SELECT col1 * 99 * - - col1 FROM tab2
----
257499
444411
586971

query I rowsort
SELECT 21 * 40 AS col0 FROM tab2
----
840
840
840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT col0 * - col1, col0 / + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

skipif mysql # not compatible
query II rowsort label-1548
SELECT col0 * - col1, col0 / + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

query II rowsort
SELECT col2 + + col0 * + col1, col1 FROM tab1
----
4345
47
484
5
810
14

query I rowsort
SELECT 75 + + col1 AS col1 FROM tab2
----
126
142
152

query I rowsort
SELECT DISTINCT col0 - 97 AS col0 FROM tab0
----
-10
-82
0

query II rowsort
SELECT DISTINCT 35 AS col1, col1 FROM tab0
----
35
1
35
21
35
81

query II rowsort
SELECT + col2, + col0 * - col2 * 97 + + 19 AS col0 FROM tab1 AS cor0
----
59
-486436
68
-600217
96
-474893

query II rowsort
SELECT ALL + col0 AS col1, - 62 AS col1 FROM tab0 AS cor0
----
15
-62
87
-62
97
-62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 99 * + col0 <> 15
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL - - CAST( MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - - CAST ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + + + 66 <= - col1
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * - col2 * 16 * + col2 BETWEEN - col2 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - MIN( ALL - 40 ) * + 77 AS col2 FROM tab2
----
3080

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - MIN ( ALL - 40 ) * + 77 AS col2 FROM tab2
----
3080

query I rowsort
SELECT + col0 * - 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + COUNT( * ) * 39 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1564
SELECT + COUNT ( * ) * 39 FROM tab0
----
117

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT - MIN( DISTINCT + - 50 ) AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT - MIN ( DISTINCT + - 50 ) AS col1 FROM tab0
----
50

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT - CAST( - - 17 AS SIGNED ) + - COUNT( - col0 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1571
SELECT - CAST ( - - 17 AS INTEGER ) + - COUNT ( - col0 ) FROM tab1
----
-20

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + ( + 69 ), + col2, - 69 )
----

query I rowsort
SELECT + 66 AS col1 FROM tab2 AS cor0 WHERE 71 - - 17 * 80 >= 79 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> + col1
----

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL ( + COUNT( * ) ) + + 25 AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL ( + COUNT ( * ) ) + + 25 AS col0 FROM tab0 AS cor0
----
28

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

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

query I rowsort
SELECT DISTINCT 17 + col0 FROM tab1
----
102
108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 WHERE 56 <> - - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 WHERE 56 <> - - col1
----
-3

query I rowsort
SELECT - col0 - - 89 + col1 AS col2 FROM tab0
----
-7
155
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * + 28 + 56 < + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1583
SELECT * FROM tab0 WHERE - ( + CAST( + col0 AS SIGNED ) ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1583
SELECT * FROM tab0 WHERE - ( + CAST ( + col0 AS INTEGER ) ) >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1584
SELECT col0 + - - 14 AS col2, - 57 + - CAST( + col2 AS SIGNED ) + - 43 - - col1 * col2 + col1 DIV 17 * - - col0 FROM tab0 AS cor0
----
101
187
111
-100
29
3720

skipif mysql # not compatible
query II rowsort label-1584
SELECT col0 + - - 14 AS col2, - 57 + - CAST ( + col2 AS INTEGER ) + - 43 - - col1 * col2 + col1 / 17 * - - col0 FROM tab0 AS cor0
----
101
187
111
-100
29
3720

query I rowsort
SELECT - 90 * + col1 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL + 7 + - 10 + + CAST( + - col2 AS SIGNED ) - ( + - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
363
4206
615

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 7 + - 10 + + CAST ( + - col2 AS INTEGER ) - ( + - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
363
4206
615

query II rowsort
SELECT + col1 AS col2, + col2 + - ( - 33 ) FROM tab1 AS cor0
----
14
129
47
101
5
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT ALL COUNT( col1 ) DIV + 63 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1588
SELECT ALL COUNT ( col1 ) / + 63 col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + 58 FROM tab1 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - COUNT( * ) * 75 col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1590
SELECT - COUNT ( * ) * 75 col2 FROM tab0 AS cor0
----
-225

query I rowsort
SELECT DISTINCT col0 * - 79 AS col2 FROM tab1 AS cor0
----
-4029
-6715
-7189

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT col1 * - ( + - col1 ) * + CAST( 49 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
108241
1225
9604

skipif mysql # not compatible
query I rowsort label-1593
SELECT col1 * - ( + - col1 ) * + CAST ( 49 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
108241
1225
9604

query I rowsort
SELECT DISTINCT + 23 FROM tab0 AS cor0 WHERE - col1 / - 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - ( col0 ) col1 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL - MIN( ALL + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - MIN ( ALL + 40 ) FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT ALL - COUNT( * ), 81 AS col1 FROM tab2
----
-3
81

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - COUNT ( * ), 81 AS col1 FROM tab2
----
-3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT 82 + ( - 91 ) + - - MIN( - 50 ) col1 FROM tab2
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1598
SELECT 82 + ( - 91 ) + - - MIN ( - 50 ) col1 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT 43 + + 43 AS col0 FROM tab1 WHERE + col2 / col0 * col2 = - + col0
----

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

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

skipif mysql # not compatible
query I rowsort label-1601
SELECT - col0 * ( - col1 ) - - - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + 55 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + 82 + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
73

skipif mysql # not compatible
query I rowsort label-1602
SELECT + 82 + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
73

query I rowsort
SELECT + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + col0 col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT + 14 + 88 + - + 77 AS col1 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - MIN( - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - MIN ( - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - + COUNT( * ) * - - 87 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = + 27
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT - + COUNT ( * ) * - - 87 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = + 27
----
0

query II rowsort
SELECT 84 + - - col0 AS col1, + 2 FROM tab1 AS cor0
----
135
2
169
2
175
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + 35 + COUNT( * ) FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 35 + COUNT ( * ) FROM tab0 cor0
----
38

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT ALL 30 - - + 73 AS col1 FROM tab0 cor0
----
103
103
103

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE NULL NOT IN ( + + 77 + - col0 * col1 * + col0, - col0 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IN ( - 25 / + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IN ( - 25 / + - col1 )
----
0

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

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

query I rowsort
SELECT - col0 - 22 AS col0 FROM tab0
----
-109
-119
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT + + MAX( DISTINCT col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + + MAX ( DISTINCT col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
141

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-1618
SELECT CAST( NULL AS SIGNED ) * + MIN( DISTINCT + - col1 ) * - COUNT( * ) + 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + - col1 ) * - COUNT ( * ) + 37 FROM tab1
----
NULL

query I rowsort
SELECT ( - - 90 ) FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 90 >= - 68
----

query I rowsort
SELECT ALL + 34 * - col1 - col1 * - 81 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - 37 + 23 AND NULL
----

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

query I rowsort
SELECT ALL - 56 + col2 FROM tab0 cor0
----
-46
-9
43

query I rowsort
SELECT 53 * - - col1 AS col0 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT + col0 * + col1 * - col1 + - col1 * + col2 FROM tab2 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT - 91 * + COUNT( * ) * + ( - - ( + + COUNT( * ) ) ), ( + - COUNT( * ) ) AS col0 FROM tab2
----
-819
-3

skipif mysql # not compatible
query II rowsort label-1626
SELECT - 91 * + COUNT ( * ) * + ( - - ( + + COUNT ( * ) ) ), ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-819
-3

query I rowsort
SELECT ALL - col1 * 40 AS col0 FROM tab1
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1628
SELECT 43 * col2, col2 AS col1, - CAST( - col0 AS SIGNED ) + + col0 + - + col1 AS col0 FROM tab0
----
9 values hashing to 7033eed493c3b59c4be59565bb6f87bb

skipif mysql # not compatible
query III rowsort label-1628
SELECT 43 * col2, col2 AS col1, - CAST ( - col0 AS INTEGER ) + + col0 + - + col1 AS col0 FROM tab0
----
9 values hashing to 7033eed493c3b59c4be59565bb6f87bb

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

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 80 AND NULL
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - + COUNT( * ) * + 77 FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - + COUNT ( * ) * + 77 FROM tab1 cor0
----
-231

query I rowsort
SELECT ALL - + col0 + + 35 * 77 FROM tab0 AS cor0
----
2598
2608
2680

query I rowsort
SELECT + - col0 - 44 AS col1 FROM tab1 AS cor0
----
-129
-135
-95

query I rowsort
SELECT ALL - 9 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT 8 - - + 28 * - 2 DIV + col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1638
SELECT 8 - - + 28 * - 2 / + col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1639
SELECT + 11 DIV 47 - + col0 + + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 11 / 47 - + col0 + + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

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

query I rowsort
SELECT ALL 9 + 55 FROM tab1
----
64
64
64

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

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

query II rowsort
SELECT ALL + 94 * - 70 AS col1, ( col1 ) AS col2 FROM tab1
----
-6580
14
-6580
47
-6580
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT + COUNT( * ) * - 91 AS col0, 70 FROM tab1 AS cor0
----
-273
70

skipif mysql # not compatible
query II rowsort label-1646
SELECT + COUNT ( * ) * - 91 AS col0, 70 FROM tab1 AS cor0
----
-273
70

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL 28 * + + SUM( - col1 ) * - 20 FROM tab2 cor0
----
109200

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL 28 * + + SUM ( - col1 ) * - 20 FROM tab2 cor0
----
109200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL - COUNT( * ) + + MAX( + col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - COUNT ( * ) + + MAX ( + col1 ) FROM tab1 AS cor0
----
44

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT - + MAX ( ALL + 91 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + - + COUNT( * ) + - - 45 AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) + - - 45 AS col1 FROM tab0 AS cor0
----
39

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

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

query II rowsort
SELECT col0 + 12 AS col1, ( - col1 ) FROM tab1
----
103
-47
63
-14
97
-5

query I rowsort
SELECT ALL 0 * - 30 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT 31 DIV - col0 + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1660
SELECT 31 / - col0 + col1 AS col1 FROM tab2
----
51
67
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) col0 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) / col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT ALL + 87 DIV col1 AS col2 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 87 / col1 AS col2 FROM tab1
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT SUM( DISTINCT col0 ) * - + COUNT( * ) + - 11 + - ( + - ( + + 97 ) ) col1 FROM tab2
----
-469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT DISTINCT SUM ( DISTINCT col0 ) * - + COUNT ( * ) + - 11 + - ( + - ( + + 97 ) ) col1 FROM tab2
----
-469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - SUM( DISTINCT 42 ) col0 FROM tab1
----
-42

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

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

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

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 cor0 WHERE + col1 <> + + ( col1 ) * + col1 + - col1
----
-97
-97
-97

query I rowsort
SELECT DISTINCT ( 44 ) + - 38 FROM tab1 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT - col2 + - 17 AS col1 FROM tab0 AS cor0 WHERE NOT - 35 IS NULL
----
-116
-27
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT 74 + + - COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 74 + + - COUNT ( * ) FROM tab0
----
71

query II rowsort
SELECT col0 AS col2, + 50 / + 19 * 28 AS col2 FROM tab1 AS cor0 WHERE 62 * + - ( - + col0 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 60 * + 27 * - + 88 FROM tab0
----
-142560

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT + COUNT( * ) * 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT + COUNT ( * ) * 7 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + SUM( - + 49 ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-1679
SELECT + SUM ( - + 49 ) FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + COUNT( * ) * - 79 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1680
SELECT + COUNT ( * ) * - 79 FROM tab2 AS cor0
----
-237

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

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

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT - 38 - col1 FROM tab1 WHERE NULL <> + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT MAX( ALL 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1686
SELECT MAX ( ALL 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + SUM( + 68 ) + MIN( ALL col1 ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + SUM ( + 68 ) + MIN ( ALL col1 ) AS col0 FROM tab2
----
255

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col1 + + col2 ) NOT BETWEEN 88 AND NULL
----
85
5
59

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

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

query I rowsort
SELECT 52 + 5 FROM tab0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT CAST( - 93 AS SIGNED ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT CAST ( - 93 AS INTEGER ) FROM tab0
----
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - MAX( col0 ) AS col2 FROM tab1 WHERE NOT - 4 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1695
SELECT - MAX ( col0 ) AS col2 FROM tab1 WHERE NOT - 4 IS NULL
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 WHERE 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 WHERE 85 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT COUNT( * ) * 61 AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) * 61 AS col2 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1699
SELECT DISTINCT + 51 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 28 * CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + 51 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 28 * CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 59 ) NOT IN ( 3 * 25 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - ( + 47 ) > - 97
----

query I rowsort
SELECT col2 + - 3 FROM tab1 cor0
----
56
65
93

query I rowsort
SELECT 50 + - 78 FROM tab2 WHERE 50 + 53 * 13 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 21 FROM tab2
----
25
43
54

query I rowsort
SELECT DISTINCT 72 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
72

query I rowsort
SELECT + col0 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col1 FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 + - 71 )
----
-11
-34
98

query I rowsort
SELECT DISTINCT 73 * col2 AS col2 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT - + col0 DIV 71 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1709
SELECT - + col0 / 71 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 * 89 AS col1 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT ALL - + ( MIN( - col0 ) ) DIV 87 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - + ( MIN ( - col0 ) ) / 87 AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( 97 ) ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 51 - col0 * col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + 19 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( ( col2 ) ) AND ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 61 BETWEEN - col1 + + col2 * col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1715
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 61 BETWEEN - col1 + + col2 * col0 AND NULL
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT - ( + col2 ) DIV col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1717
SELECT - ( + col2 ) / col1 AS col2 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - 13 FROM tab1 WHERE NOT - col2 IS NULL
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT - ( - - 41 ) DIV + 4 AS col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1719
SELECT - ( - - 41 ) / + 4 AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 * + col2 IN ( - col1 * + col1 + - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1720
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 * + col2 IN ( - col1 * + col1 + - col2 )
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL + CAST( 6 AS SIGNED ) FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + CAST ( 6 AS INTEGER ) FROM tab1
----
6
6
6

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

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

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

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0 cor0 WHERE NOT col2 * - col2 > ( + 99 )
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IN ( col1 - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - + ( ( + col1 ) ) BETWEEN NULL AND - col0
----
1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - + ( ( + col1 ) ) BETWEEN NULL AND - col0
----
1

query I rowsort
SELECT ALL col1 * + col1 + + 11 FROM tab0
----
12
452
6572

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - MIN( ALL + col1 ) col2 FROM tab1
----
-5

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT + - col1 * + 10 BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT - - col2 + - col2 + + + 39 * - 11 FROM tab2 AS cor0
----
-429
-429
-429

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 * - 33 * col0 + - 91 * - col1 col0 FROM tab0 AS cor0
----
-3013
-32709
-58293

query I rowsort
SELECT + - 15 + ( + col0 ) FROM tab0 AS cor0
----
0
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab1 WHERE col2 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL SUM( ALL - - 70 ) + - - 67 AS col0 FROM tab1
----
277

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL SUM ( ALL - - 70 ) + - - 67 AS col0 FROM tab1
----
277

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * 27 + - col2 * + ( col1 - + 60 * - col1 ) NOT BETWEEN col0 AND - 80
----

query I rowsort
SELECT DISTINCT 39 + - ( - col1 ) + - col1 * col1 * + 74 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192384
-332080
-438630

query I rowsort
SELECT - 62 * - + 37 AS col1 FROM tab1
----
2294
2294
2294

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( + 95 )
----

query II rowsort
SELECT ALL 15 * + - 41, ( + 95 ) * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-615
4546
-615
9406
-615
971

onlyif mysql # DIV for integer division: 
query II rowsort label-1748
SELECT 48 DIV + - col1 AS col1, col1 * - + col2 + 71 AS col0 FROM tab2 cor0
----
0
-1102
0
-3009
0
-3815

skipif mysql # not compatible
query II rowsort label-1748
SELECT 48 / + - col1 AS col1, col1 * - + col2 + 71 AS col0 FROM tab2 cor0
----
0
-1102
0
-3009
0
-3815

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 55 / 50 + - col1 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) * + col2 * - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53, 21 col0 FROM tab0 AS cor0
----
53
21
53
21
53
21

query I rowsort
SELECT DISTINCT col1 * - 52 + col2 FROM tab2 cor0 WHERE NOT ( col1 * - col0 * - col0 + - col0 * col1 ) NOT BETWEEN + col0 - col2 * + col2 AND - ( 88 ) + - col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT DISTINCT col0 DIV 21 AS col2 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT col0 / 21 AS col2 FROM tab1 AS cor0
----
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT - MAX( DISTINCT + - col1 ) * MIN( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3825

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) * MIN ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3825

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + + col0 + - 0 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1759
SELECT ALL + - col0 DIV + - ( CAST( - - 11 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + - col0 / + - ( CAST ( - - 11 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
7
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 19 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 19 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 87 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT DISTINCT - COUNT( * ) AS col0, 3 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1762
SELECT DISTINCT - COUNT ( * ) AS col0, 3 FROM tab2 cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( - col2 ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT - COUNT( * ) * + 10 AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT - COUNT ( * ) * + 10 AS col2 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab1
----
-14
-47
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col2 * + 71 col1 FROM tab0
----
10
-710
47
-3337
99
-7029

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( + 3 ) = NULL
----

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

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

query II rowsort
SELECT ALL - + col1 + - + col0, col0 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + col0 < col1 - + + 54 * + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1774
SELECT MIN( DISTINCT - col2 ), CAST( NULL AS SIGNED ) * - AVG ( ALL - - col2 ) col2 FROM tab1
----
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1774
SELECT MIN ( DISTINCT - col2 ), CAST ( NULL AS INTEGER ) * - AVG ( ALL - - col2 ) col2 FROM tab1
----
-96
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT + - MAX( DISTINCT - - col2 ) AS col2, 76 FROM tab0 AS cor0
----
-99
76

skipif mysql # not compatible
query II rowsort label-1777
SELECT + - MAX ( DISTINCT - - col2 ) AS col2, 76 FROM tab0 AS cor0
----
-99
76

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

skipif mysql # not compatible
query III rowsort label-1778
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - + col1 + 9 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - 97 AND ( NULL )
----

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

query I rowsort
SELECT - col0 * col2 - - - col1 + + col0 FROM tab1 AS cor0
----
-4859
-4935
-6144

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT COUNT( * ) + - 40 AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + - 40 AS col1 FROM tab0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1784
SELECT ALL - col0 + + 6 * + 10 AS col2, CAST( - ( 84 ) AS SIGNED ) FROM tab2
----
-15
-84
-4
-84
14
-84

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL - col0 + + 6 * + 10 AS col2, CAST ( - ( 84 ) AS INTEGER ) FROM tab2
----
-15
-84
-4
-84
14
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( + 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1786
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) > - 97 - + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1786
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) > - 97 - + CAST ( + + col2 AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + COUNT ( * ) * + 99 / 3 FROM tab2
----
99

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 30 > + + 14 - - - col0
----

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

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT - col1 / + + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL + 58 + - - ( + + col1 ), col0 FROM tab1 AS cor0 WHERE NOT - 13 + + 29 IS NULL
----
105
91
63
85
72
51

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 61 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT ALL - - col1 * - col0 AS col1, 61 FROM tab0 AS cor0
----
-1215
61
-1827
61
-97
61

query I rowsort
SELECT + + col2 * col2 * + 17 AS col0 FROM tab0 AS cor0
----
166617
1700
37553

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT 9 DIV ( - CAST( - + 39 AS SIGNED ) ) + col0 FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1797
SELECT - - CAST( NULL AS SIGNED ) * 10, COUNT( * ) col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1797
SELECT - - CAST ( NULL AS INTEGER ) * 10, COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT col1 DIV col1 * + - 77 FROM tab2
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1798
SELECT col1 / col1 * + - 77 FROM tab2
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT DISTINCT 37 AS col1, COUNT( * ) AS col1 FROM tab2
----
37
3

skipif mysql # not compatible
query II rowsort label-1799
SELECT DISTINCT 37 AS col1, COUNT ( * ) AS col1 FROM tab2
----
37
3

query I rowsort
SELECT ALL 62 * 58 AS col2 FROM tab0
----
3596
3596
3596

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col1, - 90 + col0, + - 65 * + - 70 / - 93 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 98 > - + 64
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT 4 + + - MAX( ALL - + ( 50 ) ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1808
SELECT 4 + + - MAX ( ALL - + ( 50 ) ) AS col1 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - col0 + 87 AS col1 FROM tab1 AS cor0
----
-4
2
36

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + - col2 col1 FROM tab1 AS cor0
----
-104
-113
-141

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

skipif mysql # not compatible
query II rowsort label-1812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - - 72 + + col2 * 3 FROM tab0 AS cor0
----
102
213
369

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL 81 + + MAX( - 80 ) + - 47 AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 81 + + MAX ( - 80 ) + - 47 AS col1 FROM tab1
----
-46

query I rowsort
SELECT 4 * - col1 AS col1 FROM tab1
----
-188
-20
-56

query II rowsort
SELECT DISTINCT + col0 - - - 49, + col0 FROM tab1
----
2
51
36
85
42
91

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

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

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

query I rowsort
SELECT - 87 * + - col2 FROM tab2
----
2001
3480
5046

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

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 WHERE NOT - col2 IN ( col2, 70 + col0, + col2, + + 90 )
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT DISTINCT + 14 col0, COUNT( * ) FROM tab1
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1822
SELECT DISTINCT + 14 col0, COUNT ( * ) FROM tab1
----
14
3

query I rowsort
SELECT ALL + - ( - col1 ) FROM tab0 cor0
----
1
21
81

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

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT - - MIN ( ALL + col1 ) / - 98 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT col1 * + 87 * + CAST( + col1 AS SIGNED ) * + col2 * + col2 + - col2 FROM tab2 AS cor0
----
119705800
1313786594
825316760

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT col1 * + 87 * + CAST ( + col1 AS INTEGER ) * + col2 * + col2 + - col2 FROM tab2 AS cor0
----
119705800
1313786594
825316760

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 83
----

query I rowsort
SELECT ALL col2 * + 69 * + ( + 24 ) FROM tab0
----
163944
16560
77832

query I rowsort
SELECT - 87 * + 39 FROM tab0
----
-3393
-3393
-3393

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 28 + - - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT + 72 DIV - 62 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + 72 / - 62 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col2 * - + 20 FROM tab2
----
-1160
-460
-800

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

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT ( - + col1 ) / col1 AS col1 FROM tab1
----
-1
-1
-1

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

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

query I rowsort
SELECT + 85 * - 33 AS col2 FROM tab1
----
-2805
-2805
-2805

query I rowsort
SELECT - 91 + + col1 FROM tab0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL - COUNT( ALL + + col0 ) + + 77 AS col0 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - COUNT ( ALL + + col0 ) + + 77 AS col0 FROM tab2 cor0
----
74

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 50 + 0 / - col2 AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT + col0 - + ( + + 53 ) DIV - 46 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1841
SELECT + col0 - + ( + + 53 ) / - 46 FROM tab0 AS cor0
----
16
88
98

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - + 54 - col2 FROM tab2 cor0
----
-112
-77
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT 66 DIV 8 - - + col2 * + - col1 * - - ( - 78 ) FROM tab0
----
16388
296954
7730

skipif mysql # not compatible
query I rowsort label-1846
SELECT 66 / 8 - - + col2 * + - col1 * - - ( - 78 ) FROM tab0
----
16388
296954
7730

query I rowsort
SELECT col2 + + - 92 FROM tab1
----
-24
-33
4

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE - 12 NOT IN ( + col0 * - col2 * + col1 )
----
59
68
96

query I rowsort
SELECT ALL - ( + col1 ) - + + col1 + col2 FROM tab1
----
-26
49
68

query I rowsort
SELECT DISTINCT + + col2 * + 39 * col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
382239
3900
86151

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 16 + - 0 / + col1, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1853
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( ( - col0 ) * CAST( NULL AS SIGNED ) * + + 70 - ( col1 ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-1853
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( ( - col0 ) * CAST ( NULL AS INTEGER ) * + + 70 - ( col1 ) - col0 )
----

query II rowsort
SELECT ALL - 79, + col1 * + col2 * + + col1 AS col1 FROM tab2 AS cor0
----
-79
237160
-79
260362
-79
59823

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

query II rowsort
SELECT + col1, col2 * - col2 AS col2 FROM tab1 cor0
----
14
-9216
47
-4624
5
-3481

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT DISTINCT COUNT( * ), + 84 + - 72 AS col1 FROM tab2 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT COUNT ( * ), + 84 + - 72 AS col1 FROM tab2 AS cor0
----
3
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT - + col1 DIV + ( 2 ) - 45 - + + 42 FROM tab2 AS cor0
----
-112
-120
-125

skipif mysql # not compatible
query I rowsort label-1860
SELECT - + col1 / + ( 2 ) - 45 - + + 42 FROM tab2 AS cor0
----
-112
-120
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT ( + MAX( ALL - 78 ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT ( + MAX ( ALL - 78 ) ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT ( col0 ) * + 88 FROM tab0 AS cor0
----
1320
7656
8536

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT - + MAX( DISTINCT col1 ) AS col2, MAX( ALL col2 ) FROM tab2 cor0
----
-77
58

skipif mysql # not compatible
query II rowsort label-1864
SELECT - + MAX ( DISTINCT col1 ) AS col2, MAX ( ALL col2 ) FROM tab2 cor0
----
-77
58

query I rowsort
SELECT + ( 39 ) * - col0 + + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1866
SELECT * FROM tab2, tab1 AS cor0 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1866
SELECT * FROM tab2, tab1 AS cor0 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 + - col0 * 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT DISTINCT - 62 AS col2, - ( + COUNT( - 70 ) ) * + - 17 + + 39 FROM tab2
----
-62
90

skipif mysql # not compatible
query II rowsort label-1868
SELECT DISTINCT - 62 AS col2, - ( + COUNT ( - 70 ) ) * + - 17 + + 39 FROM tab2
----
-62
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - 71 col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

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

skipif mysql # not compatible
query I rowsort label-1870
SELECT 23 AS col2 FROM tab2 WHERE - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 12 * + col0 + + 13 FROM tab2
----
565
781
913

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + - + col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT ALL + ( - - SUM( ALL - - col2 ) ) * - COUNT( * ) AS col0, + 43 * + - MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-669
2537

skipif mysql # not compatible
query II rowsort label-1875
SELECT ALL + ( - - SUM ( ALL - - col2 ) ) * - COUNT ( * ) AS col0, + 43 * + - MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-669
2537

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 26 * + col1 IS NOT NULL
----

query I rowsort
SELECT 77 + - col1 AS col1 FROM tab1 cor0
----
30
63
72

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

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

query I rowsort
SELECT 76 * - 26 + - + 6 AS col2 FROM tab2 AS cor0
----
-1982
-1982
-1982

query II rowsort
SELECT DISTINCT - col1 * - col1 AS col2, - 25 FROM tab0 AS cor0
----
1
-25
441
-25
6561
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT col0 + + - CAST( + + col2 AS SIGNED ) + - col2 + + col1 FROM tab2 AS cor0
----
26
51
61

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT col0 + + - CAST ( + + col2 AS INTEGER ) + - col2 + + col1 FROM tab2 AS cor0
----
26
51
61

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT DISTINCT + col0 AS col0, CAST( NULL AS SIGNED ) * - col2 - - ( + + col1 ) * + col0 col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) < + 22 * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT DISTINCT + col0 AS col0, CAST ( NULL AS INTEGER ) * - col2 - - ( + + col1 ) * + col0 col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) < + 22 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT DISTINCT - col1 DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - col1 / - 96 FROM tab2
----
0

query I rowsort
SELECT col0 * + - col2 * - + ( + 67 ) AS col1 FROM tab0
----
47235
58290
643401

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT DISTINCT COUNT( * ) AS col1, 9 FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT COUNT ( * ) AS col1, 9 FROM tab0
----
3
9

query I rowsort
SELECT ALL ( + + 30 ) FROM tab2 cor0 WHERE + col0 NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab1 cor0
----
-196
-2209
-25

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT - ( + col2 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT - ( + col2 ) / - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT + + 22 AS col1, + COUNT( * ) - 36 FROM tab1 AS cor0
----
22
-33

skipif mysql # not compatible
query II rowsort label-1894
SELECT + + 22 AS col1, + COUNT ( * ) - 36 FROM tab1 AS cor0
----
22
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - COUNT( ALL col0 ) * + COUNT( DISTINCT - col2 ) * + 10 + + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - COUNT ( ALL col0 ) * + COUNT ( DISTINCT - col2 ) * + 10 + + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 * + ( - col2 ), + 3, - + 37, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 * + ( - col2 ), + 3, - + 37, col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1900
SELECT 18, COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
18
0

skipif mysql # not compatible
query II rowsort label-1900
SELECT 18, COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
18
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL + col2 * + 42 + + 30 * - + col0 + 29 + + - col0 * - col0 DIV col0 col1 FROM tab0 cor0
----
-2074
1374
1568

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1902
SELECT ALL + col2 * + 42 + + 30 * - + col0 + 29 + + - col0 * - col0 / col0 col1 FROM tab0 cor0
----
-2074
1374
1568

query II rowsort
SELECT ALL + 51 + col0 AS col2, - ( - col2 ) FROM tab0
----
138
10
148
99
66
47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1904
SELECT DISTINCT COUNT ( ALL + + col1 ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * + - col2 col2 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT + col1 DIV - ( - 80 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1906
SELECT + col1 / - ( - 80 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL + 82 + COUNT( * ) * - 69 FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 82 + COUNT ( * ) * - 69 FROM tab0 AS cor0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT ALL + - col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + - col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + ( + COUNT( * ) ) FROM tab2 cor0 WHERE + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT + ( + COUNT ( * ) ) FROM tab2 cor0 WHERE + col1 = NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT - + col1 - - col1 + - + CAST( + col1 AS SIGNED ) * - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1911
SELECT - + col1 - - col1 + - + CAST ( + col1 AS INTEGER ) * - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col0 col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT - 15 - + col0 AS col2 FROM tab2 AS cor0
----
-61
-79
-90

query I rowsort
SELECT 14 * - col1 FROM tab2 AS cor0 WHERE NULL > - 0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + col0 col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT - 0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 0 / - col2 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL 1 + + ( - - 66 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT + SUM( - 91 ) AS col2 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + SUM ( - 91 ) AS col2 FROM tab0
----
-273

query I rowsort
SELECT DISTINCT + col0 * col1 * + + 79 FROM tab2
----
185334
389312
396975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col2 FROM tab1 cor0
----
-27
-27
-27

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col2 FROM tab1 WHERE NOT ( 55 ) >= - col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1928
SELECT MIN ( - - col2 ) AS col1 FROM tab1 cor0
----
59

query I rowsort
SELECT ALL col1 + + 20 * + col2 AS col1 FROM tab0 AS cor0
----
1021
1981
221

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT COUNT( * ) + + MAX( ( + 58 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 97 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT COUNT ( * ) + + MAX ( ( + 58 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 97 AND NULL
----
NULL

query I rowsort
SELECT - 15 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-29
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, ( 99 ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT MIN( + + col0 ) + 58 + 39 AS col2 FROM tab2 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT MIN ( + + col0 ) + 58 + 39 AS col2 FROM tab2 AS cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab0
----
103
23
43

query II rowsort
SELECT DISTINCT col0, - 54 * ( + + 7 ) AS col0 FROM tab2
----
46
-378
64
-378
75
-378

query III rowsort
SELECT ALL + col0 AS col1, + 7 AS col0, - col1 AS col1 FROM tab1
----
9 values hashing to 9a5477d1fb53f75bb76ae544d8be7c84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL - 20 * - COUNT( * ) + 16 AS col0 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - 20 * - COUNT ( * ) + 16 AS col0 FROM tab2 AS cor0
----
76

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

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

query I rowsort
SELECT DISTINCT + - col1 + - ( col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT + + CAST( 20 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
43
60
78

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + + CAST ( 20 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) - + ( + + COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) - + ( + + COUNT ( * ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 + col2 * - col1 AS col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT col0 * 4 FROM tab1
----
204
340
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL 2 * 38 + - - COUNT( col0 ) * + MAX( + ( + col0 ) ) * - COUNT( * ) + 11 * 3 + - - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-754

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 2 * 38 + - - COUNT ( col0 ) * + MAX ( + ( + col0 ) ) * - COUNT ( * ) + 11 * 3 + - - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-754

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT + 32 DIV - + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 32 / - + col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41, 73 col0 FROM tab1
----
41
73
41
73
41
73

query I rowsort
SELECT DISTINCT 68 * 42 FROM tab0
----
2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL + 90 * + col1 * + CAST( - - col1 AS SIGNED ) FROM tab1
----
17640
198810
2250

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + 90 * + col1 * + CAST ( - - col1 AS INTEGER ) FROM tab1
----
17640
198810
2250

query I rowsort
SELECT DISTINCT - 56 * + col2 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT COUNT( ALL - col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1958
SELECT COUNT ( ALL - col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col0 * 80 FROM tab1 cor0
----
-4080
-6800
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL SUM( ALL + 57 ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL SUM ( ALL + 57 ) AS col2 FROM tab1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + SUM( DISTINCT - col2 ) + COUNT( * ) AS col0 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1961
SELECT + SUM ( DISTINCT - col2 ) + COUNT ( * ) AS col0 FROM tab2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT - ( 72 ) * - + COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - ( 72 ) * - + COUNT ( * ) FROM tab1
----
216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1963
SELECT ALL - 78 DIV 26, col1 * - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

skipif mysql # not compatible
query II rowsort label-1963
SELECT ALL - 78 / 26, col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - col1 - + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - - COUNT( - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1965
SELECT - - COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL + + col2 * + col2 * - - 56 * - col0 + - col1 FROM tab2 AS cor0
----
-1362755
-14128867
-5734477

query I rowsort
SELECT ALL - 67 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT 87 + - 25 + 74 - 28 + + - COUNT( * ) AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 87 + - 25 + 74 - 28 + + - COUNT ( * ) AS col1 FROM tab2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 21 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 93 + + col2 FROM tab1
----
4839
7964
8531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT DISTINCT + CAST( + 98 AS SIGNED ) AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT + CAST ( + 98 AS INTEGER ) AS col2 FROM tab0
----
98

query I rowsort
SELECT ALL + col1 - ( 59 ) FROM tab0
----
-38
-58
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 + col1 + - col1 - 71 * - 71 col1, col2, col1 AS col2 FROM tab2
----
9 values hashing to baaec747f5520c0c32fb46007babd1a4

query I rowsort
SELECT DISTINCT col0 / + col0 AS col0 FROM tab2 WHERE NOT ( ( + col0 ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - + ( + col2 ) + - - 24 FROM tab2 AS cor0
----
-16
-34
1

query I rowsort
SELECT ALL + ( + col1 ) * col0 + + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - + SUM( - 40 ) AS col2 FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-1979
SELECT - + SUM ( - 40 ) AS col2 FROM tab0 cor0
----
120

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + COUNT ( * ) col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col2, - col2 + - ( + 18 ) FROM tab1 AS cor0
----
59
-77
68
-86
96
-114

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - + 23 ) NOT IN ( 90, col2 * + 78 )
----

query I rowsort
SELECT - 64 * + - 15 FROM tab0 AS cor0
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 99 * - MIN( ALL + - 15 ) AS col1 FROM tab1
----
1485

skipif mysql # not compatible
query I rowsort label-1985
SELECT 99 * - MIN ( ALL + - 15 ) AS col1 FROM tab1
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL MIN( + - 65 ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL MIN ( + - 65 ) FROM tab1
----
-65

query I rowsort
SELECT ALL col0 * + 35 FROM tab0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL COUNT( ALL 0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL COUNT ( ALL 0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL col2 * - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( - 5 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( - 5 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * + 4 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL - CAST( + 30 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - CAST ( + 30 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL 50 + - col2 * col2 * + + col0 AS col1 FROM tab1
----
-295835
-420734
-469966

onlyif mysql # DIV for integer division: 
query II rowsort label-1994
SELECT col2 DIV + col0 + + 58 AS col2, + col2 * + ( + - col2 ) AS col1 FROM tab0
----
58
-100
59
-9801
61
-2209

skipif mysql # not compatible
query II rowsort label-1994
SELECT col2 / + col0 + + 58 AS col2, + col2 * + ( + - col2 ) AS col1 FROM tab0
----
58
-100
59
-9801
61
-2209

query I rowsort
SELECT col1 * + + col1 + - col0 + + col0 FROM tab2 AS cor0 WHERE - col1 * + 95 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1997
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 * ( - col1 ) * - 77 + + - 82 AS col0 FROM tab2 AS cor0
----
-200359
-345735
-456615

query I rowsort
SELECT DISTINCT - - col1 * + col1 + - - 64 * + + col2 + - + col1 FROM tab0 AS cor0
----
1060
6336
9488

query I rowsort
SELECT + + col2 * - col2 + - col0 * + + col2 AS col1 FROM tab2 AS cor0
----
-1587
-4160
-7714

query I rowsort
SELECT col2 + col1 + + col2 + + + 85 * 86 * + col1 FROM tab0 AS cor0
----
153551
592285
7509

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT ALL - - col0 DIV 61 + - + col0 * + - col2 * col2 + + 81 * - + col0 * col1 + - col0 + + col1 + 63 FROM tab2 AS cor0
----
-154669
-165624
-296691

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - - col0 / 61 + - + col0 * + - col2 * col2 + + 81 * - + col0 * col1 + - col0 + + col1 + 63 FROM tab2 AS cor0
----
-154669
-165624
-296691

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE - 76 / + CAST( + 39 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE - 76 / + CAST ( + 39 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 55 + - + COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 55 + - + COUNT ( * ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col2 + + - 17 FROM tab1 cor0
----
42
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT COUNT( * ) * - 68 + 30 AS col2 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2006
SELECT COUNT ( * ) * - 68 + 30 AS col2 FROM tab1 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2007
SELECT ALL + 72, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-2007
SELECT ALL + 72, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72
NULL
72
NULL
72
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2008
SELECT DISTINCT - col1 * 19 DIV + + col2 + + + col1 + - 87 + + 32 + + + 17 * - col1 AS col1, 47 FROM tab1 AS cor0
----
-136
47
-281
47
-820
47

skipif mysql # not compatible
query II rowsort label-2008
SELECT DISTINCT - col1 * 19 / + + col2 + + + col1 + - 87 + + 32 + + + 17 * - col1 AS col1, 47 FROM tab1 AS cor0
----
-136
47
-281
47
-820
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL 96 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 96 / col0 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL col0 + - ( + 6 ) - + ( - + 63 ) FROM tab2 WHERE NOT + 53 BETWEEN col0 AND + + col1 * ( - 72 ) * - 70
----
121
132

query I rowsort
SELECT ALL 29 + - col0 * + 98 AS col1 FROM tab2
----
-4479
-6243
-7321

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT + col0 * + col1 AS col2, - col0 AS col2 FROM tab2
----
2346
-46
4928
-64
5025
-75

query I rowsort
SELECT DISTINCT - 87 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT 99 * col2 * + col1 AS col0 FROM tab1
----
133056
29205
316404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col0, ( col1 ) col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - col1, - 43 AS col0 FROM tab0 AS cor0
----
-1
-43
-21
-43
-81
-43

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT col1 * - 76 * col0 FROM tab2 cor0
----
-178296
-374528
-381900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL - MIN( + col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2022
SELECT ALL - MIN ( + col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT DISTINCT 23, COUNT( * ) AS col0 FROM tab1
----
23
3

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT 23, COUNT ( * ) AS col0 FROM tab1
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT COUNT( * ) * ( - - 91 ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( * ) * ( - - 91 ) FROM tab2
----
273

query II rowsort
SELECT + col0, - 4 * + 48 + col0 + - col2 FROM tab2
----
46
-169
64
-168
75
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT - 35 DIV - - 44 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT - 35 / - - 44 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT - col2 AS col0, 99 * - col0 + col0 * - 90 AS col0 FROM tab1
----
-59
-16065
-68
-17199
-96
-9639

query II rowsort
SELECT DISTINCT - col2, - col2 AS col1 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1, + 83, - + col1, + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ( - MAX( DISTINCT 64 ) ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-2030
SELECT ( - MAX ( DISTINCT 64 ) ) AS col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT - col2 * + CAST( NULL AS SIGNED ) * 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT - col2 * + CAST ( NULL AS INTEGER ) * 88 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2032
SELECT + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + - 62 FROM tab2 cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 79 * - col1 AS col1 FROM tab1 AS cor0
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL + - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 48 * + col0 + + + col0 FROM tab0 cor0
----
-4089
-4559
-705

query I rowsort
SELECT - - 45 - - - 14 * + + 91 - 29 FROM tab1 AS cor0
----
-1258
-1258
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT CAST( NULL AS SIGNED ) - - + col2 + - 26 + + 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT CAST ( NULL AS INTEGER ) - - + col2 + - 26 + + 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 5 - - col1 AS col0 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - COUNT( * ) + + 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2040
SELECT - COUNT ( * ) + + 76 FROM tab1
----
73

query I rowsort
SELECT ALL 79 * col1 FROM tab1
----
1106
3713
395

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + CAST( - col0 AS SIGNED ) * + + 29 * 17 + - - 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) * + + 29 * 17 + - - 3 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT ALL 86 AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
86
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT ALL 86 AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
86
3

query II rowsort
SELECT ALL + col1 * + - col1, col2 - + col2 AS col2 FROM tab1 AS cor0
----
-196
0
-2209
0
-25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT - - COUNT( DISTINCT 80 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - - COUNT ( DISTINCT 80 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( - ( col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( - ( col0 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + - 10 * 54 * - col0 FROM tab0 AS cor0
----
46980
52380
8100

query I rowsort
SELECT - col1 * - - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT 89 * - col0, + col1 FROM tab0 cor0
----
-1335
81
-7743
21
-8633
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - + 75 + col0 AS col0 FROM tab1
----
69
72
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col1 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL + 24 * 4 + - col1 + + + 24 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 * col0
----

skipif mysql # not compatible
query I rowsort label-2056
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT 53 AS col2, + SUM( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
53
103

skipif mysql # not compatible
query II rowsort label-2057
SELECT 53 AS col2, + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
53
103

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= + 45 * + ( + col1 )
----

query I rowsort
SELECT ALL - - col1 + - 63 FROM tab2 AS cor0
----
-12
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL + - 39 + - - COUNT( * ) col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT ALL + - 39 + - - COUNT ( * ) col0 FROM tab2 AS cor0
----
-36

query II rowsort
SELECT col0 + + 4 AS col0, + 20 FROM tab1 cor0
----
55
20
89
20
95
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col0 * 21 + - col2 AS col2 FROM tab2 AS cor0
----
-1384
-1633
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 61 AS col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT DISTINCT + col0 * - 28 + col1 * + 47 AS col0 FROM tab1 AS cor0
----
-2145
-339
-770

query I rowsort
SELECT ALL - col1 + + + 96 - - col2 * - 56 FROM tab0 AS cor0
----
-2617
-485
-5449

query II rowsort
SELECT - + 69 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query I rowsort
SELECT ALL - col1 * + col0 - col0 + 61 AS col1 FROM tab0 AS cor0
----
-1169
-133
-1853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab1
----
27
27
27

query II rowsort
SELECT DISTINCT + 39 - - 44, col1 AS col0 FROM tab0
----
83
1
83
21
83
81

query III rowsort
SELECT * FROM tab2 WHERE - + 10 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT ALL + col1 - + col2 DIV - - 13 + - + col1 AS col1 FROM tab2
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + col1 - + col2 / - - 13 + - + col1 AS col1 FROM tab2
----
-1
-3
-4

query I rowsort
SELECT 69 - col0 AS col0 FROM tab1
----
-16
-22
18

query I rowsort
SELECT 85 * - col1 * + - 0 * + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT + col2 DIV - 19 col2 FROM tab0 cor0
----
-2
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2076
SELECT + col2 / - 19 col2 FROM tab0 cor0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL + COUNT( + 22 ) * + MAX( ALL + + col2 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + COUNT ( + 22 ) * + MAX ( ALL + + col2 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + 47 AS col0 FROM tab0 AS cor0
----
2209
4653
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 77 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 77 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ( - MIN( + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2082
SELECT ( - MIN ( + col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL - 39 * + + COUNT( * ) AS col2 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - 39 * + + COUNT ( * ) AS col2 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT 26 * + 59 FROM tab0 AS cor0
----
1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - - col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 / - - col1
----

skipif mysql # not compatible
query I rowsort label-2085
SELECT - - col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 / - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT - + ( + 13 ) * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - + ( + 13 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT ALL + 77 DIV COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + 77 / COUNT ( * ) FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + col0 AS col1, 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

query I rowsort
SELECT + 53 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2091
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + - 50 )
----

skipif mysql # not compatible
query III rowsort label-2091
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + - 50 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - + 18 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 19 * col2 FROM tab0 AS cor0
----
1978
277
908

query I rowsort
SELECT - 49 * - - col0 AS col1 FROM tab0
----
-4263
-4753
-735

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col1, ( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col1, + col0 FROM tab2
----
1173
46
3080
64
3886
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + 29 * COUNT( - 47 ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 29 * COUNT ( - 47 ) AS col0 FROM tab2
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL + COUNT( * ) * + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT ALL + COUNT ( * ) * + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT 3 * + col1 * - 47 AS col1 FROM tab1
----
-1974
-6627
-705

query I rowsort
SELECT ALL 1 + + + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT - 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT 52 * + - col1 FROM tab2
----
-2652
-3484
-4004

query I rowsort
SELECT + - col2 - + 5 AS col0 FROM tab0 AS cor0
----
-104
-15
-52

query I rowsort
SELECT - - col1 - col2 + 93 - - col1 FROM tab1 AS cor0
----
119
25
44

query I rowsort
SELECT DISTINCT + 46 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
4002
4462
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT - ( SUM( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - ( SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 67 + - 15 * + 81 AS col0 FROM tab0
----
-1148
-1148
-1148

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT DISTINCT + SUM( ( - ( + col0 ) ) ) - + ( + - COUNT( * ) ) col0, + COUNT( * ) AS col1 FROM tab0
----
-196
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2109
SELECT DISTINCT + SUM ( ( - ( + col0 ) ) ) - + ( + - COUNT ( * ) ) col0, + COUNT ( * ) AS col1 FROM tab0
----
-196
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN col1 AND - col1
----

query I rowsort
SELECT DISTINCT col1 - + - 21 AS col1 FROM tab2
----
72
88
98

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ( + ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2113
SELECT ( + ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - 96 * - ( - + col0 ) FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL < - col2
----

query I rowsort
SELECT ALL + col1 * + col1 * + 97 AS col1 FROM tab1
----
19012
214273
2425

query II rowsort
SELECT ALL col2 * col1 * col0 * col0 AS col0, + 34 AS col1 FROM tab2
----
12615680
34
21858750
34
2482068
34

query I rowsort
SELECT + col1 * - + ( + 28 ) - - + 64 AS col2 FROM tab2 AS cor0
----
-1364
-1812
-2092

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - 16 * + 46 FROM tab0 AS cor0
----
-736
-736
-736

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - 66 NOT BETWEEN - col0 * - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + + 15 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - col1 * - + ( - col1 ) - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - col1 * - + ( - col1 ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 * - - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT 37 DIV col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT 37 / col1 AS col2 FROM tab2
----
0

query I rowsort
SELECT col0 + - 3 AS col0 FROM tab1
----
48
82
88

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - 92 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 79 <= + 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT + 50 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + 50 / - col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col2, col0 * + + col1 col1 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT + col1 / + 79 + + col1 FROM tab0 cor0 WHERE + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 + - + col1 col2 FROM tab1 cor0
----
-53
-62
-95

query I rowsort
SELECT col2 + + col0 * 19 AS col1 FROM tab1
----
1065
1674
1797

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2134
SELECT DISTINCT col0 DIV CAST( 91 AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT col0 / CAST ( 91 AS INTEGER ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + COUNT( * ) * + MIN( 73 ) FROM tab0 WHERE NOT + col2 * + col2 NOT BETWEEN ( NULL ) AND ( - col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + COUNT ( * ) * + MIN ( 73 ) FROM tab0 WHERE NOT + col2 * + col2 NOT BETWEEN ( NULL ) AND ( - col2 * col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT MIN( ( - col1 ) ) * - 66 AS col0 FROM tab2
----
5082

skipif mysql # not compatible
query I rowsort label-2136
SELECT MIN ( ( - col1 ) ) * - 66 AS col0 FROM tab2
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - SUM( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - SUM ( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * 84 AS col2 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL col1 + col1 * + col0 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT SUM( DISTINCT col2 ) + COUNT( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
124

skipif mysql # not compatible
query I rowsort label-2141
SELECT SUM ( DISTINCT col2 ) + COUNT ( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
124

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( 30 - + col0 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT * FROM tab1 WHERE + CAST( + 13 AS SIGNED ) + + 32 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2143
SELECT * FROM tab1 WHERE + CAST ( + 13 AS INTEGER ) + + 32 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + 21 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2145
SELECT + ( COUNT( * ) ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT + ( COUNT ( * ) ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 WHERE NOT NULL <> ( + col1 + - 91 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * + 89 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT DISTINCT 97 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT 97 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 62 * 67
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / + 46 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT 72 DIV + ( col0 ) - col1 FROM tab0
----
-1
-21
-77

skipif mysql # not compatible
query I rowsort label-2151
SELECT 72 / + ( col0 ) - col1 FROM tab0
----
-1
-21
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT 21 DIV col0 - - col2 * col1 col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT 21 / col0 - - col2 * col1 col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL col1 + + 40 AS col1 FROM tab1 WHERE NULL IN ( + col2 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT col0 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND 68 * CAST( 43 / + ( - 34 ) AS SIGNED )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2154
SELECT col0 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND 68 * CAST ( 43 / + ( - 34 ) AS INTEGER )
----
51
85
91

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 70 * col1 <> col0
----
59
68
96

query I rowsort
SELECT DISTINCT - 73 FROM tab1 WHERE ( 60 ) <> ( 96 + col0 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - COUNT( * ) * 27 + + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - COUNT ( * ) * 27 + + COUNT ( * ) FROM tab0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - col1 + CAST( col2 + + col1 * col2 AS SIGNED ) FROM tab1
----
1426
3217
349

skipif mysql # not compatible
query I rowsort label-2158
SELECT - col1 + CAST ( col2 + + col1 * col2 AS INTEGER ) FROM tab1
----
1426
3217
349

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT + COUNT( DISTINCT 2 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + COUNT ( DISTINCT 2 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT COUNT( * ) * + 91 FROM tab0 cor0 WHERE NOT ( + 10 * col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT COUNT ( * ) * + 91 FROM tab0 cor0 WHERE NOT ( + 10 * col1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * 30 FROM tab2 AS cor0 WHERE NOT - col0 + + ( col2 ) IS NULL
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT 7 FROM tab2 AS cor0 WHERE NOT NULL <= 82
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 52 <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 52 <> - col0
----
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col2 + 32 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2167
SELECT * FROM tab1 cor0 WHERE NOT NULL >= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2167
SELECT * FROM tab1 cor0 WHERE NOT NULL >= ( CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT ALL CAST( col0 AS SIGNED ) * 99 FROM tab2
----
4554
6336
7425

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL CAST ( col0 AS INTEGER ) * 99 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col1 * + col1 + + 47 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - 85 FROM tab1 AS cor0 CROSS JOIN tab1
----
-85

query I rowsort
SELECT - 9 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-459
-603
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL + ( + SUM( DISTINCT - col0 ) ) FROM tab2 WHERE NULL BETWEEN col1 * col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + ( + SUM ( DISTINCT - col0 ) ) FROM tab2 WHERE NULL BETWEEN col1 * col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + col0 + - 81 AS col1 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT DISTINCT - col1 + + 76 FROM tab0 AS cor0
----
-5
55
75

query I rowsort
SELECT DISTINCT + ( col1 ) * + 21 AS col0 FROM tab1 cor0
----
105
294
987

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2176
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= - CAST( + 98 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= - CAST ( + 98 AS REAL )
----
0

query I rowsort
SELECT ALL - col1 * col2 + - 31 AS col2 FROM tab2 AS cor0
----
-1204
-3111
-3917

query I rowsort
SELECT - col1 * - 57 FROM tab1 AS cor0
----
2679
285
798

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN ( - ( 62 ) * col2 ) AND 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + 99 + col2 AS col1 FROM tab1
----
-5782
-6664
-9408

query III rowsort
SELECT * FROM tab2 WHERE col2 / col0 BETWEEN NULL AND ( + col0 + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 94 ) * col0 + col1 AS col2 FROM tab2
----
4375
6093
7117

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 WHERE NOT ( NULL ) > ( - col1 - col2 )
----

query I rowsort
SELECT col1 + - ( - col2 ) FROM tab1
----
110
115
64

query I rowsort
SELECT col2 + - + 40 AS col1 FROM tab0
----
-30
59
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT + ( 91 ) DIV + ( col1 ) + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
102
69
77

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + ( 91 ) / + ( col1 ) + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
102
69
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - 89 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - 89 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + 96 <= NULL
----

query I rowsort
SELECT + ( + col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) > ( 74 / - 83 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT - MIN( DISTINCT - + ( - 2 ) ) DIV + 34 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT - MIN ( DISTINCT - + ( - 2 ) ) / + 34 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL + ( col0 ) DIV - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + ( col0 ) / - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
66
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 15 / + col1 IS NULL
----

query I rowsort
SELECT 30 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL col0 * - - 69 + col1 * - col2 FROM tab1
----
2175
3083
5570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - 54 col1 FROM tab1
----
-4331
-479
-768

query I rowsort
SELECT 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT - 22 + - 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query I rowsort
SELECT - col2 - 70 * + ( col1 ) FROM tab2 AS cor0
----
-3593
-4748
-5430

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 24 * + col0 AS col0 FROM tab0 AS cor0
----
-2088
-2328
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT - col0 * col1 * + CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-2203
SELECT - col0 * col1 * + CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - + MAX( col2 ) * ( + 86 ) FROM tab0 AS cor0
----
-8514

skipif mysql # not compatible
query I rowsort label-2204
SELECT - + MAX ( col2 ) * ( + 86 ) FROM tab0 AS cor0
----
-8514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 74 col0 FROM tab1 cor0 WHERE NOT NULL <> - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab0 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 57 ) NOT BETWEEN + 71 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 3 + + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 7 * col1 * - 6 + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 96 + - 87 * + 70 FROM tab2 WHERE NOT col0 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL + 83 DIV + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + 83 / + COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT DISTINCT - 32 * 19 AS col0 FROM tab1 WHERE NOT ( + + 8 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) = ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2214
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN - + CAST( + ( - ( col0 ) ) AS DECIMAL ) / col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN - + CAST ( + ( - ( col0 ) ) AS REAL ) / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - 86 * - COUNT( * ) FROM tab2 cor0
----
258

skipif mysql # not compatible
query I rowsort label-2215
SELECT - 86 * - COUNT ( * ) FROM tab2 cor0
----
258

query I rowsort
SELECT 27 / 18 FROM tab1 AS cor0 WHERE NOT - col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT + + col0 DIV - col0 + col2 * - 33 + - - col2 FROM tab1 AS cor0
----
-1889
-2177
-3073

skipif mysql # not compatible
query I rowsort label-2218
SELECT + + col0 / - col0 + col2 * - 33 + - - col2 FROM tab1 AS cor0
----
-1889
-2177
-3073

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 31 * - col0 IS NULL
----

query I rowsort
SELECT - ( 81 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-128
-180
-91

query I rowsort
SELECT - - 61 + - + col2 AS col1 FROM tab0 AS cor0
----
-38
14
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2223
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) DIV + ( - COUNT( * ) ) FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-2223
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) / + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL col2 + col1 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - col1 )
----

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL col2 + col1 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 15 ) = NULL
----

query I rowsort
SELECT ALL 12 + col1 AS col2 FROM tab1
----
17
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + COUNT( DISTINCT - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2227
SELECT + COUNT ( DISTINCT - - col0 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 WHERE NOT ( - - 28 * - col1 + col0 ) IS NULL
----
16

query I rowsort
SELECT DISTINCT + 9 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT + + 11, MAX( DISTINCT - col1 ) + - 72 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11
-80

skipif mysql # not compatible
query II rowsort label-2231
SELECT + + 11, MAX ( DISTINCT - col1 ) + - 72 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 / + - col1 * + col1 AS col2 FROM tab0 cor0 WHERE NOT ( - ( + col2 ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 / + - col1 * + col1 AS col2 FROM tab0 cor0 WHERE NOT ( - ( + col2 ) ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 - col1 FROM tab0 AS cor0
----
-259
-7580
-9311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2235
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2235
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT - 25 FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT + MIN( - col2 ) FROM tab1 WHERE NULL BETWEEN - col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 WHERE NULL BETWEEN - col2 AND col1
----
NULL

query I rowsort
SELECT col1 + 69 + - col2 + + - col1 + + col0 AS col2 FROM tab0
----
146
37
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + - 57 * + MAX( - 82 ) FROM tab0 AS cor0
----
4674

skipif mysql # not compatible
query I rowsort label-2239
SELECT + - 57 * + MAX ( - 82 ) FROM tab0 AS cor0
----
4674

query I rowsort
SELECT ALL - - 3 FROM tab1 AS cor0 WHERE NOT ( - 1 BETWEEN NULL AND - + 72 )
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 3 / col0 + + col1 BETWEEN ( col1 ) AND col2
----
3

skipif mysql # not compatible
query I rowsort label-2241
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 3 / col0 + + col1 BETWEEN ( col1 ) AND col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( - 82 AS SIGNED ) BETWEEN NULL AND ( - col0 * col1 + - - col2 - + 49 / col0 )
----
4

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( - 82 AS INTEGER ) BETWEEN NULL AND ( - col0 * col1 + - - col2 - + 49 / col0 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL + col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 * - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - + 52 IN ( 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 42 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT col2 DIV + 73 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT col2 / + 73 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - MIN( - + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2250
SELECT - MIN ( - + col0 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 * - col1 > - + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2252
SELECT 7 DIV - MIN( DISTINCT + col2 ) AS col0, COUNT( * ) * + 2 FROM tab1
----
0
6

skipif mysql # not compatible
query II rowsort label-2252
SELECT 7 / - MIN ( DISTINCT + col2 ) AS col0, COUNT ( * ) * + 2 FROM tab1
----
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL - CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 65 * col1 - - col2 <> NULL
----

query I rowsort
SELECT - 14 * - col0 + + - 67 AS col2 FROM tab2
----
577
829
983

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 27 + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT 9 * + ( COUNT( * ) ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 9 * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 ) = + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 90 + + 1 + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 59 * col0 * - col0 * col0 + col0 FROM tab1
----
-36233290
-44460598
-7826358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + + col0 col1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT COUNT( * ) + - + 13 AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-2264
SELECT COUNT ( * ) + - + 13 AS col1 FROM tab1
----
-10

query I rowsort
SELECT ALL 87 * + 80 + + col2 * + col2 FROM tab2
----
10324
7489
8560

query I rowsort
SELECT - 93 + - - col0 FROM tab2
----
-18
-29
-47

query I rowsort
SELECT DISTINCT col1 - + 90 AS col2 FROM tab1
----
-43
-76
-85

query I rowsort
SELECT ALL 81 * + col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL 8 * COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL 8 * COUNT ( * ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL MAX( - + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL MAX ( - + col1 ) AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT - ( - - 23 ) * - col0 FROM tab2 AS cor0
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - 21 * + COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - 21 * + COUNT ( * ) FROM tab0 AS cor0
----
-63

query II rowsort
SELECT - 2 AS col1, 90 - - col1 FROM tab1
----
-2
104
-2
137
-2
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 21 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT ALL + + 11 DIV + ( + col1 ) * 7 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + + 11 / + ( + col1 ) * 7 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 66 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT - col2 + - col2 FROM tab1 cor0 WHERE NOT - col1 > 69
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 64 + + - 30 >= - col2 + - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - COUNT( ( + + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2280
SELECT - COUNT ( ( + + col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT ALL col1, CAST( NULL AS SIGNED ) * - + 11 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2282
SELECT ALL col1, CAST ( NULL AS INTEGER ) * - + 11 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT - 61 * - col0 + - 54 FROM tab0 AS cor0
----
5253
5863
861

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL - SUM( 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - SUM ( 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 - - 43 NOT BETWEEN col2 * - ( + + col0 ) / 60 AND - 57
----

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NULL <= + - col2
----

query I rowsort
SELECT 60 + - + col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col1 * + + col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT col0 DIV - col0 + - col0 col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT DISTINCT col0 / - col0 + - col0 col1 FROM tab0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - COUNT( * ) * - 10 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - COUNT ( * ) * - 10 FROM tab1 AS cor0
----
30

query I rowsort
SELECT + 39 AS col2 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT 59 + + col0 * - + ( + + ( + col2 ) ) - col1 FROM tab2 AS cor0
----
-1050
-2578
-4358

onlyif mysql # DIV for integer division: 
query II rowsort label-2296
SELECT ALL + col2 + + - col2 + - col0 * 82 DIV - col0 AS col1, + 10 AS col0 FROM tab1 AS cor0
----
82
10
82
10
82
10

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + col2 + + - col2 + - col0 * 82 / - col0 AS col1, + 10 AS col0 FROM tab1 AS cor0
----
82
10
82
10
82
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2297
SELECT col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + - col1 + + col1 * - - ( col0 ) * - + col2 col0 FROM tab1
----
-25014
-290817
-68492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + 94 - + col0 + + + 18 * - - 3 col2 FROM tab1 AS cor0
----
155
161
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - MAX( - 92 ) FROM tab0 AS cor0 WHERE 91 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT - MAX ( - 92 ) FROM tab0 AS cor0 WHERE 91 * - col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL ( + col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + - col2 + - CAST( NULL AS SIGNED ) * col2 * + 44 * + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT + - col2 + - CAST ( NULL AS INTEGER ) * col2 * + 44 * + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT - CAST( NULL AS SIGNED ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT - CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + 32 AS col2 FROM tab0
----
131
42
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + 30 + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MIN( 36 ) - + 65 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-2309
SELECT MIN ( 36 ) - + 65 FROM tab2
----
-29

query I rowsort
SELECT ALL col2 * - col0 - col1 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - 78 - - MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 78 - - MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT + ( + col2 ) - + col1 AS col2 FROM tab0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 / 25 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL - COUNT( * ) * + + 75 + + 42 + AVG ( col1 ) FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - COUNT ( * ) * + + 75 + + 42 + AVG ( col1 ) FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 48 ) * - - 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
816

query III rowsort
SELECT ALL * FROM tab0 WHERE - 52 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 * 80 AS col0 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT ALL + col1 * - 97 * + col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-113781
-298760
-376942

query II rowsort
SELECT DISTINCT col2 AS col0, 87 AS col1 FROM tab2 cor0
----
23
87
40
87
58
87

query II rowsort
SELECT ALL 82 * col2, col2 FROM tab0
----
3854
47
8118
99
820
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT + 30 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 30 / + col2 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT 9 * - col2 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT - 97 / CAST( NULL AS SIGNED ) / MIN( DISTINCT + col2 ) * + 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 97 / CAST ( NULL AS INTEGER ) / MIN ( DISTINCT + col2 ) * + 44 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 66 ) * col0 + 5 FROM tab2
----
3041
4229
4955

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT - 97 DIV col2 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT DISTINCT - 97 / col2 col1 FROM tab1
----
-1

query I rowsort
SELECT + - col0 + + col1 AS col0 FROM tab2 WHERE NOT ( - col2 + col0 ) = col2
----
-8
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2328
SELECT MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col2 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - col1 + + 59 * - - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) + + + ( - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + ( + + ( col0 ) ) ) col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83 * + col0, + col2 col0 FROM tab0
----
1245
47
7221
10
8051
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab2 WHERE - + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab2 WHERE - + col1 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT ALL 13 DIV + + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 13 / + + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + + col0 * - - 9 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT + col2 DIV 97 DIV - + 48 + + 61 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2338
SELECT + col2 / 97 / - + 48 + + 61 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT 30 + - + col2 AS col1 FROM tab0
----
-17
-69
20

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - + col2 * + 19 * + - 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 13 AS col2, + 86 * + + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
13
3956
13
5504
13
6450

query I rowsort
SELECT DISTINCT - 76 + + col1 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-155
-2204
-9876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV + MIN( - col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / + MIN ( - col0 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 + ( + - col2 ) FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL 91 FROM tab1 WHERE - - 25 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT - 3 + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 3 + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT + 68 + + + ( - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + ( + ( - COUNT( * ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 68 + + + ( - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + ( + ( - COUNT ( * ) ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE ( - - ( + + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + ( col2 ) ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 + col1 / + col1, - col1 - - 36 * + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 73 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col1 * - col1 + 19 - - - 88
----

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - + ( - MIN( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2356
SELECT - + ( - MIN ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 21 * 48 FROM tab2 AS cor0
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT - CAST( + - SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2359
SELECT - CAST ( + - SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + - COUNT( * ) + + + 27 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + - COUNT ( * ) + + + 27 AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - 35 * + 22 AS col2 FROM tab1 cor0 WHERE NOT ( 20 - col0 NOT BETWEEN + - 44 AND NULL )
----

query I rowsort
SELECT col2 + + col0 + + - col1 AS col0 FROM tab2
----
18
27
66

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 91 IN ( col0 * 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2364
SELECT * FROM tab0 WHERE NOT + col2 - CAST( col2 AS SIGNED ) * 36 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2364
SELECT * FROM tab0 WHERE NOT + col2 - CAST ( col2 AS INTEGER ) * 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 95 col1 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2366
SELECT - 97, CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - + 72 - - + 77 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2366
SELECT - 97, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - + 72 - - + 77 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 84 + - col1 * + col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 2 * 74 BETWEEN NULL AND col1 * 47
----

query I rowsort
SELECT 20 * col1 FROM tab0
----
1620
20
420

query III rowsort
SELECT * FROM tab1 WHERE - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 >= - 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2372
SELECT ALL + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 - col2 * col2 * - col1 * - 94 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12128219
-1635990
-20428788

query I rowsort
SELECT DISTINCT - col0 * col0 - + col1 AS col2 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col2, + 50 AS col1 FROM tab2 AS cor0
----
195
50

skipif mysql # not compatible
query II rowsort label-2376
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col2, + 50 AS col1 FROM tab2 AS cor0
----
195
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2377
SELECT COUNT( * ) DIV + - CAST( + SUM( ALL + - 19 ) AS SIGNED ) + - 51 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) / + - CAST ( + SUM ( ALL + - 19 ) AS INTEGER ) + - 51 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col0 * + - col1 * 8 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3400
-34216
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + COUNT( * ) + - - MIN( ALL 48 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2379
SELECT + COUNT ( * ) + - - MIN ( ALL 48 ) AS col0 FROM tab2 cor0
----
51

query I rowsort
SELECT + 42 * + 7 FROM tab0 AS cor0
----
294
294
294

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT MIN( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT MIN ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 61 * + 14 AND 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + SUM( - col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-2383
SELECT + SUM ( - col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT ALL col2 + ( 17 ) FROM tab0
----
116
27
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 88 col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2386
SELECT DISTINCT + MIN( col2 ) col2, + COUNT( * ) + - CAST( NULL AS DECIMAL ) + + 99 * - SUM( 31 ) FROM tab2 AS cor0
----
23
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2386
SELECT DISTINCT + MIN ( col2 ) col2, + COUNT ( * ) + - CAST ( NULL AS REAL ) + + 99 * - SUM ( 31 ) FROM tab2 AS cor0
----
23
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 60 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT - ( 35 ) DIV COUNT( * ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2388
SELECT - ( 35 ) / COUNT ( * ) AS col0 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2389
SELECT ALL + MIN( DISTINCT - ( - col0 ) ), - COUNT( * ) AS col2 FROM tab2
----
46
-3

skipif mysql # not compatible
query II rowsort label-2389
SELECT ALL + MIN ( DISTINCT - ( - col0 ) ), - COUNT ( * ) AS col2 FROM tab2
----
46
-3

query I rowsort
SELECT DISTINCT - ( ( 68 ) ) FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL + ( col1 ) + + 63 AS col1 FROM tab0
----
144
64
84

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col2 ) NOT IN ( - col1, 57, + + col2 * - col2 * - + 41 * + col2, + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 77 * - col2 FROM tab1
----
376992
386155
476476

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT col2 DIV - ( - - col0 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT col2 / - ( - - col0 ) FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL col1 * - col1 + 36 FROM tab1
----
-160
-2173
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT - COUNT( ALL + col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT - COUNT( * ) + COUNT( * ) AS col1, - 98 FROM tab2
----
0
-98

skipif mysql # not compatible
query II rowsort label-2397
SELECT - COUNT ( * ) + COUNT ( * ) AS col1, - 98 FROM tab2
----
0
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT + col2 DIV + 31 + - - col1 AS col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-2398
SELECT + col2 / + 31 + - - col1 AS col1 FROM tab2
----
51
68
78

query I rowsort
SELECT ALL + 75 * - col0 FROM tab2
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( - 20 ) + - col1 * - col1 col2, 46 FROM tab2 cor0
----
2581
46
4469
46
5909
46

query I rowsort
SELECT DISTINCT 70 + + col1 - + 93 AS col0 FROM tab2 AS cor0
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + CAST( NULL AS SIGNED ) - - 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + CAST ( NULL AS INTEGER ) - - 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2403
SELECT + 24 AS col0, col1 + - + col0 + ( + col2 ) DIV - col2 FROM tab0
----
24
-67
24
-97
24
65

skipif mysql # not compatible
query II rowsort label-2403
SELECT + 24 AS col0, col1 + - + col0 + ( + col2 ) / - col2 FROM tab0
----
24
-67
24
-97
24
65

query III rowsort
SELECT * FROM tab2 WHERE - 49 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 + + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT + col0 * - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + col0 * - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 11 - 85 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 / - col0 - - + 69 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT - + COUNT( * ) + 50 AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - + COUNT ( * ) + 50 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT + 16 + + + 78 FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

query I rowsort
SELECT - col0 * + col0 * + col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT 94 * + 75 FROM tab0 AS cor0
----
7050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 = + col1 + + col1 * - col0 + ( - - 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT + 7 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + 7 / + col2 AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL col2 AS col0, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - 67 * + 77 AS col0 FROM tab2 AS cor0
----
-5159
-5159
-5159

query I rowsort
SELECT col0 * - col1 * - - ( + col1 ) FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT + 26 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2420
SELECT ALL MIN( DISTINCT col1 ) AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL MIN ( DISTINCT col1 ) AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - COUNT( + - 62 ) + - 65 AS col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2421
SELECT - COUNT ( + - 62 ) + - 65 AS col1 FROM tab0 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 74 col0 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - MIN( + + col2 ) + 31 * + COUNT( * ) * - ( 6 ) FROM tab2 AS cor0
----
-581

skipif mysql # not compatible
query I rowsort label-2423
SELECT - MIN ( + + col2 ) + 31 * + COUNT ( * ) * - ( 6 ) FROM tab2 AS cor0
----
-581

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - 23 * + + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 68 * + ( - col0 ) FROM tab0 AS cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT - 53 + + 7 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 25 + + 45 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL 0 + 46 AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + 74 + - 89 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE 1 = + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL - col0 * + 99 + + + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - col0 * + 99 + + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * - - col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2434
SELECT col0 AS col0, 90 * + - 2 * ( + + CAST( NULL AS SIGNED ) ) * col1 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT col0 AS col0, 90 * + - 2 * ( + + CAST ( NULL AS INTEGER ) ) * col1 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + 2 * col2 * - col0 + - ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT - 96 - + + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT - 96 - + + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0
----
-96

query I rowsort
SELECT ALL 33 - + - col0 + 76 FROM tab0
----
124
196
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL + - CAST( NULL AS SIGNED ) - + + 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + - CAST ( NULL AS INTEGER ) - + + 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2439
SELECT col0 * CAST( NULL AS DECIMAL ) * - - col1 / + + 48 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT col0 * CAST ( NULL AS REAL ) * - - col1 / + + 48 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT ALL col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 col2, col0 FROM tab0
----
55
15
55
87
55
97

query I rowsort
SELECT DISTINCT - 8 * - + 84 AS col1 FROM tab2
----
672

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2443
SELECT DISTINCT * FROM tab1 WHERE + col2 > - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT DISTINCT * FROM tab1 WHERE + col2 > - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + 25 * + col1 AS col0 FROM tab1
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - 59 * COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 59 * COUNT ( * ) FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - 14 * 49 FROM tab1
----
-686

query II rowsort
SELECT col1, col0 - + ( - col2 ) + + col2 * + col1 AS col1 FROM tab1
----
14
1491
47
3355
5
439

query I rowsort
SELECT ( + ( col0 ) ) * - - col2 AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 > NULL
----

query I rowsort
SELECT ( - - 48 ) AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT - 46 * - col0 * + 68 * + col0 AS col2 FROM tab2
----
12812288
17595000
6618848

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT SUM( - 10 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2452
SELECT SUM ( - 10 ) FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2453
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2453
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + - 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 ALL col0 * - col2 + col2 - + + col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT * FROM tab1 WHERE NOT + col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2455
SELECT * FROM tab1 WHERE NOT + col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT + 45 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT + 45 / - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - - COUNT( * ) - - SUM( ALL + - col0 ) col2 FROM tab0 cor0 WHERE NOT ( NOT col0 IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2457
SELECT ALL - - COUNT ( * ) - - SUM ( ALL + - col0 ) col2 FROM tab0 cor0 WHERE NOT ( NOT col0 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT MIN( col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 * col1 + + col0 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2458
SELECT MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 * col1 + + col0 IS NOT NULL
----
10

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 2 > NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - MIN( - col2 ) + ( COUNT( * ) ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - MIN ( - col2 ) + ( COUNT ( * ) ) FROM tab1 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT + col0 DIV col2 + 7 AS col2 FROM tab1 cor0
----
7
8

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + col0 / col2 + 7 AS col2 FROM tab1 cor0
----
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 45 + col0 + col0 AS col0 FROM tab2
----
137
173
195

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT DISTINCT 23 - - 37 AS col1, COUNT( * ) AS col1 FROM tab1
----
60
3

skipif mysql # not compatible
query II rowsort label-2465
SELECT DISTINCT 23 - - 37 AS col1, COUNT ( * ) AS col1 FROM tab1
----
60
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT MIN( - 3 ) + 57 + + - 68 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT MIN ( - 3 ) + 57 + + - 68 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + 29 + + - SUM( ALL - + col1 ) AS col2 FROM tab2
----
224

skipif mysql # not compatible
query I rowsort label-2467
SELECT + 29 + + - SUM ( ALL - + col1 ) AS col2 FROM tab2
----
224

query I rowsort
SELECT 56 + + - 50 AS col1 FROM tab1
----
6
6
6

query II rowsort
SELECT col1, - col0 * 62 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
-2852
67
-4650
77
-3968

query I rowsort
SELECT DISTINCT - col1 + + + col2 * + 64 AS col2 FROM tab1 cor0
----
3771
4305
6130

query I rowsort
SELECT ALL + 3 * - ( col1 ) AS col2 FROM tab0
----
-243
-3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 68 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT + 60 * - col0 * - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-42300
-52200
-576180

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 60 * - col0 * - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-42300
-52200
-576180

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT - ( - - 3 ) * 92 FROM tab1
----
-276
-276
-276

query I rowsort
SELECT + col0 * - 91 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * + + 41 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * + + 41 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + ( 46 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 15 * + + 10, 95 AS col0 FROM tab0
----
150
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col1, col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2482
SELECT + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT DISTINCT 82 * + col1, - ( - col2 ) + - + col0 AS col2 FROM tab1 AS cor0
----
1148
45
3854
-23
410
-26

query I rowsort
SELECT DISTINCT - + 57 FROM tab0 WHERE NOT - 42 * col2 + + - col1 IS NULL
----
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT + ( + 66 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + - 57 * - 95 FROM tab1 AS cor0
----
5415
5415
5415

query I rowsort
SELECT + col2 + - ( - 43 ) FROM tab2 AS cor0
----
101
66
83

query I rowsort
SELECT ALL + - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT col1 * + col0 + - col1 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-98
1104
1632

query I rowsort
SELECT - ( + col2 ) + + col1 * col1 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT - + col0 + + 93 FROM tab2 AS cor0
----
18
29
47

query I rowsort
SELECT DISTINCT - 83 + - - 90 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NULL IN ( col1, - ( + col1 ), + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + + 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 28 + + - 47 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col0, 55 + - 98 * col0, - + 36 col0 FROM tab1
----
9 values hashing to bf6e06c4b828a633d7b7728309e2cbff

query I rowsort
SELECT ALL - col1 + - - col0 + + col2 * - col1 * - col0 * - - 46 AS col0 FROM tab2 AS cor0
----
13406708
2482063
9067507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL + CAST( SUM( DISTINCT + ( - col0 ) ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + CAST ( SUM ( DISTINCT + ( - col0 ) ) AS INTEGER ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT - + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-2500
SELECT - + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT + 67, - col0 * + col2 + 22 AS col0 FROM tab0
----
67
-683
67
-848
67
-9581

onlyif mysql # aggregate syntax: 
query II rowsort label-2503
SELECT - 84 col1, COUNT( * ) FROM tab0
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT - 84 col1, COUNT ( * ) FROM tab0
----
-84
3

query II rowsort
SELECT + + col1 AS col1, 65 + - col0 * + 66 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
-2971
67
-4885
77
-4159

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT - COUNT( * ), 26 AS col1 FROM tab1
----
-3
26

skipif mysql # not compatible
query II rowsort label-2506
SELECT - COUNT ( * ), 26 AS col1 FROM tab1
----
-3
26

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col1 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 AS col2, - col2 col1 FROM tab0
----
-80
-10
-80
-47
-80
-99

query I rowsort
SELECT ALL col2 + 92 FROM tab1 AS cor0
----
151
160
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64 col2, - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
18 values hashing to 6671889f4e2e8f4385d9ba122024f8ac

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - COUNT( * ) * 91 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL - COUNT ( * ) * 91 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-819

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 51 IS NULL
----

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + ( + col1 ) + - - col1 + + 12 - - + col2 FROM tab1 AS cor0
----
136
174
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 57 - col2 <= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT - + COUNT( DISTINCT + CAST( - + 50 AS SIGNED ) ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - + COUNT ( DISTINCT + CAST ( - + 50 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 72 + - col1 AS col2 FROM tab2 AS cor0
----
-123
-139
-149

query I rowsort
SELECT ALL - - col0 - + + col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col0 + - - col0 + col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 52 FROM tab1 AS cor0 WHERE - ( - col0 ) + - col1 = - 24 + - - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT 98 + + COUNT( * ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT 98 + + COUNT ( * ) FROM tab1
----
101

query I rowsort
SELECT 7 + - + col2 AS col0 FROM tab2
----
-16
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + 37 + - + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 37 + - + COUNT ( * ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT COUNT( * ) - - MAX( ALL + col1 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL + col1 ) AS col0 FROM tab2
----
80

query I rowsort
SELECT ALL col0 - - 68 AS col2 FROM tab2
----
114
132
143

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 53 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 85 AS col0 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT - - 97 AS col1 FROM tab1 AS cor0 WHERE NOT - 65 / - 59 * + col0 > NULL
----

query II rowsort
SELECT ALL col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT MAX( - 61 ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2532
SELECT MAX ( - 61 ) FROM tab2 cor0
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT ALL + col0 AS col0, ( col1 ) DIV - 8 + - - col1 AS col2 FROM tab2 AS cor0
----
46
45
64
68
75
59

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL + col0 AS col0, ( col1 ) / - 8 + - - col1 AS col2 FROM tab2 AS cor0
----
46
45
64
68
75
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - col0 BETWEEN - + 69 AND - col1 / ( + ( + 26 ) )
----

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT MIN( DISTINCT + + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2536
SELECT MIN ( DISTINCT + + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT 34 + + - COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2537
SELECT 34 + + - COUNT ( * ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT 59 * - col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-3396
-3921
-5613

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * - + 90 > - col2 * - col1
----

query I rowsort
SELECT - - 25 + - - col2 + ( col2 ) AS col2 FROM tab2 WHERE NOT 16 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + 15 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 22 / - 2 * + - col1 + 64 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

query II rowsort
SELECT ALL col1 + - col0, 66 AS col0 FROM tab0 AS cor0
----
-66
66
-96
66
66
66

query I rowsort
SELECT DISTINCT - col2 + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-157
-183
-97

query I rowsort
SELECT - col2 + - 7 FROM tab1
----
-103
-66
-75

query I rowsort
SELECT + 2 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-3
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT + col0 + 33 + 28 DIV + col0 FROM tab2 AS cor0
----
108
79
97

skipif mysql # not compatible
query I rowsort label-2548
SELECT + col0 + 33 + 28 / + col0 FROM tab2 AS cor0
----
108
79
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2549
SELECT ALL - 74 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 74 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT 13 DIV - + 5 AS col0 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2551
SELECT 13 / - + 5 AS col0 FROM tab2 cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col2 col0 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT DISTINCT + 53 * + 9 - - + 15 AS col0, col1 FROM tab1 cor0
----
492
14
492
47
492
5

query I rowsort
SELECT ALL ( - + col1 ) - + - col0 AS col2 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT 28 * + - MAX( - - 71 ) * + SUM( DISTINCT + - 74 ) + - + COUNT( * ) AS col2 FROM tab2
----
147109

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT 28 * + - MAX ( - - 71 ) * + SUM ( DISTINCT + - 74 ) + - + COUNT ( * ) AS col2 FROM tab2
----
147109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT AVG ( ALL - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT AVG ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - SUM( DISTINCT + 67 ) AS col2 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2557
SELECT - SUM ( DISTINCT + 67 ) AS col2 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + 47 * + MIN( - col2 ) FROM tab2
----
-2726

skipif mysql # not compatible
query I rowsort label-2558
SELECT + 47 * + MIN ( - col2 ) FROM tab2
----
-2726

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT DISTINCT - + ( + + 20 ) DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - + ( + + 20 ) / col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT + col0 DIV - col2 col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT DISTINCT + col0 / - col2 col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2563
SELECT CAST( NULL AS SIGNED ) col0, - col0 + col1 * + ( - - 36 ) + - col2 FROM tab2 AS cor0
----
NULL
1767
NULL
2279
NULL
2668

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2563
SELECT CAST ( NULL AS INTEGER ) col0, - col0 + col1 * + ( - - 36 ) + - col2 FROM tab2 AS cor0
----
NULL
1767
NULL
2279
NULL
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT DISTINCT col1 DIV - col0 + - col2 FROM tab0 AS cor0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT col1 / - col0 + - col2 FROM tab0 AS cor0
----
-10
-52
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV - 6 AS col0 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / - 6 AS col0 FROM tab0 AS cor0
----
0
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2566
SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - 62 AS col2 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT ALL + ( 83 ) FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT col0 * 46 FROM tab2
----
2116
2944
3450

query II rowsort
SELECT ALL - 75, + col1 AS col1 FROM tab1
----
-75
14
-75
47
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT ALL + CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL + CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL + + col1 + - ( CAST( NULL AS SIGNED ) ) / + col0 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + + col1 + - ( CAST ( NULL AS INTEGER ) ) / + col0 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT + - MIN( - col2 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + - MIN ( - col2 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
58

query I rowsort
SELECT - col1 - + - 62 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT - col1 * 6 FROM tab1 cor0
----
-282
-30
-84

query I rowsort
SELECT - col2 - - col0 - - col2 * col0 FROM tab2 AS cor0
----
1081
2584
4367

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - COUNT( - + col1 ) * 49 FROM tab2 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - COUNT ( - + col1 ) * 49 FROM tab2 cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT + + CAST( - col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2580
SELECT + + CAST ( - col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL 77 + col1 AS col1 FROM tab1
----
124
82
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT 76 AS col2, 20 + - ( 2 ) + 6 + - ( MAX( ALL + col1 ) ) + + + 84 AS col1 FROM tab2
----
76
31

skipif mysql # not compatible
query II rowsort label-2582
SELECT 76 AS col2, 20 + - ( 2 ) + 6 + - ( MAX ( ALL + col1 ) ) + + + 84 AS col1 FROM tab2
----
76
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT MAX( - 9 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2583
SELECT MAX ( - 9 ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL - col1 * - 93 AS col1 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT DISTINCT + 8 * + 50 * col0 FROM tab2
----
18400
25600
30000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT - + 54 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2586
SELECT - + 54 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 63 * - + 19 FROM tab1 AS cor0
----
1197

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2588
SELECT - + 40 * + SUM( DISTINCT 8 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 NOT BETWEEN + + col1 AND NULL OR ( NOT ( NOT NULL NOT IN ( + + CAST( - + col0 AS DECIMAL ), 41 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - + 40 * + SUM ( DISTINCT 8 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 NOT BETWEEN + + col1 AND NULL OR ( NOT ( NOT NULL NOT IN ( + + CAST ( - + col0 AS REAL ), 41 ) ) )
----
NULL

query I rowsort
SELECT - 7 * + 63 FROM tab0 AS cor0
----
-441
-441
-441

query I rowsort
SELECT ALL - ( + col2 ) + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT ALL + CAST( + 65 AS SIGNED ) col0 FROM tab0
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2591
SELECT ALL + CAST ( + 65 AS INTEGER ) col0 FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT ( + 7 ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - COUNT( * ) * + 75 + - 66 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2593
SELECT - COUNT ( * ) * + 75 + - 66 FROM tab1
----
-291

query I rowsort
SELECT col2 + 8 AS col0 FROM tab2
----
31
48
66

query I rowsort
SELECT col2 + - col2 * - col1 AS col0 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 WHERE NOT + 57 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT - col1 + ( col1 ) DIV 50 col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2597
SELECT - col1 + ( col1 ) / 50 col2 FROM tab2
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE NOT - col1 / col2 <> col2 + - 98 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 44 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ( + CAST( NULL AS SIGNED ) ) * 32 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ( + CAST ( NULL AS INTEGER ) ) * 32 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL SUM( ALL ( col1 ) ) - 64 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL SUM ( ALL ( col1 ) ) - 64 AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 85 + COUNT( * ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 85 + COUNT ( * ) AS col1 FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 95 + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 < + 15
----
87
21
10

query I rowsort
SELECT + col2 * + ( col2 * 75 ) FROM tab0
----
165675
735075
7500

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT col0 + col2 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2608
SELECT col1 FROM tab0 WHERE NOT CAST( + col0 AS DECIMAL ) * + col2 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2608
SELECT col1 FROM tab0 WHERE NOT CAST ( + col0 AS REAL ) * + col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL SUM( ALL 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL SUM ( ALL 1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT + col2 + CAST( 86 - 99 AS SIGNED ) AS col1 FROM tab1
----
46
55
83

skipif mysql # not compatible
query I rowsort label-2611
SELECT + col2 + CAST ( 86 - 99 AS INTEGER ) AS col1 FROM tab1
----
46
55
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT col0 FROM tab1 AS cor0 WHERE col2 * + ( CAST( - 67 AS SIGNED ) ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2612
SELECT col0 FROM tab1 AS cor0 WHERE col2 * + ( CAST ( - 67 AS INTEGER ) ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col0 + + 84 * + 53 AS col2 FROM tab2 WHERE - 59 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 33 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT + - CAST( - 15 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-2615
SELECT + - CAST ( - 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT - CAST( 85 AS SIGNED ) col1 FROM tab2 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2617
SELECT - CAST ( 85 AS INTEGER ) col1 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 = - col1 + 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN ( + col0 ) * 38 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 3 AND ( - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL 69 + + ( COUNT( * ) ) FROM tab0 WHERE 63 + ( 74 ) / ( col0 ) IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL 69 + + ( COUNT ( * ) ) FROM tab0 WHERE 63 + ( 74 ) / ( col0 ) IS NOT NULL
----
72

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL 87 * + COUNT( * ) col0 FROM tab1
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2624
SELECT ALL 87 * + COUNT ( * ) col0 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + MIN( DISTINCT - 17 ) col2 FROM tab0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2625
SELECT ALL + MIN ( DISTINCT - 17 ) col2 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL + - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 85 * col1 + col2 AS col1 FROM tab0 AS cor0
----
1795
184
6932

query I rowsort
SELECT ALL + col2 * - ( - col1 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - ( + 89 ) * + col0 AS col0 FROM tab2 WHERE ( + col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT DISTINCT + MAX( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + MAX ( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL - - col2 * - 70 FROM tab1 AS cor0
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT 39 + + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT 39 + + COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT MIN( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
NULL

query I rowsort
SELECT - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT 70 + - col1 FROM tab0 AS cor0 WHERE - 85 + - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * + ( + - 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab1 AS cor0 WHERE ( + 51 + - col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 = col2 * ( + col1 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 + - + 76 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * + + col2 )
----

query I rowsort
SELECT - col2 + + + ( + col2 ) * - - 75 AS col1 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ALL col1 + - 47 FROM tab0
----
-26
-46
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT + 45 + ( col0 ) DIV 87 - 71 FROM tab0
----
-25
-25
-26

skipif mysql # not compatible
query I rowsort label-2645
SELECT + 45 + ( col0 ) / 87 - 71 FROM tab0
----
-25
-25
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col0 col0 FROM tab2
----
2647
4564
5993

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 78 + - 44 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 37 * + + col2 + - col0 FROM tab2
----
1416
2071
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + 4 * COUNT( * ) + - COUNT( col2 + - col1 * col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 4 * COUNT ( * ) + - COUNT ( col2 + - col1 * col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT DISTINCT + - ( col2 ) + - + 86 DIV - col2 AS col0 FROM tab2 AS cor0
----
-20
-38
-57

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + - ( col2 ) + - + 86 / - col2 AS col0 FROM tab2 AS cor0
----
-20
-38
-57

query I rowsort
SELECT ALL 81 - - 43 AS col0 FROM tab1 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - 8 * + ( 87 ) AS col0 FROM tab2 AS cor0 WHERE 14 >= - 17
----
-696

query I rowsort
SELECT - + ( + + 14 ) FROM tab0 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - + MAX( DISTINCT + + 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - + MAX ( DISTINCT + + 24 ) FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 < CAST( + - 16 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 < CAST ( + - 16 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 26 * - 35 * - col2 + col1 + col2 * + 29 AS col2 FROM tab2 AS cor0
----
21648
37637
54529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT + - 74 DIV - COUNT( + col2 ) - + 16 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2659
SELECT + - 74 / - COUNT ( + col2 ) - + 16 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT COUNT( * ) AS col0, + MAX( ALL - col0 ) FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-2660
SELECT COUNT ( * ) AS col0, + MAX ( ALL - col0 ) FROM tab0
----
3
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 40 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT + MIN( ALL + + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + MIN ( ALL + + col0 ) AS col2 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, + col2 col1 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT - 58 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-58

query II rowsort
SELECT DISTINCT 65 AS col0, + 60 FROM tab2
----
65
60

query II rowsort
SELECT - col2 AS col2, + 52 FROM tab1
----
-59
52
-68
52
-96
52

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 + - 88 * + - col1 ) NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2669
SELECT DISTINCT col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2669
SELECT DISTINCT col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL ) OR ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2671
SELECT + + 45 AS col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-2671
SELECT + + 45 AS col1, CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
45
NULL
45
NULL
45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT DISTINCT - CAST( + + 99 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - ( col2 ) + - - ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - ( col2 ) + - - ( + CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + + 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + ( + MAX( - 47 ) ) + - + 95 FROM tab1 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-2675
SELECT + ( + MAX ( - 47 ) ) + - + 95 FROM tab1 AS cor0
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT - col0 + + - 6 DIV + 55 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2676
SELECT - col0 + + - 6 / + 55 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT - - col2 + - CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - - col2 + - CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT ALL - MIN( - + 40 ) AS col0, 65 FROM tab2 AS cor0
----
40
65

skipif mysql # not compatible
query II rowsort label-2679
SELECT ALL - MIN ( - + 40 ) AS col0, 65 FROM tab2 AS cor0
----
40
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT ALL - col1 / col0 + + CAST( NULL AS SIGNED ) + 11 + + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2680
SELECT ALL - col1 / col0 + + CAST ( NULL AS INTEGER ) + 11 + + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2 - + col2 * + 71
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 47 col2, col1 * ( 53 ) AS col2 FROM tab0 AS cor0
----
-34
4293
26
1113
46
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + + col0 >= NULL
----

query I rowsort
SELECT ALL - - col2 + + - 6 AS col1 FROM tab0 AS cor0
----
4
41
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 * col2 * col2 = 62 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT COUNT( * ) DIV - + 92 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT COUNT ( * ) / - + 92 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 61 * + col0 AS col1 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL - ( MAX( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - ( MAX ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 61 + + - col2 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2691
SELECT + + col2 + - CAST( NULL AS DECIMAL ) - 88 * + 76 FROM tab0 AS cor0 WHERE col0 <= + ( - col2 ) * - 54
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT + + col2 + - CAST ( NULL AS REAL ) - 88 * + 76 FROM tab0 AS cor0 WHERE col0 <= + ( - col2 ) * - 54
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT DISTINCT - + ( - CAST( - col1 AS SIGNED ) ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - + ( - CAST ( - col1 AS INTEGER ) ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT SUM( ALL + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 65 * - col2 - + col2 AS col0 FROM tab0 AS cor0
----
3008
6336
640

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - ( - col2 ) ) + + col1 <= NULL
----

query I rowsort
SELECT ALL + col1 * - col2 * - col1 * col2 + 92 * + col0 FROM tab2 AS cor0
----
1380161
15107896
9492288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2698
SELECT + col0 / ( col2 ) * - - col0 + - - 21 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 / + col2, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2698
SELECT + col0 / ( col2 ) * - - col0 + - - 21 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 / + col2, + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT + ( + col2 ) DIV + col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + ( + col2 ) / + col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = NULL AND NULL BETWEEN ( NULL ) AND - + 84 * 12
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 NOT IN ( + 96 * - 11, + col1 + 57, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT - ( col0 ) DIV + + ( + - 37 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2702
SELECT - ( col0 ) / + + ( + - 37 ) FROM tab2
----
1
1
2

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 - 82 FROM tab1
----
-14
14
-47
-14
-5
-23

query I rowsort
SELECT DISTINCT + col0 + + - 42 AS col0 FROM tab0 AS cor0
----
-27
45
55

query I rowsort
SELECT + col2 * + 72 + - col2 AS col2 FROM tab1
----
4189
4828
6816

query I rowsort
SELECT 73 * + - ( - 53 ) FROM tab0
----
3869
3869
3869

query II rowsort
SELECT DISTINCT col0 AS col2, + 80 FROM tab0
----
15
80
87
80
97
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT - SUM( - - col1 ) DIV - 27 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT - SUM ( - - col1 ) / - 27 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - - 0 * + 52 <> NULL
----

query I rowsort
SELECT ALL - + 23 * + col2 FROM tab0 AS cor0
----
-1081
-2277
-230

query I rowsort
SELECT AVG ( - ( + col1 ) ) FROM tab0 cor0 WHERE 24 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - - col2 ) + - 6 FROM tab2 AS cor0
----
-29
-46
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT ALL + col0 + - - col0 DIV col2 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + col0 + - - col0 / col2 FROM tab0 AS cor0
----
15
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - ( 82 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2715
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - ( 82 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT 19 + - + COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT 19 + - + COUNT ( * ) AS col2 FROM tab0
----
16

query I rowsort
SELECT ( - - col0 ) + 0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2718
SELECT ALL - col0 + + - CAST( NULL AS SIGNED ) AS col2, CAST( - + 67 AS SIGNED ) AS col1 FROM tab2
----
NULL
-67
NULL
-67
NULL
-67

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL - col0 + + - CAST ( NULL AS INTEGER ) AS col2, CAST ( - + 67 AS INTEGER ) AS col1 FROM tab2
----
NULL
-67
NULL
-67
NULL
-67

query I rowsort
SELECT - col0 * col1 + - col0 + 48 AS col0 FROM tab2
----
-2344
-4944
-5052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT DISTINCT + ( + + col0 ) / + 55 + col1 - + CAST( NULL AS SIGNED ) + - col1 - - col0 col2, - col2 * + + 5 FROM tab1
----
NULL
-295
NULL
-340
NULL
-480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2720
SELECT DISTINCT + ( + + col0 ) / + 55 + col1 - + CAST ( NULL AS INTEGER ) + - col1 - - col0 col2, - col2 * + + 5 FROM tab1
----
NULL
-295
NULL
-340
NULL
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ( + + COUNT( * ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2721
SELECT ( + + COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col1 - - - 42 FROM tab1
----
-47
-56
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT - 70 + + + ( - COUNT( * ) ) FROM tab2, tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT - 70 + + + ( - COUNT ( * ) ) FROM tab2, tab0 AS cor0
----
-79

query I rowsort
SELECT - - col1 * - 73 * + col1 AS col2 FROM tab1 AS cor0
----
-14308
-161257
-1825

query II rowsort
SELECT - + ( + col0 ), + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2726
SELECT ALL * FROM tab0 WHERE NOT + CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2726
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 69 ) AS col1 FROM tab2
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 81 ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 / - 80 - + 26 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL + + COUNT( * ) * - 58 AS col0 FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + + COUNT ( * ) * - 58 AS col0 FROM tab1 cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - - 38 * + COUNT( - col2 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - - 38 * + COUNT ( - col2 ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT + + col2 * - 15 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT 63 FROM tab0 AS cor0 WHERE NOT + 91 * - 67 * - col0 IS NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT - CAST( - 89 AS SIGNED ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - 61 * + + 66 FROM tab1 AS cor0
----
-4026
-4026
-4026

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 42 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT ALL - SUM( + + col2 ) * - + 77 * + 41 + - COUNT( * ) + COUNT( * ) DIV + - 18 FROM tab2
----
381994

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - SUM ( + + col2 ) * - + 77 * + 41 + - COUNT ( * ) + COUNT ( * ) / + - 18 FROM tab2
----
381994

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT MAX( - col2 ) * - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT MAX ( - col2 ) * - COUNT ( * ) FROM tab1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT ALL col2 DIV - ( - - ( col2 ) ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL col2 / - ( - - ( col2 ) ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + SUM( DISTINCT 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2742
SELECT + SUM ( DISTINCT 40 ) FROM tab0 AS cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 60 + + col1 FROM tab1 AS cor0
----
-13
-46
-55

query I rowsort
SELECT ALL 12 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + 24 + + 85 * - col0 FROM tab0
----
-1204
-7361
-8122

query I rowsort
SELECT - + 84 + + col1 * - col0 * - col0 FROM tab0 AS cor0
----
158865
18141
9325

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - + 19 * - + COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - + 19 * - + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT - COUNT( * ) DIV + 61 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT - COUNT ( * ) / + 61 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( - col2 ) + 10 FROM tab2 AS cor0
----
-13
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL - COUNT( * ) + + + COUNT( + 62 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - COUNT ( * ) + + + COUNT ( + 62 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * - 87 AS col1 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT ALL 10 + 8 * col0 AS col0 FROM tab0
----
130
706
786

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2754
SELECT DISTINCT + col0 * + - col0 + col0 * + col2 * - CAST( NULL AS DECIMAL ) + - col0 * col0 * 95 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + col0 * + - col0 + col0 * + col2 * - CAST ( NULL AS REAL ) + - col0 * col0 * 95 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 - + - 71 FROM tab2
----
13
31
48

query I rowsort
SELECT + ( + + col0 ) - - 45 FROM tab0
----
132
142
60

query I rowsort
SELECT - 83 - - 75 AS col2 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 1 - + 11 * col0 AS col0 FROM tab1
----
-1000
-560
-934

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT DISTINCT ( - + MIN( 49 ) ) AS col0, 93 AS col0 FROM tab2
----
-49
93

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT ( - + MIN ( 49 ) ) AS col0, 93 AS col0 FROM tab2
----
-49
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2761
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 68 / + + 21, + 43, - + col0, - col1 + + + 58, + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT + - ( - col1 ) * 71 * - col0 FROM tab0 AS cor0
----
-129717
-6887
-86265

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 47 AND NOT col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - MAX( + col0 ) * + ( - - COUNT( * ) ) col0 FROM tab0 cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT ALL + - MAX ( + col0 ) * + ( - - COUNT ( * ) ) col0 FROM tab0 cor0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - 83 * + + 50 * COUNT( * ) FROM tab0 AS cor0
----
-12450

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - 83 * + + 50 * COUNT ( * ) FROM tab0 AS cor0
----
-12450

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + COUNT( * ) * + 32 AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2769
SELECT + COUNT ( * ) * + 32 AS col2 FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * col2 * - 38 col1 FROM tab0
----
155382
327294
33060

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL - 87 DIV + col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - 87 / + col0 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL 74 * - SUM( ALL + 96 ) AS col1 FROM tab1
----
-21312

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 74 * - SUM ( ALL + 96 ) AS col1 FROM tab1
----
-21312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2773
SELECT DISTINCT * FROM tab2 WHERE + 83 = + CAST( NULL AS SIGNED ) / 25 + - 59 + 87 + + col0 * - col2 * - - col1
----

skipif mysql # not compatible
query III rowsort label-2773
SELECT DISTINCT * FROM tab2 WHERE + 83 = + CAST ( NULL AS INTEGER ) / 25 + - 59 + 87 + + col0 * - col2 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + 54 + - COUNT( * ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 54 + - COUNT ( * ) AS col1 FROM tab0
----
51

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL - COUNT( * ) col0 FROM tab2 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL - COUNT ( * ) col0 FROM tab2 WHERE NOT col2 IS NULL
----
-3

query I rowsort
SELECT - - col1 + ( - col1 ) * - - col1 + + 44 FROM tab2 AS cor0 WHERE 97 / + 3 IS NOT NULL
----
-2506
-4378
-5808

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1 * - 58 + + + 33
----
0

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1 * - 58 + + + 33
----
0

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE - 84 + col0 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT ALL - + ( + + 54 ) + 79 DIV + 33 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - + ( + + 54 ) + 79 / + 33 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT ALL 62 DIV + col0 - - + col1 * + col1 FROM tab0
----
1
441
6565

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL 62 / + col0 - - + col1 * + col1 FROM tab0
----
1
441
6565

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2785
SELECT ALL CAST( NULL AS DECIMAL ) + + 41 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL CAST ( NULL AS REAL ) + + 41 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT 3 AS col2, MIN( col1 ) + + 67 AS col2 FROM tab2
----
3
118

skipif mysql # not compatible
query II rowsort label-2786
SELECT 3 AS col2, MIN ( col1 ) + + 67 AS col2 FROM tab2
----
3
118

query II rowsort
SELECT ALL 53, + 56 AS col0 FROM tab2
----
53
56
53
56
53
56

query I rowsort
SELECT ALL + 32 * - col0 AS col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL - CAST( 69 AS SIGNED ) AS col2 FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - CAST ( 69 AS INTEGER ) AS col2 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 84 <> + 38 * + ( ( col0 ) ) * - 40
----

query I rowsort
SELECT DISTINCT 82 * - col2 FROM tab1 AS cor0
----
-4838
-5576
-7872

query I rowsort
SELECT - 73 FROM tab1, tab2 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 * - 86 AS col2 FROM tab2
----
23
-3956
40
-5504
58
-6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, + col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 41, - col1 AS col1 FROM tab1 AS cor0
----
41
-14
41
-47
41
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 + + 6 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 + + 6 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 15 * + 54 AS col1, col2 FROM tab2 AS cor0
----
810
23
810
40
810
58

query I rowsort
SELECT 0 * + col2 + - - 70 + + + 23 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE NOT 0 BETWEEN col2 AND + CAST( NULL AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE NOT 0 BETWEEN col2 AND + CAST ( NULL AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT 84 + + + SUM( - 69 ) + - 28 FROM tab2
----
-151

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT 84 + + + SUM ( - 69 ) + - 28 FROM tab2
----
-151

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 55 * - col2 + + - 29 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - 32 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 32 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT - MIN( + 17 ) + - 3 - - + SUM( + + col1 ) AS col1 FROM tab2 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - MIN ( + 17 ) + - 3 - - + SUM ( + + col1 ) AS col1 FROM tab2 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT MIN( - col1 ) + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2807
SELECT MIN ( - col1 ) + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 97 + col1 IN ( + 80, - col1 + + 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT col1 + + - ( CAST( + col1 AS SIGNED ) ) - col1 * + 49 * - - col2 + - col2 - col0 col1 FROM tab0 cor0
----
-10387
-186605
-5047

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT DISTINCT col1 + + - ( CAST ( + col1 AS INTEGER ) ) - col1 * + 49 * - - col2 + - col2 - col0 col1 FROM tab0 cor0
----
-10387
-186605
-5047

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 8 * + COUNT( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-2810
SELECT 8 * + COUNT ( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
24

query I rowsort
SELECT - - col0 FROM tab1 WHERE - 93 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2812
SELECT ALL col0, - ( - 71 ) * 61 + CAST( NULL AS SIGNED ) - col0 - 32 + col1 + col2 * - 40 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2812
SELECT ALL col0, - ( - 71 ) * 61 + CAST ( NULL AS INTEGER ) - col0 - 32 + col1 + col2 * - 40 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2813
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 * col1 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 85, col2 FROM tab1 cor0
----
-85
59
-85
68
-85
96

query I rowsort
SELECT DISTINCT - + col1 - - 86 AS col1 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - COUNT( ALL - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - COUNT ( ALL - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT - 8 * + 46 - 69 AS col2, 17 AS col0 FROM tab2 AS cor0
----
-437
17
-437
17
-437
17

query I rowsort
SELECT + - 57 * col1 * - col0 * 29 AS col1 FROM tab2 AS cor0
----
3877938
8145984
8306325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT DISTINCT + - MAX( - 80 ) FROM tab1 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED ) * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + - MAX ( - 80 ) FROM tab1 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER ) * col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab2 cor0 WHERE + 71 * + - ( - + col1 ) + + - ( - ( col2 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + COUNT( * ) + - 35 AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + COUNT ( * ) + - 35 AS col0 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT - col0 <> NULL ) )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT + - col2 * - col0 * - + col1 / - + 15 >= NULL
----

query I rowsort
SELECT + ( - 54 ) FROM tab1 WHERE NOT NULL > 61
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 68 * col1 + + 47 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - SUM( DISTINCT + - col0 ) * + 16 FROM tab1 WHERE NULL IS NULL
----
3632

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - SUM ( DISTINCT + - col0 ) * + 16 FROM tab1 WHERE NULL IS NULL
----
3632

query I rowsort
SELECT 18 * + col0 * col0 FROM tab1
----
130050
149058
46818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + - col0 col1, + col0 + + + ( - col1 ) FROM tab2 AS cor0
----
2346
-5
4928
-13
5025
8

query I rowsort
SELECT + 79 * + - 35 AS col2 FROM tab1 AS cor0
----
-2765
-2765
-2765

query II rowsort
SELECT + 93, col2 FROM tab0 AS cor0
----
93
10
93
47
93
99

query I rowsort
SELECT ALL - col0 * 52 * col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT CAST( + - ( col0 ) AS SIGNED ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-2833
SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT + col1 + - + ( + + 20 ) FROM tab2
----
31
47
57

query II rowsort
SELECT ALL + col1 AS col1, col1 * 88 + - col1 * - 72 AS col1 FROM tab0
----
1
160
21
3360
81
12960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * COUNT( + + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * COUNT ( + + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT - 10 * col0 + + 44 AS col1 FROM tab2
----
-416
-596
-706

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - MAX( 56 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - MAX ( 56 ) AS col0 FROM tab2
----
-56

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 69 >= NULL
----

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2841
SELECT - 13 - + 1 AS col2, - CAST( NULL AS SIGNED ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-2841
SELECT - 13 - + 1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2842
SELECT * FROM tab0 AS cor0 WHERE 19 NOT BETWEEN col1 * - col1 AND col1 * - ( - + CAST( + 47 AS DECIMAL ) ) * - + col2 + + col2 + - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2842
SELECT * FROM tab0 AS cor0 WHERE 19 NOT BETWEEN col1 * - col1 AND col1 * - ( - + CAST ( + 47 AS REAL ) ) * - + col2 + + col2 + - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - 6 + + - col2 FROM tab2 AS cor0
----
22
3
31

query II rowsort
SELECT ALL + col1 * + col2 AS col1, col0 + - + col2 + + + col2 + 94 FROM tab2 AS cor0
----
1173
140
3080
158
3886
169

query I rowsort
SELECT + - col0 * 1 * - 14 AS col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT - MAX( ALL - col2 ) DIV + CAST( + + 25 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - MAX ( ALL - col2 ) / + CAST ( + + 25 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 96 * 23 FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT + col1 DIV - 43 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2848
SELECT + col1 / - 43 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT col0 DIV + - ( ( - 90 ) ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT col0 / + - ( ( - 90 ) ) AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - col2 / + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT ALL COUNT( * ) AS col0, - 21 + + - 46 AS col2 FROM tab0
----
3
-67

skipif mysql # not compatible
query II rowsort label-2851
SELECT ALL COUNT ( * ) AS col0, - 21 + + - 46 AS col2 FROM tab0
----
3
-67

query II rowsort
SELECT - col1 AS col2, col2 * - 54 AS col2 FROM tab2
----
-51
-1242
-67
-3132
-77
-2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL col0 AS col1, CAST( - 58 AS SIGNED ) + - 81 + - col2 AS col1 FROM tab1
----
51
-235
85
-198
91
-207

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL col0 AS col1, CAST ( - 58 AS INTEGER ) + - 81 + - col2 AS col1 FROM tab1
----
51
-235
85
-198
91
-207

query II rowsort
SELECT ALL - 38 AS col1, col2 FROM tab2
----
-38
23
-38
40
-38
58

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col0 * - 30 * - col1 + ( + + 18 ) - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + MAX( ALL + + ( col1 ) ) * - + COUNT( * ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + MAX ( ALL + + ( col1 ) ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - - MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - - MIN ( col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - + col2 * - 87 AS col2 FROM tab1 cor0
----
5133
5916
8352

query I rowsort
SELECT DISTINCT 69 * col1 * ( - col1 ) FROM tab2 WHERE NOT + col2 * + 28 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = + + ( - + col0 ) - - col0 * - - col1 * 92 * col0 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + COUNT( * ) + + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2863
SELECT + COUNT ( * ) + + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT - + 76 + col0 DIV col0 FROM tab0 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-2864
SELECT - + 76 + col0 / col0 FROM tab0 AS cor0
----
-75
-75
-75

query II rowsort
SELECT + 21, 18 AS col2 FROM tab2 AS cor0 WHERE 17 + 18 IS NOT NULL
----
21
18
21
18
21
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT COUNT( + 29 ) * - 66 + 59 FROM tab2 cor0
----
-139

skipif mysql # not compatible
query I rowsort label-2866
SELECT COUNT ( + 29 ) * - 66 + 59 FROM tab2 cor0
----
-139

query I rowsort
SELECT - col2 + - col0 + + col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( + - 36 ) + col1 * - + col2 col0 FROM tab0
----
-3342
-3591
-4347

query I rowsort
SELECT DISTINCT col2 * - + col1 - - + col1 FROM tab1
----
-1330
-290
-3149

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT 11 * + - COUNT( * ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2872
SELECT 11 * + - COUNT ( * ) AS col1 FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2873
SELECT + + col1 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT + + col1 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 28 * - col2 + + 11 col1 FROM tab2 AS cor0
----
1054
1568
604

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + - col1 AND + col2
----

query I rowsort
SELECT DISTINCT + 22 + - + col2 * + col1 - 94 FROM tab2 cor0
----
-1245
-3152
-3958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT - COUNT( * ) - + - CAST( NULL AS SIGNED ) / + SUM( DISTINCT - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - col2 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT - CAST( 42 AS SIGNED ) col0 FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT - CAST ( 42 AS INTEGER ) col0 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 78 * + col0 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 + - 44 * + - col1 - col1 AND NULL
----

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
80
80
80

query I rowsort
SELECT col0 * ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + 54 * + COUNT( * ) FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-2883
SELECT + 54 * + COUNT ( * ) FROM tab2 cor0
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT ALL - + 31 AS col2, COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
-31
-9

skipif mysql # not compatible
query II rowsort label-2884
SELECT ALL - + 31 AS col2, COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-31
-9

query I rowsort
SELECT col1 * - 91 AS col0 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT ALL 14 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL 14 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 4 * - 76 AS col2 FROM tab0
----
304

query II rowsort
SELECT ( - col0 ) AS col2, + col1 + + 63 AS col1 FROM tab0
----
-15
144
-87
84
-97
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT - 12 DIV - 24 * - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - 12 / - 24 * - 69 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT COUNT( * ) * - MAX( ALL - + col0 ) / + 58 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT COUNT ( * ) * - MAX ( ALL - + col0 ) / + 58 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + - col0 col0 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT DISTINCT + 92 DIV col0 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + 92 / col0 AS col0 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT 70 DIV col0 AS col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 70 / col0 AS col1 FROM tab2 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT + col1 * ( - ( CAST( NULL AS SIGNED ) ) ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + col1 * ( - ( CAST ( NULL AS INTEGER ) ) ) + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + + 32 + - - 5 AS col0 FROM tab1 cor0
----
122
128
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT DISTINCT ( - + col1 ) + + + col1 + ( + 71 ) + - - col2 * + - col1 + + + col2 DIV - 94 * + 8 * + + col0 FROM tab2 AS cor0
----
-1102
-3009
-3815

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT ( - + col1 ) + + + col1 + ( + 71 ) + - - col2 * + - col1 + + + col2 / - 94 * + 8 * + + col0 FROM tab2 AS cor0
----
-1102
-3009
-3815

query I rowsort
SELECT ALL col1 + + + 31 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT CAST( NULL AS SIGNED ) + MAX( ALL + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT CAST ( NULL AS INTEGER ) + MAX ( ALL + col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2900
SELECT MAX( + ( - CAST( - col1 AS SIGNED ) ) ) + - 53 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2900
SELECT MAX ( + ( - CAST ( - col1 AS INTEGER ) ) ) + - 53 FROM tab1
----
-6

query I rowsort
SELECT + ( + col1 ) * + + col2 + - col0 FROM tab2
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT col0 + + + col2 - col1 * - CAST( col2 AS SIGNED ) col1 FROM tab1
----
1491
3355
439

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2902
SELECT col0 + + + col2 - col1 * - CAST ( col2 AS INTEGER ) col1 FROM tab1
----
1491
3355
439

query I rowsort
SELECT DISTINCT - + ( - - 3 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col1 * col2 + + 64 + - - 18 AS col2 FROM tab0 AS cor0
----
181
292
3889

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT - col0 DIV 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-2907
SELECT - col0 / 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

query II rowsort
SELECT + ( 96 ) * - 87, col1 FROM tab0 cor0
----
-8352
1
-8352
21
-8352
81

query I rowsort
SELECT DISTINCT ( - - col0 ) * + col1 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT - col1, col0 * - - col0 - + col2 AS col2 FROM tab1 AS cor0
----
-14
2505
-47
8213
-5
7166

query III rowsort
SELECT * FROM tab1 WHERE + - 72 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT col2 + - CAST( - + col1 AS SIGNED ) * - col2 AS col0 FROM tab1
----
-1248
-236
-3128

skipif mysql # not compatible
query I rowsort label-2912
SELECT col2 + - CAST ( - + col1 AS INTEGER ) * - col2 AS col0 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ( + col0 ) DIV - col1 FROM tab2 WHERE col2 NOT BETWEEN + col2 AND - col2 * + col2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( + col0 ) / - col1 FROM tab2 WHERE col2 NOT BETWEEN + col2 AND - col2 * + col2
----
-1
0
0

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + 40 * - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - + SUM( ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - + SUM ( ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT col0 + + ( + 97 ) AS col1 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL - 91 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - 91 / - col1 AS col1 FROM tab0 AS cor0
----
1
4
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab1 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - + COUNT( * ) - COUNT( * ) + COUNT( - - 31 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - + COUNT ( * ) - COUNT ( * ) + COUNT ( - - 31 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 37 + - 34 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT SUM( DISTINCT + + ( + - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2921
SELECT SUM ( DISTINCT + + ( + - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT - col2 * col1 + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - col2 * col1 + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - 47 + - 92 + + + 81 AS col2 FROM tab2
----
2151
2997
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + ( + COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT + ( + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT + col1 - - 55 AS col2 FROM tab2
----
106
122
132

query I rowsort
SELECT + 17 - 71 FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2927
SELECT + 31 - col0 * CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2927
SELECT + 31 - col0 * CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT + 73 + + + COUNT( * ) + + CAST( - - 10 AS SIGNED ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 73 + + + COUNT ( * ) + + CAST ( - - 10 AS INTEGER ) FROM tab0 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 7 <> - - 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT COUNT( * ) DIV MIN( ALL + - 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT COUNT ( * ) / MIN ( ALL + - 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT + ( - 84 ) AS col1 FROM tab0
----
-84

query I rowsort
SELECT ALL ( + - 73 ) AS col0 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2934
SELECT + - CAST( + - MIN( + col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2934
SELECT + - CAST ( + - MIN ( + col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 13
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= 51
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col2 * - - 94, - col2, col0 )
----

query I rowsort
SELECT ALL - col1 + 26 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - COUNT( * ) FROM tab2 WHERE NOT - ( - + ( col2 ) ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - ( - + ( col2 ) ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT MIN( ALL + - 48 ) * - + COUNT( * ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-2940
SELECT MIN ( ALL + - 48 ) * - + COUNT ( * ) AS col0 FROM tab2
----
144

query I rowsort
SELECT DISTINCT + 60 FROM tab0 WHERE NOT - + 20 - - 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 35 col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT 72 * col2 * - col2 FROM tab2 WHERE NOT + col2 + + col1 * - 37 IS NULL
----
-115200
-242208
-38088

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL MIN( DISTINCT - col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2944
SELECT ALL MIN ( DISTINCT - col2 ) col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT DISTINCT + col1 DIV + col2 * - - col1 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + col1 / + col2 * - - col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + ( - - 73 ) + + col2 AS col0 FROM tab1 cor0
----
132
141
169

query II rowsort
SELECT DISTINCT 23 AS col0, col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( - 18 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1545
-1745
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT COUNT( * ) * - 38 AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2950
SELECT COUNT ( * ) * - 38 AS col0 FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT col0 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT col0 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - COUNT( ALL + - 98 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - COUNT ( ALL + - 98 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col0, - ( col2 ) AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 35 - - - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2955
SELECT 35 - - - COUNT ( * ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL AND NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2957
SELECT ALL - + 20 + + COUNT( * ) AS col1, 26 * + COUNT( * ) * + MAX( ALL + col2 ) col2 FROM tab2 AS cor0
----
-17
4524

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2957
SELECT ALL - + 20 + + COUNT ( * ) AS col1, 26 * + COUNT ( * ) * + MAX ( ALL + col2 ) col2 FROM tab2 AS cor0
----
-17
4524

query I rowsort
SELECT - col1 + - 24 AS col1 FROM tab1 AS cor0
----
-29
-38
-71

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col1 NOT IN ( - + 95 * + ( col1 ), col2 + + col2 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 30 + + ( + + 77 ) FROM tab1 AS cor0
----
107
107
107

query I rowsort
SELECT - - col1 + - - 22 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT DISTINCT col0 * + col1 - + 80 + - col0 AS col1 FROM tab0
----
-80
1120
1660

query I rowsort
SELECT 45 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT - 7 + - - col0 + + - col2 DIV - 62 AS col0 FROM tab2
----
39
57
68

skipif mysql # not compatible
query I rowsort label-2964
SELECT - 7 + - - col0 + + - col2 / - 62 AS col0 FROM tab2
----
39
57
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT ALL + SUM( + col1 ), - MIN( ALL - - col0 ) col1 FROM tab0
----
103
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2965
SELECT ALL + SUM ( + col1 ), - MIN ( ALL - - col0 ) col1 FROM tab0
----
103
-15

query I rowsort
SELECT DISTINCT - ( col0 ) - 20 AS col0 FROM tab2 WHERE NOT - col0 * col2 * + 73 IS NULL
----
-66
-84
-95

query I rowsort
SELECT ALL - 56 * - col0 - - ( col1 ) AS col2 FROM tab0
----
4893
5433
921

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + ( + SUM( ALL - 38 ) ) * + + COUNT( * ) + + 54 FROM tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2968
SELECT + ( + SUM ( ALL - 38 ) ) * + + COUNT ( * ) + + 54 FROM tab0 cor0
----
-288

query II rowsort
SELECT DISTINCT col0, + 10 + - 13 * + col0 AS col2 FROM tab1
----
51
-653
85
-1095
91
-1173

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 53 + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT ALL COUNT( * ) AS col0, + 38 AS col0 FROM tab0 cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL COUNT ( * ) AS col0, + 38 AS col0 FROM tab0 cor0
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT - MIN( DISTINCT - 83 ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2972
SELECT - MIN ( DISTINCT - 83 ) AS col2 FROM tab1 AS cor0
----
83

query II rowsort
SELECT DISTINCT - - 26 AS col2, col0 * - 6 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
26
-522
26
-582
26
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2974
SELECT ALL + 26, CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2974
SELECT ALL + 26, CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
26
NULL
26
NULL
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT SUM( - - ( + col2 ) ) AS col0, 12 + - - 77 FROM tab2 AS cor0
----
121
89

skipif mysql # not compatible
query II rowsort label-2975
SELECT SUM ( - - ( + col2 ) ) AS col0, 12 + - - 77 FROM tab2 AS cor0
----
121
89

query I rowsort
SELECT ALL + + col2 * col0 + + + col2 + - + col2 + + col1 - + + col0 * 84 / col2 + + - col2 * - col2 * - col1 + + 88 / 38 * - col1 AS col0 FROM tab2 AS cor0 WHERE + ( + col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, - col1 * + col0 col1 FROM tab2 cor0
----
51
-2346
67
-5025
77
-4928

query II rowsort
SELECT DISTINCT + - 92, + 63 AS col0 FROM tab0 AS cor0
----
-92
63

query I rowsort
SELECT 31 + + + col1 AS col1 FROM tab2 AS cor0
----
108
82
98

query I rowsort
SELECT + 77 FROM tab2 WHERE NOT col0 IS NULL
----
77
77
77

query I rowsort
SELECT + 80 * + col2 AS col1 FROM tab2
----
1840
3200
4640

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 + + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( 42 ) ) AS col2 FROM tab2
----
-42

query I rowsort
SELECT ALL col1 * - col2 + - ( + - 16 ) + + col0 * col1 FROM tab1 cor0
----
-614
1097
146

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 82 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( 32 ) * 31
----

query I rowsort
SELECT DISTINCT + 36 * - col2 AS col2 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT - COUNT( * ) + ( + + 71 ) + + - 5 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - COUNT ( * ) + ( + + 71 ) + + - 5 FROM tab1 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * col2 * col1 / col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT - COUNT( * ) - + 92 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - COUNT ( * ) - + 92 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab2 WHERE NULL IS NULL
----
102
134
154

query III rowsort
SELECT * FROM tab0 WHERE - col0 * ( + 6 ) + - col0 IS NULL
----

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / col1 * + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / col1 * + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - - col1 BETWEEN col0 AND - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 27 FROM tab1 cor0 WHERE NOT 63 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 < + col2 * + col0 - - col1
----

query I rowsort
SELECT DISTINCT col0 * - col0 * 2 AS col0 FROM tab0 AS cor0
----
-15138
-18818
-450

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3000
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + 2 AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-3000
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 2 AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - MAX( ALL + - 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3001
SELECT - MAX ( ALL + - 41 ) FROM tab2
----
41

query I rowsort
SELECT - - col1 / - 22 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col0 ) / + + 60 + - col2 * + col2 * - 63 + - 93 NOT BETWEEN + col0 AND + 74
----

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + ( + MAX( ALL - - ( col2 ) ) ) * + COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3004
SELECT + ( + MAX ( ALL - - ( col2 ) ) ) * + COUNT ( * ) AS col2 FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 23 + - + MAX( ALL + 60 ) AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-3006
SELECT 23 + - + MAX ( ALL + 60 ) AS col1 FROM tab2
----
-37

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-23
51
-40
77
-58
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL 94 * SUM( col1 * + col2 ) FROM tab2 WHERE NOT + col2 IS NULL
----
765066

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL 94 * SUM ( col1 * + col2 ) FROM tab2 WHERE NOT + col2 IS NULL
----
765066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 65 AS col0 FROM tab0 WHERE NOT 16 * 95 IS NULL
----
5655
6305
975

query I rowsort
SELECT + col1 * col2 + 21 * 65 FROM tab0
----
1464
1575
5172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + - col1 col2 FROM tab2
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT col2 DIV 15 AS col0 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-3014
SELECT col2 / 15 AS col0 FROM tab1
----
3
4
6

query I rowsort
SELECT + 84 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT ALL 95 DIV COUNT( * ) + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL 95 / COUNT ( * ) + COUNT ( * ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - COUNT( * ) FROM tab2 WHERE + col0 + + 69 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3017
SELECT - COUNT ( * ) FROM tab2 WHERE + col0 + + 69 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT - col0 DIV col2 + 22 AS col2 FROM tab2
----
20
21
21

skipif mysql # not compatible
query I rowsort label-3018
SELECT - col0 / col2 + 22 AS col2 FROM tab2
----
20
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT COUNT( * ) * - COUNT( DISTINCT 68 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT COUNT ( * ) * - COUNT ( DISTINCT 68 ) col0 FROM tab0
----
-3

query I rowsort
SELECT + 82 * - 31 AS col1 FROM tab1
----
-2542
-2542
-2542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3021
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL > + col0 * + 62
----

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL > + col0 * + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col2 col1 FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE + 22 NOT BETWEEN 84 / - col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE + 22 NOT BETWEEN 84 / - col0 AND ( NULL )
----
0

query I rowsort
SELECT ( 15 ) AS col2 FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + 17 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN col1 AND ( NULL )
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - ( 18 ) + 58 FROM tab1 WHERE NOT 3 IS NULL
----
148
310
904

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( + ( col2 ) * - 94 ) AND 98
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN + 90 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 34 * col1 + - 26 * 75 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3033
SELECT * FROM tab1 WHERE NOT + 20 > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3033
SELECT * FROM tab1 WHERE NOT + 20 > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 75 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT MIN( - 78 ) DIV 5 AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT MIN ( - 78 ) / 5 AS col1 FROM tab2
----
-15

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT DISTINCT - 40 DIV 47 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - 40 / 47 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 + + 2 FROM tab0 AS cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - COUNT( * ) + 62 AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( * ) + 62 AS col2 FROM tab2 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL col2 DIV col2 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL col2 / col2 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 44 + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 44 + COUNT ( * ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 + + 23 AS col1 FROM tab2 AS cor0
----
100
74
90

query I rowsort
SELECT DISTINCT + 32 + ( 39 ) FROM tab1 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * col2 + - col2 BETWEEN NULL AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 2 + 73 AS col2 FROM tab0 AS cor0
----
75

query I rowsort
SELECT + 87 * col1 + - 85 FROM tab1 AS cor0
----
1133
350
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL - col2 * - CAST( col0 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL - col2 * - CAST ( col0 AS INTEGER ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( ALL + - col0 ) * - 8 col1 FROM tab0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT COUNT ( ALL + - col0 ) * - 8 col1 FROM tab0
----
-24

query I rowsort
SELECT DISTINCT + 65 + 46 AS col0 FROM tab2
----
111

query I rowsort
SELECT ALL col1 * - 86 * 72 AS col2 FROM tab0
----
-130032
-501552
-6192

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL 46 * + col1 DIV + col1 + - col1 * - ( + col1 ) AS col0 FROM tab1
----
2255
242
71

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL 46 * + col1 / + col1 + - col1 * - ( + col1 ) AS col0 FROM tab1
----
2255
242
71

query I rowsort
SELECT 72 * 36 AS col0 FROM tab2 WHERE NULL NOT BETWEEN 91 AND + 7
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= 17
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE - col2 - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - ( - ( COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3057
SELECT - ( - ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col2 * + col2 + ( - col2 ) - + col2 FROM tab2 AS cor0
----
-1680
-3480
-575

query I rowsort
SELECT ALL + + ( + - col1 ) * col2 + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT ( col2 ) + - 86 AS col2 FROM tab0 AS cor0
----
-39
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT 85 * COUNT( * ) - 53 AS col0 FROM tab1 WHERE ( NOT 83 NOT IN ( 41 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT 85 * COUNT ( * ) - 53 AS col0 FROM tab1 WHERE ( NOT 83 NOT IN ( 41 ) )
----
-53

query I rowsort
SELECT DISTINCT + col2 + 37 FROM tab2
----
60
77
95

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 85 ) = + col0 - 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT CAST( + col1 AS SIGNED ) + col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3066
SELECT CAST ( + col1 AS INTEGER ) + col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - 78 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - 78 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - + MAX( + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - + MAX ( + 32 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN + col0 AND - col1 * 53
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - + 61
----

query I rowsort
SELECT ALL - ( ( + AVG ( DISTINCT - ( 58 ) ) ) ) FROM tab2 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT DISTINCT - 40 col1 FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND ( + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3074
SELECT DISTINCT - 40 col1 FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 79 * - + COUNT( * ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 79 * - + COUNT ( * ) AS col1 FROM tab1
----
-237

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * + - 60 AND NULL
----

query I rowsort
SELECT + 45 * - - col0 FROM tab1
----
2295
3825
4095

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3078
SELECT DISTINCT - CAST( + 16 AS SIGNED ), 0 AS col2 FROM tab0
----
-16
0

skipif mysql # not compatible
query II rowsort label-3078
SELECT DISTINCT - CAST ( + 16 AS INTEGER ), 0 AS col2 FROM tab0
----
-16
0

query I rowsort
SELECT ALL + col2 + + 47 FROM tab0 WHERE 96 < NULL
----

query I rowsort
SELECT - 92 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-106
-139
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT + MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( + 13 AS SIGNED ) / + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( + 13 AS INTEGER ) / + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + + + col0 * 83 <> ( NULL )
----

query I rowsort
SELECT + col2 * + - 41 FROM tab1 AS cor0
----
-2419
-2788
-3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * + 49 col2 FROM tab0 AS cor0 WHERE 65 + + + 21 NOT IN ( - 35 )
----
1960

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - COUNT( * ) * - - 83 AS col0 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - COUNT ( * ) * - - 83 AS col0 FROM tab2
----
-249

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT col0 DIV + 96 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT col0 / + 96 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < + col2 * + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT - - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - col2 * col1 + 89 AS col1 FROM tab1 cor0
----
-1386
-150123
-18727

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT - - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( 78 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND col1 * col0 + 9
----

query I rowsort
SELECT 79 + - col1 AS col0 FROM tab1 AS cor0
----
32
65
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 + - col2 - ( 58 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + MAX( + ( 10 ) ) * + + SUM( ALL - - col0 ) FROM tab2
----
1850

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + MAX ( + ( 10 ) ) * + + SUM ( ALL - - col0 ) FROM tab2
----
1850

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 / - - 5 > ( - ( col1 ) ) )
----

query I rowsort
SELECT 66 + - + 51 - - - col0 * - 11 * - - col0 AS col1 FROM tab1
----
28626
79490
91106

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + SUM( - 35 ) + - + 91 FROM tab1
----
-196

skipif mysql # not compatible
query I rowsort label-3100
SELECT + SUM ( - 35 ) + - + 91 FROM tab1
----
-196

query I rowsort
SELECT ( - - col1 ) + + col2 + 55 AS col1 FROM tab1
----
119
165
170

query I rowsort
SELECT col2 * - - 36 * + col0 * - col2 + - col2 * - col0 + - col0 FROM tab1
----
-10646930
-15142127
-16915731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, - 32 + - col2 - + col1 + - + col0 - col0 AS col2 FROM tab0
----
15
-190
87
-237
97
-326

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT ALL - COUNT( * ), + 14 col1 FROM tab0
----
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT ALL - COUNT ( * ), + 14 col1 FROM tab0
----
-3
14

query II rowsort
SELECT DISTINCT col0 + + - ( col2 ) + + - col2, - col2 - 84 + col0 AS col2 FROM tab1 AS cor0
----
-141
-129
-33
-58
-45
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL + 50 + + col2 + - col2 * + ( col0 ) * CAST( NULL AS SIGNED ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT ALL + 50 + + col2 + - col2 * + ( col0 ) * CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT col0 * col2 DIV - col0 + + 32 + + 12 FROM tab0 AS cor0
----
-3
-55
34

skipif mysql # not compatible
query I rowsort label-3109
SELECT col0 * col2 / - col0 + + 32 + + 12 FROM tab0 AS cor0
----
-3
-55
34

query II rowsort
SELECT col2, 98 * - col2 + + - col1 AS col1 FROM tab2 AS cor0
----
23
-2305
40
-3997
58
-5751

query I rowsort
SELECT 42 - + ( + - col2 ) AS col2 FROM tab1
----
101
110
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - COUNT( * ) - + COUNT( * ) + + COUNT( * ) * + 36 AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) * + 36 AS col2 FROM tab2
----
102

query I rowsort
SELECT - 8 * - + col1 * ( + col2 ) - - col2 FROM tab2
----
24680
31146
9407

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3114
SELECT ALL - col0 * - ( CAST( NULL AS DECIMAL ) ) + + 31 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - col0 * - ( CAST ( NULL AS REAL ) ) + + 31 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + 44
----

query I rowsort
SELECT - - 87 AS col1 FROM tab0 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0, - 87, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3118
SELECT - - CAST( NULL AS SIGNED ) / CAST( + col0 AS SIGNED ) AS col2, - col1 AS col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-3118
SELECT - - CAST ( NULL AS INTEGER ) / CAST ( + col0 AS INTEGER ) AS col2, - col1 AS col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT + MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT + MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 / + 22 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT MIN( ALL ( - col0 ) ) DIV - ( + COUNT( * ) ) + 11 FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN - - 63 AND col1 + - + 74 )
----
36

skipif mysql # not compatible
query I rowsort label-3121
SELECT MIN ( ALL ( - col0 ) ) / - ( + COUNT ( * ) ) + 11 FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN - - 63 AND col1 + - + 74 )
----
36

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT - col0 DIV + 25 AS col0 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT - col0 / + 25 AS col0 FROM tab0
----
-3
-3
0

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE - col1 BETWEEN ( - col0 ) AND - col2
----
-21

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + 55 NOT IN ( col0, - 58 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / - 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / - 79 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT DISTINCT 97, + COUNT( * ) AS col2 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-3127
SELECT DISTINCT 97, + COUNT ( * ) AS col2 FROM tab2
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT 24 DIV - col1 col2 FROM tab2 WHERE NOT ( 54 * + + col2 * col1 ) IS NULL OR ( 73 * + 77 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT DISTINCT 24 / - col1 col2 FROM tab2 WHERE NOT ( 54 * + + col2 * col1 ) IS NULL OR ( 73 * + 77 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT CAST( NULL AS SIGNED ) + - 93 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT CAST ( NULL AS INTEGER ) + - 93 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 + - col2 FROM tab1 AS cor0
----
-10
18
27

query I rowsort
SELECT - col1 * + col2 * - col1 + + col1 * + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
240240
264248
60996

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT DISTINCT + col2 DIV col2 * + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + col2 / col2 * + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT col0 DIV - col1 + + col1 + - col1 - - + 85 * + col1 + - col1 FROM tab2 cor0
----
4284
5627
6468

skipif mysql # not compatible
query I rowsort label-3135
SELECT col0 / - col1 + + col1 + - col1 - - + 85 * + col1 + - col1 FROM tab2 cor0
----
4284
5627
6468

query I rowsort
SELECT - 73 * - col0 + - col2 + 14 FROM tab2 AS cor0
----
3349
4646
5431

query I rowsort
SELECT 48 + + 9 AS col2 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 NOT BETWEEN NULL AND + 35
----

query I rowsort
SELECT DISTINCT - + col1 * 22 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT - - 25 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + COUNT( + col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3141
SELECT + COUNT ( + col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE + col2 - - - col2 / + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * + + col0 - - - 32 AS col2 FROM tab0
----
-1946
-2166
-362

query I rowsort
SELECT ALL col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col2 + - 85 * + 9 FROM tab1 cor0
----
-824
-833
-861

query I rowsort
SELECT 22 + + 39 AS col2 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT DISTINCT 89, + col2 FROM tab1
----
89
59
89
68
89
96

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + col2 - - - 61 FROM tab1 cor0
----
4835
4954
6127

query I rowsort
SELECT ( - 74 ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL AND col2 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + ( - COUNT( * ) ) DIV - COUNT( * ) + 22 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + ( - COUNT ( * ) ) / - COUNT ( * ) + 22 FROM tab2 AS cor0
----
23

query II rowsort
SELECT 60 AS col1, + 63 AS col0 FROM tab2 cor0
----
60
63
60
63
60
63

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT ( NULL > + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ( ( - + col1 ) ) / col2 AS col1 FROM tab2 WHERE NOT - col2 + - col0 * - CAST( NULL AS SIGNED ) + 61 + + - col2 + 49 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3157
SELECT ( ( - + col1 ) ) / col2 AS col1 FROM tab2 WHERE NOT - col2 + - col0 * - CAST ( NULL AS INTEGER ) + 61 + + - col2 + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) + 90 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) + 90 IS NOT NULL )
----

query I rowsort
SELECT + col1 * - - 18 AS col0 FROM tab1
----
252
846
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 NOT IN ( + 47 + - col0 )
----

query II rowsort
SELECT DISTINCT - + col0, col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 * - col1 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 * - col1 IS NOT NULL )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT - col2 DIV 27 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT - col2 / 27 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + + 88 + 24 * 20 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
571

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + + 88 + 24 * 20 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
571

query I rowsort
SELECT + + col1 * - col1 FROM tab0 AS cor0 WHERE NOT + 54 * - + col1 IS NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - + 23 FROM tab1 AS cor0 WHERE NOT col1 < ( + - ( + col0 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - COUNT( * ) * - COUNT( * ) * 19 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-3168
SELECT - COUNT ( * ) * - COUNT ( * ) * 19 FROM tab2
----
171

query I rowsort
SELECT - col2 * + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

query II rowsort
SELECT DISTINCT - 41 AS col0, col1 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-41
1
-41
21
-41
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT + CAST( + 13 AS SIGNED ) AS col2 FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) AS col2 FROM tab2 cor0
----
13

query I rowsort
SELECT DISTINCT + - 51 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 * 5 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + + 87 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3174
SELECT + + 87 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT - 77 + col0 + - - col0 * - col1 * + 34 FROM tab1
----
-14442
-145404
-24302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT - col2 * + 23 * + col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - col2 * + 23 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 - + 47, col1 + - - ( + + 47 ) AS col1 FROM tab0
----
-26
68
-46
48
34
128

query I rowsort
SELECT DISTINCT col0 * 11 FROM tab1
----
1001
561
935

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT - - COUNT( * ) - ( - MIN( + 88 ) ) + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT - - COUNT ( * ) - ( - MIN ( + 88 ) ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT 30 * - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT 30 * - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + SUM( 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + SUM ( 37 ) FROM tab0
----
111

query I rowsort
SELECT + 74 + + 3 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ( - 55 ) FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT DISTINCT COUNT( * ) DIV + 66 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT COUNT ( * ) / + 66 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ( SUM( + col1 ) ) AS col2, + 10 AS col0 FROM tab2 AS cor0
----
195
10

skipif mysql # not compatible
query II rowsort label-3186
SELECT ( SUM ( + col1 ) ) AS col2, + 10 AS col0 FROM tab2 AS cor0
----
195
10

query I rowsort
SELECT ALL col1 + - - 11 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, col2 + - col1 col2 FROM tab1 AS cor0
----
14
82
47
21
5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - - SUM( ALL 83 ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3189
SELECT - - SUM ( ALL 83 ) FROM tab2 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT - ( CAST( + 47 AS SIGNED ) ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - ( CAST ( + 47 AS INTEGER ) ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT DISTINCT 87 * + + col1 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col0 / - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - 50 FROM tab2 WHERE NOT - - ( - + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + - 46 AS col2 FROM tab1 AS cor0
----
-32
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 2 + + - col2 col1, col1 AS col0 FROM tab1
----
-57
5
-66
47
-94
14

query I rowsort
SELECT + 39 + + + 75 AS col0 FROM tab2
----
114
114
114

query I rowsort
SELECT + col2 * + - ( - - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT - 20 * - col1 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL CAST( + col1 AS SIGNED ) + + 7 - 38 * 95 col0 FROM tab1 AS cor0
----
-3556
-3589
-3598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT ALL CAST ( + col1 AS INTEGER ) + + 7 - 38 * 95 col0 FROM tab1 AS cor0
----
-3556
-3589
-3598

query I rowsort
SELECT DISTINCT + col0 + + - 80 - col2 * 24 + + col2 FROM tab0 AS cor0
----
-1146
-223
-2260

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + col2 - - 39 FROM tab1
----
107
135
98

query I rowsort
SELECT DISTINCT col2 + + + 81 * + - col0 FROM tab2
----
-3703
-5144
-6017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT CAST( - col0 AS SIGNED ) - + col2 + + + col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3205
SELECT CAST ( - col0 AS INTEGER ) - + col2 + + + col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 59 - - 35 AS col0 FROM tab0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col0 * col2 col0 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 71 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 71 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 68 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT ALL 62 + + - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53
9

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL 62 + + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53
9

query I rowsort
SELECT DISTINCT - + col0 * + col2 * + ( - + 94 ) + col2 AS col2 FROM tab0 AS cor0
----
66317
81790
902781

query II rowsort
SELECT + 40 * col0 AS col0, - 96 FROM tab0 AS cor0
----
3480
-96
3880
-96
600
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT + col1 DIV - 49 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + col1 / - 49 AS col2 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + 45 + - MAX( CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + 45 + - MAX ( CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 57 * + col2 AS col2 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT ALL + 12 DIV + + COUNT( * ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + 12 / + + COUNT ( * ) AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT + ( + - MAX( + 99 ) ) DIV - 32 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3218
SELECT + ( + - MAX ( + 99 ) ) / - 32 AS col2 FROM tab0
----
3

query I rowsort
SELECT 98 * + col0 * ( - - col2 ) AS col1 FROM tab1
----
479808
491470
606424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3220
SELECT DISTINCT COUNT( ALL + ( + 52 ) ) DIV - + COUNT( * ) + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT COUNT ( ALL + ( + 52 ) ) / - + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL COUNT( * ) + - 63 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COUNT ( * ) + - 63 FROM tab0 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 97 + - 84 col0, 60 FROM tab0 AS cor0
----
14
60
34
60
94
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + ( SUM( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + ( SUM ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
223

query II rowsort
SELECT 36, 75 * + col1 + + col1 AS col0 FROM tab1
----
36
1064
36
3572
36
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT + + col2 - - col0 DIV + + ( + 97 ) - + 25 + + col2 AS col0 FROM tab1 AS cor0
----
111
167
93

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + col2 - - col0 / + + ( + 97 ) - + 25 + + col2 AS col0 FROM tab1 AS cor0
----
111
167
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 72 NOT BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + col1 * - col1 * + - col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col2 + + - ( - + col2 ) FROM tab2 cor0
----
157
183
97

query I rowsort
SELECT + 99 + + 43 + + - col0 FROM tab2 AS cor0
----
67
78
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 20 AND NULL
----

query I rowsort
SELECT DISTINCT + + 61 + + 36 AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL - ( - col0 ) * + col0 * + col0 * 36 + + ( col2 ) FROM tab1
----
22108559
27128624
4775532

query II rowsort
SELECT DISTINCT 2 * 82 AS col2, col0 FROM tab1
----
164
51
164
85
164
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL ( - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 + - 70 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT ALL col0 FROM tab1 WHERE col0 NOT IN ( - - col2, CAST( - - col0 AS SIGNED ) + + col2 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL col0 FROM tab1 WHERE col0 NOT IN ( - - col2, CAST ( - - col0 AS INTEGER ) + + col2 )
----
51
85
91

query I rowsort
SELECT + + 37 * - col2 - 68 FROM tab2 AS cor0
----
-1548
-2214
-919

query II rowsort
SELECT DISTINCT 6 AS col1, 86 AS col2 FROM tab1 AS cor0
----
6
86

query II rowsort
SELECT + - col0, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT ALL - + ( col2 ) + - col1 + + + 7, + col2 AS col1 FROM tab2 AS cor0
----
-110
40
-118
58
-67
23

query I rowsort
SELECT 20 + col1 * + 59 FROM tab1 AS cor0
----
2793
315
846

query II rowsort
SELECT DISTINCT col0 * - 48 * 21 * - 99 AS col0, col1 AS col0 FROM tab0
----
1496880
81
8681904
21
9679824
1

query I rowsort
SELECT - 44 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL - 57 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - 57 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT COUNT( * ) * + COUNT( + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3248
SELECT COUNT ( * ) * + COUNT ( + col1 ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 78 < col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + col1 + + - ( - col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 58 AS col1, + 82 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
58
82
58
82
58
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL SUM( DISTINCT - 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL SUM ( DISTINCT - 7 ) AS col2 FROM tab0
----
-7

query I rowsort
SELECT + 14 + - - col1 FROM tab1
----
19
28
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col1 FROM tab1 WHERE + + col0 IS NOT NULL
----
-37
-44
-80

query I rowsort
SELECT - col2 * col1 * 82 * + 92 + col0 FROM tab0 AS cor0
----
-1584153
-28719993
-746759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT + + COUNT( * ) DIV - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3257
SELECT + + COUNT ( * ) / - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + + MAX( DISTINCT + + col0 ) + + 90 + + AVG ( DISTINCT col1 ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND + 55 + - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + + MAX ( DISTINCT + + col0 ) + + 90 + + AVG ( DISTINCT col1 ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND + 55 + - + col2
----
NULL

query II rowsort
SELECT ALL + ( + col0 ) AS col0, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col1 * + 63 AS col0 FROM tab2
----
3213
4221
4851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3261
SELECT + CAST( NULL AS SIGNED ) AS col2, - col1 * + 23 * + 68 * - + col1 col0 FROM tab1
----
NULL
306544
NULL
3454876
NULL
39100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3261
SELECT + CAST ( NULL AS INTEGER ) AS col2, - col1 * + 23 * + 68 * - + col1 col0 FROM tab1
----
NULL
306544
NULL
3454876
NULL
39100

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 * col1 AS col1 FROM tab1
----
-14
-714
-47
-4277
-5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL SUM( + - 76 ) AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL SUM ( + - 76 ) AS col2 FROM tab2
----
-228

query I rowsort
SELECT - - 57 AS col1 FROM tab2 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - 44 * - COUNT( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
396

skipif mysql # not compatible
query I rowsort label-3265
SELECT - 44 * - COUNT ( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL + MIN( ALL + col2 ) col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ALL + MIN ( ALL + col2 ) col1 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - col2 + - - ( + ( + 93 ) ) FROM tab0 AS cor0
----
-6
46
83

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 18 + col1 * + - col0 AS col0 FROM tab1
----
-4295
-443
-732

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT + 85 DIV - 43 + col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + 85 / - 43 + col0 AS col0 FROM tab0
----
14
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT - 29 DIV col1 + - 38 AS col0 FROM tab1
----
-38
-40
-43

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 29 / col1 + - 38 AS col0 FROM tab1
----
-38
-40
-43

query I rowsort
SELECT ALL - 42 - + 96 AS col2 FROM tab2 AS cor0
----
-138
-138
-138

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + 96 + - - ( + col2 ) * - 49 FROM tab0
----
-4754
4354
47

query I rowsort
SELECT ALL ( col1 ) * - 8 * - + col0 - + 20 FROM tab2
----
18748
39404
40180

query II rowsort
SELECT DISTINCT + col0 * + col0, + ( - + ( col0 ) ) FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT - ( + MIN( ALL + 75 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - ( + MIN ( ALL + 75 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-75

query I rowsort
SELECT ALL + - 48 * 6 AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * - col1 * - 4 IS NULL
----
-288
-288
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL + + col0 DIV + - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + col0 / + - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 92 * + col2 * + 29 * + 75 BETWEEN + ( - + col0 ) AND ( + col2 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab0
----
-11
-11
-11

query II rowsort
SELECT ALL - col1 AS col0, col0 FROM tab0 WHERE NOT ( NOT 60 * - + 56 * - - 73 * - 0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL + 22 DIV - 36 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + 22 / - 36 FROM tab0
----
0
0
0

query III rowsort
SELECT - col0 / col0 AS col1, col0 / 28 + - 17 AS col1, + col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 98 * - 9 + - 19 AS col1 FROM tab1 AS cor0
----
863

query I rowsort
SELECT col0 * + 73 * - col2 FROM tab2
----
-186880
-317550
-77234

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + + COUNT( * ) - + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + + COUNT ( * ) - + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 + + - col0 + col1 * + + col0 IS NULL
----
51
85
91

query II rowsort
SELECT ALL + + 69 AS col0, - col2 AS col0 FROM tab0 cor0
----
69
-10
69
-47
69
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL - col2 + + - col0 + CAST( NULL AS SIGNED ) * + ( + + col0 ) * + col1 + - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - col2 + + - col0 + CAST ( NULL AS INTEGER ) * + ( + + col0 ) * + col1 + - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT ALL - COUNT( * ) col0, COUNT( * ) * + 90 col2 FROM tab0 AS cor0
----
-3
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3290
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) * + 90 col2 FROM tab0 AS cor0
----
-3
270

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + col2 + - 39
----

query I rowsort
SELECT + ( + 9 ) + 63 * col1 FROM tab2 AS cor0
----
3222
4230
4860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 AS col1, 64 col2 FROM tab0 AS cor0
----
-34
64
-34
64
-34
64

query I rowsort
SELECT DISTINCT + - col2 + 70 + + col0 FROM tab1 AS cor0
----
25
93
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + ( - - MAX( - col1 ) ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3295
SELECT + ( - - MAX ( - col1 ) ) AS col1 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT + MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( + + 71 ) col1 FROM tab2 AS cor0
----
-117
-135
-146

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
17

query I rowsort
SELECT DISTINCT col2 * + 94 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT DISTINCT - - ( + 87 ) * + 68 AS col0 FROM tab0 AS cor0
----
5916

query I rowsort
SELECT - col0 * - 45 * + col2 FROM tab0 cor0
----
31725
39150
432135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + - col1 * + - col0 + - - CAST( NULL AS SIGNED ) + - col2 * 50 / - 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < col0 / + CAST( + 99 AS SIGNED ) + - + col1 ) OR ( + col0 / - + col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - col1 * + - col0 + - - CAST ( NULL AS INTEGER ) + - col2 * 50 / - 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < col0 / + CAST ( + 99 AS INTEGER ) + - + col1 ) OR ( + col0 / - + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT CAST( - 39 AS SIGNED ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT CAST ( - 39 AS INTEGER ) FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 73 * col2 AS col0 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT DISTINCT 86 * + col0 * col2 AS col1 FROM tab2
----
220160
374100
90988

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT 50 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3308
SELECT 50 / + col1 FROM tab1
----
1
10
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT MAX( ALL - + col0 ) AS col1, - COUNT( * ) FROM tab2
----
-46
-3

skipif mysql # not compatible
query II rowsort label-3309
SELECT MAX ( ALL - + col0 ) AS col1, - COUNT ( * ) FROM tab2
----
-46
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 + - ( - + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT col1 * + + col0 * 19 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT col1 * + + col0 * 19 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3312
SELECT * FROM tab2 AS cor0 WHERE + col2 - col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3312
SELECT * FROM tab2 AS cor0 WHERE + col2 - col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * col0 + - + col0 + col1 * col0 AS col0, 63 col0 FROM tab0 AS cor0
----
2415
63
3567
63
97
63

query I rowsort
SELECT + - ( col0 ) * col1 + 69 * + col1 * + ( 23 ) + + - ( - 45 ) FROM tab1 AS cor0
----
21549
70357
7555

query I rowsort
SELECT DISTINCT 4 + col0 FROM tab1 AS cor0
----
55
89
95

query I rowsort
SELECT ( + - col1 ) * - col1 + col2 + + + col0 AS col1 FROM tab0
----
197
538
6623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL - CAST( - 26 AS SIGNED ) col2 FROM tab2
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3318
SELECT ALL - CAST ( - 26 AS INTEGER ) col2 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL col0 - - ( - 24 ) AS col1 FROM tab2
----
22
40
51

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - - col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL col1 + ( 1 ) AS col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT - + CAST( - ( + - COUNT( * ) ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3323
SELECT - + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT 83 * + + col2 FROM tab1
----
4897
5644
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT + COUNT( * ) * - 65 + - SUM( DISTINCT + - 24 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + COUNT ( * ) * - 65 + - SUM ( DISTINCT + - 24 ) FROM tab0 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL - ( + CAST( col2 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3328
SELECT ALL - ( + CAST ( col2 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - - CAST( NULL AS SIGNED ) / COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - - CAST ( NULL AS INTEGER ) / COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT + - 34 * SUM( col0 ) DIV + 26 FROM tab2 cor0
----
-241

skipif mysql # not compatible
query I rowsort label-3330
SELECT + - 34 * SUM ( col0 ) / + 26 FROM tab2 cor0
----
-241

query I rowsort
SELECT DISTINCT col0 * - + col0 * - 59 AS col1 FROM tab2
----
124844
241664
331875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * - col2 col1 FROM tab2
----
1932
3360
4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3333
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( - + 65 ) FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL - COUNT( * ) * 88 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - COUNT ( * ) * 88 FROM tab1
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT col2 DIV + 98 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col2 / + 98 FROM tab0
----
0
1

query II rowsort
SELECT 26 AS col1, col1 AS col0 FROM tab1
----
26
14
26
47
26
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT col1 BETWEEN NULL AND + + 97
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3340
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 5 + col2 FROM tab0 AS cor0
----
42
5
94

query I rowsort
SELECT DISTINCT - + col2 * + col2 * + col1 + ( - 12 ) FROM tab2 AS cor0
----
-123212
-225400
-26991

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - + COUNT( * ) + - 65 col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT ALL - + COUNT ( * ) + - 65 col1 FROM tab2 AS cor0
----
-68

query II rowsort
SELECT + col1 + - col1 AS col2, col2 AS col0 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL ( + col0 ) * - - col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL 90 DIV + SUM( DISTINCT - 68 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 90 / + SUM ( DISTINCT - 68 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL + + 98 + col1 AS col0 FROM tab2 AS cor0
----
149
165
175

query I rowsort
SELECT - - 53 + + col1 AS col0 FROM tab1 AS cor0
----
100
58
67

query I rowsort
SELECT 5 + 1 - + col1 / + col2 + 86 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 / + col1 IS NULL
----

query I rowsort
SELECT ALL - - 63 + col0 + 44 AS col0 FROM tab0 AS cor0
----
122
194
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + col1 * - col1 col2 FROM tab2 AS cor0
----
-2521
-4409
-5849

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - 71 * 32 / + 22 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 83 + + 70 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT + 10 + - COUNT( * ) * 65 AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT + 10 + - COUNT ( * ) * 65 AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT - 79 - + CAST( + 65 AS SIGNED ) + + - col1 * - col1 + - col0 FROM tab1
----
-204
1
1974

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 79 - + CAST ( + 65 AS INTEGER ) + + - col1 * - col1 + - col0 FROM tab1
----
-204
1
1974

query I rowsort
SELECT 10 - + col0 AS col0 FROM tab1
----
-41
-75
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3358
SELECT ALL - 97 * + + 13 - + CAST( NULL AS DECIMAL ) AS col0, col0 + 50 FROM tab2
----
NULL
114
NULL
125
NULL
96

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - 97 * + + 13 - + CAST ( NULL AS REAL ) AS col0, col0 + 50 FROM tab2
----
NULL
114
NULL
125
NULL
96

query I rowsort
SELECT - 89 - + 72 AS col2 FROM tab0
----
-161
-161
-161

query I rowsort
SELECT - col1 * - - col1 + - col2 AS col2 FROM tab1 cor0
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL - MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN + 1 + + col2 AND + 17 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT COUNT( * ), + 61 AS col2 FROM tab2
----
3
61

skipif mysql # not compatible
query II rowsort label-3363
SELECT COUNT ( * ), + 61 AS col2 FROM tab2
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL + MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT MIN( + - 96 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3365
SELECT MIN ( + - 96 ) AS col1 FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 84 + + - 52 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL + COUNT( * ) * 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + COUNT ( * ) * 11 FROM tab0
----
33

query II rowsort
SELECT col2, - col2 + + - 11 + + col2 AS col2 FROM tab2
----
23
-11
40
-11
58
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT - 35 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-35
3

skipif mysql # not compatible
query II rowsort label-3369
SELECT - 35 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-35
3

query I rowsort
SELECT + 5 * + col1 AS col2 FROM tab1 cor0
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + COUNT( DISTINCT - col0 ) * - 94 FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3371
SELECT + COUNT ( DISTINCT - col0 ) * - 94 FROM tab0 cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT COUNT( * ) * - ( - 47 ) * COUNT( * ) FROM tab0
----
423

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT COUNT ( * ) * - ( - 47 ) * COUNT ( * ) FROM tab0
----
423

query I rowsort
SELECT 2 * - 67 AS col1 FROM tab1
----
-134
-134
-134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 58 + - + 6 FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT - col0 + - CAST( - - 41 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-143
-211
-223

skipif mysql # not compatible
query I rowsort label-3377
SELECT - col0 + - CAST ( - - 41 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-143
-211
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 8 < + - ( col1 ) - + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - COUNT( * ) + - 85 AS col0 FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - COUNT ( * ) + - 85 AS col0 FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
-88

query I rowsort
SELECT ALL + + ( - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT 80 * 87 + + ( - 29 ) + - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
6922

skipif mysql # not compatible
query I rowsort label-3381
SELECT 80 * 87 + + ( - 29 ) + - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
6922

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT + 5 - - col2 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT - col0 + + col0 + + - 29 + + col0 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
33106
8671
950668

query I rowsort
SELECT ALL + + 92 + - 53 * + 50 FROM tab1 cor0
----
-2558
-2558
-2558

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - + COUNT( - col1 ) + + COUNT( * ) + - + COUNT( - 15 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3387
SELECT - + COUNT ( - col1 ) + + COUNT ( * ) + - + COUNT ( - 15 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + 32 + col2 - + + col1 FROM tab0
----
-2
130
21

query I rowsort
SELECT - 72 + + ( col2 ) AS col2 FROM tab0
----
-25
-62
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3391
SELECT * FROM tab1 WHERE + ( + + CAST( - 91 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3391
SELECT * FROM tab1 WHERE + ( + + CAST ( - 91 AS REAL ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT + col2 + 79 * - + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT + col2 + 79 * - + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 90 + + - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3393
SELECT 90 + + - COUNT ( * ) FROM tab2
----
87

query III rowsort
SELECT * FROM tab1 WHERE - - 3 * col1 * + col0 + - 36 - - 68 IS NULL
----

query I rowsort
SELECT - col2 + + 48 FROM tab0
----
-51
1
38

query I rowsort
SELECT DISTINCT col2 + + 56 + - + col0 FROM tab2
----
32
33
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT ALL - col1 DIV + 35 - + col0 AS col2 FROM tab1
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - col1 / + 35 - + col0 AS col2 FROM tab1
----
-51
-85
-92

query I rowsort
SELECT ALL col0 - + + col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 18 - + 42 * col1 AS col1 FROM tab0
----
-24
-3384
-864

query I rowsort
SELECT 39 * + + 61 FROM tab0
----
2379
2379
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - COUNT( * ) * MIN( DISTINCT - col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COUNT ( * ) * MIN ( DISTINCT - col0 ) FROM tab2
----
225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 61 <> - - col1
----

query II rowsort
SELECT col0, - col2 * - col1 * + col2 AS col2 FROM tab0 AS cor0
----
15
178929
87
2100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3405
SELECT ALL 74, + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

skipif mysql # not compatible
query II rowsort label-3405
SELECT ALL 74, + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT - + 94 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT - + 94 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3407
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + + col0 * - col0 * 22 + - col1, + 96 col0 FROM tab2 AS cor0
----
2141341
96
5767091
96
9281183
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 21 ) * - col0 * + 8 * + - col1 AS col1 FROM tab2
----
394128
827904
844200

query I rowsort
SELECT ALL ( + col0 ) * 88 + 86 AS col2 FROM tab2
----
4134
5718
6686

query I rowsort
SELECT DISTINCT col2 * - 72 * col2 + + col2 AS col2 FROM tab2
----
-115160
-242150
-38065

query I rowsort
SELECT ALL - ( - + 79 ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL ( - col0 ) * - - 19 AS col0 FROM tab1
----
-1615
-1729
-969

query II rowsort
SELECT + 35 AS col1, - col0 AS col1 FROM tab1
----
35
-51
35
-85
35
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0, + col1 )
----

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT COUNT( * ) * 53 * + - 48 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT COUNT ( * ) * 53 * + - 48 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 <= - + 65 / + - col1 - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3419
SELECT COUNT ( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 35 + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-10
58
61

query II rowsort
SELECT 82, 38 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - col0
----

query II rowsort
SELECT ALL + col0 * col0 AS col0, + col2 + + 69 AS col0 FROM tab0
----
225
116
7569
79
9409
168

query I rowsort
SELECT ALL + + 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + - ( 15 ) DIV col1 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT + - ( 15 ) / col1 FROM tab0 AS cor0
----
-15
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT ( COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL + col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + - 14 FROM tab0
----
113
24
61

query I rowsort
SELECT DISTINCT - 26 FROM tab2, tab1 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL CAST( 85 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL CAST ( 85 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT - CAST( - 56 AS SIGNED ) * + MAX( - + col1 ) FROM tab2
----
-2856

skipif mysql # not compatible
query I rowsort label-3430
SELECT - CAST ( - 56 AS INTEGER ) * + MAX ( - + col1 ) FROM tab2
----
-2856

query I rowsort
SELECT 8 * col1 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT ALL + - CAST( NULL AS SIGNED ), + 16 AS col1 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL + - CAST ( NULL AS INTEGER ), + 16 AS col1 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE - ( - col1 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3434
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL COUNT( * ) - + 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL COUNT ( * ) - + 97 FROM tab1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT ALL - MIN( col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - MIN ( col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - MIN( ALL - col0 ) + - COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - MIN ( ALL - col0 ) + - COUNT ( * ) FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 8 col0 FROM tab2
----
59
75
85

query I rowsort
SELECT + 34 + + col0 * 61 AS col1 FROM tab1
----
3145
5219
5585

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 + + col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 < ( NULL )
----

query I rowsort
SELECT col0 + 49 AS col0 FROM tab1
----
100
134
140

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col1 BETWEEN ( + col2 / + 55 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 2 * - 58 + COUNT( * ) FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-3446
SELECT 2 * - 58 + COUNT ( * ) FROM tab2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT + SUM( - CAST( 33 AS SIGNED ) ) * + 7 FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + SUM ( - CAST ( 33 AS INTEGER ) ) * + 7 FROM tab2
----
-693

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 + col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT SUM( + col1 ) * - 79 col1 FROM tab1
----
-5214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3449
SELECT DISTINCT SUM ( + col1 ) * - 79 col1 FROM tab1
----
-5214

query I rowsort
SELECT - col2 * + 3 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT 27 * + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT 27 * + COUNT ( * ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE 30 * col0 BETWEEN - col1 AND - col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT - CAST( 34 AS SIGNED ) AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - CAST ( 34 AS INTEGER ) AS col1 FROM tab1
----
-34

query I rowsort
SELECT col0 * col1 + - col1 * col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT - COUNT( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT - COUNT ( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT + col2 DIV - 11 - - col0 FROM tab0
----
11
87
88

skipif mysql # not compatible
query I rowsort label-3458
SELECT + col2 / - 11 - - col0 FROM tab0
----
11
87
88

query I rowsort
SELECT - 86 + col0 * - col1 FROM tab0 AS cor0
----
-1301
-183
-1913

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT - col0 DIV col0 + 64 FROM tab1 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-3460
SELECT - col0 / col0 + 64 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 6 + - col1 FROM tab0
----
-15
-75
5

query I rowsort
SELECT - 7 - - 6 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col2 - 81 FROM tab1
----
-13
-22
15

query I rowsort
SELECT - col2 - - 60 FROM tab0
----
-39
13
50

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 WHERE - ( + 19 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT SUM( ALL - ( - col0 ) ) - + 69 AS col0 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-3467
SELECT SUM ( ALL - ( - col0 ) ) - + 69 AS col0 FROM tab2
----
116

query I rowsort
SELECT col2 + - 4 AS col2 FROM tab1 AS cor0 WHERE col2 + col0 * - 74 NOT IN ( - col0 + col2 )
----
55
64
92

query I rowsort
SELECT - ( col2 ) * - 92 FROM tab0 AS cor0 WHERE - 64 = + 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1 AS cor0 WHERE - col0 IN ( 42 + - 83 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( - 27 ) NOT IN ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + AVG ( col1 ) / COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 13 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT + AVG ( col1 ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 13 + + col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( - COUNT( * ) + MIN( 79 ) * + 9 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) + MIN ( 79 ) * + 9 ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - ( - 54 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 52 AS col0 FROM tab2 AS cor0
----
110
75
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 44 / col1 IN ( col1 * 22 )
----

query I rowsort
SELECT DISTINCT - 68 * 24 AS col0 FROM tab1 AS cor0
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3480
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 NOT IN ( - 69 )
----

skipif mysql # not compatible
query III rowsort label-3480
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 NOT IN ( - 69 )
----

query I rowsort
SELECT + col1 * 7 + - col0 * 6 AS col2 FROM tab0 cor0
----
-375
-575
477

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 WHERE CAST( + col1 AS SIGNED ) BETWEEN NULL AND - col1 * 0
----

skipif mysql # not compatible
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) BETWEEN NULL AND - col1 * 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - MIN( col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - MIN ( col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + 73 * - col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab2 WHERE col0 <> ( + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE col0 <> ( + col1 )
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( col1 / col0 )
----

query I rowsort
SELECT + col0 + + ( + 37 ) * col1 AS col2 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 89 + - col1 * - 0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + SUM( DISTINCT 18 ) + - 99 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + SUM ( DISTINCT 18 ) + - 99 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL CAST( 54 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL CAST ( 54 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT - 57 AS col0, + MAX( - 13 ) AS col1 FROM tab1
----
-57
-13

skipif mysql # not compatible
query II rowsort label-3491
SELECT - 57 AS col0, + MAX ( - 13 ) AS col1 FROM tab1
----
-57
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( col0 ) - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( col0 ) - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 88 <> + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 83 col0, 50 AS col1 FROM tab2 AS cor0
----
83
50
83
50
83
50

query I rowsort
SELECT DISTINCT 35 + - 93 AS col1 FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT + col0 + col1 + col1 DIV - 98 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3497
SELECT + col0 + col1 + col1 / - 98 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 AS cor0 WHERE - col0 - + - col0 NOT BETWEEN - col2 + + col2 * - col0 AND - 22
----
59
59
59

query I rowsort
SELECT + 1 * col2 + - ( col1 ) FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 60 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

query I rowsort
SELECT - - col2 * + col0 - + 89 + + col2 * 66 AS col1 FROM tab1 AS cor0
----
10587
11143
8820

query I rowsort
SELECT ALL + - col1 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 70 * - col0 FROM tab1 WHERE + col2 * + col0 IS NULL
----

query I rowsort
SELECT + 30 * + col0 AS col2 FROM tab2
----
1380
1920
2250

query III rowsort
SELECT * FROM tab0 WHERE 6 >= ( 79 + 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL + 83 DIV - col0 FROM tab0 WHERE NOT ( col1 ) > 42
----
0
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 83 / - col0 FROM tab0 WHERE NOT ( col1 ) > 42
----
0
0

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT col1 + - - 40 * CAST( + + col2 AS SIGNED ) AS col0 FROM tab1
----
2365
2767
3854

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT col1 + - - 40 * CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1
----
2365
2767
3854

query I rowsort
SELECT 99 + col2 FROM tab0 WHERE - col2 <= - - ( 6 )
----
109
146
198

query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab0 WHERE + 46 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab2 WHERE col0 <> col0 * - 14
----
-51
-67
-77

query I rowsort
SELECT + 96 * + 93 + + col0 AS col1 FROM tab2 WHERE + col2 - col0 < NULL
----

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1 WHERE NOT ( NULL ) = col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT - - MIN( DISTINCT ( col0 ) ) - COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - - MIN ( DISTINCT ( col0 ) ) - COUNT ( * ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT ( + + 39 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT ALL col2 - - + 75 AS col0 FROM tab2
----
115
133
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col2 / col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3519
SELECT col1 * + col2 * 46 AS col2, - CAST( + CAST( + ( col1 ) AS DECIMAL ) AS SIGNED ) + col2 col0 FROM tab0 cor0
----
175122
-34
4554
98
9660
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3519
SELECT col1 * + col2 * 46 AS col2, - CAST ( + CAST ( + ( col1 ) AS REAL ) AS INTEGER ) + col2 col0 FROM tab0 cor0
----
175122
-34
4554
98
9660
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT - 86 * + col1 + 15 NOT BETWEEN - 39 * - col0 AND col2 / - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT - 86 * + col1 + 15 NOT BETWEEN - 39 * - col0 AND col2 / - ( col1 )
----
0

query II rowsort
SELECT 99 AS col0, + col1 * - - col2 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT - MIN( DISTINCT + 20 ) col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT DISTINCT - MIN ( DISTINCT + 20 ) col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT - + 28 * - 1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - - 65 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 - + - col0 + - 1 AND + col2 * + 31
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3526
SELECT - COUNT( ALL + col0 ) DIV + - COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT - COUNT ( ALL + col0 ) / + - COUNT ( * ) FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - 90 * - 28 * + - 93 * + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL 88 * - 13 FROM tab1
----
-1144
-1144
-1144

query I rowsort
SELECT DISTINCT - 53 * - col2 FROM tab1
----
3127
3604
5088

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 + + 88 NOT IN ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 - col0 / - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + ( MIN( + 13 ) ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3533
SELECT + ( MIN ( + 13 ) ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) <> ( NULL ) OR - col0 + - 4 NOT IN ( col2 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 21 - col1 <> - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= - + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND - + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT ALL - CAST( NULL AS DECIMAL ) / - + 23 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - CAST ( NULL AS REAL ) / - + 23 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 82 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 / - + col0, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 3 col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 WHERE col2 = 77
----

query II rowsort
SELECT DISTINCT + col0 + + col0 + col0 + - ( - col1 ) AS col0, - 89 FROM tab1 AS cor0
----
167
-89
260
-89
320
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 28 + - 7 + + col1 col2 FROM tab1 AS cor0
----
1435
2378
2588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL CAST( NULL AS SIGNED ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3545
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 + + - 19 AS col1 FROM tab2
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * 79 * + 22 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
24332

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3548
SELECT + col0 + - CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + col0 + - CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 33 + - col1 col2 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL col0 + - + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT col0 + col1 - CAST( - col0 AS SIGNED ) FROM tab2
----
143
205
217

skipif mysql # not compatible
query I rowsort label-3551
SELECT col0 + col1 - CAST ( - col0 AS INTEGER ) FROM tab2
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT SUM( DISTINCT 70 ) + 51 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3552
SELECT SUM ( DISTINCT 70 ) + 51 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT col0 + + 27 + col1 + CAST( + + col1 AS SIGNED ) FROM tab0
----
126
156
204

skipif mysql # not compatible
query I rowsort label-3553
SELECT col0 + + 27 + col1 + CAST ( + + col1 AS INTEGER ) FROM tab0
----
126
156
204

query I rowsort
SELECT - 94 + - col2 AS col1 FROM tab1
----
-153
-162
-190

query II rowsort
SELECT - col1 AS col2, 17 FROM tab0
----
-1
17
-21
17
-81
17

query I rowsort
SELECT ALL 92 AS col1 FROM tab0 AS cor0 WHERE col1 * + col1 IN ( 17 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3557
SELECT - 13 FROM tab0 cor0 WHERE CAST( + - 72 AS DECIMAL ) IS NOT NULL
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3557
SELECT - 13 FROM tab0 cor0 WHERE CAST ( + - 72 AS REAL ) IS NOT NULL
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3558
SELECT 44 / ( - CAST( NULL AS DECIMAL ) ) AS col0, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-3558
SELECT 44 / ( - CAST ( NULL AS REAL ) ) AS col0, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + 59 / + col1 * - col1 + col0 * - col0 / - + col1 ) IS NULL )
----

query I rowsort
SELECT 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT DISTINCT - + 25 - + 83, 29 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-108
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + SUM( - col2 ) FROM tab1 WHERE NOT col0 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + SUM ( - col2 ) FROM tab1 WHERE NOT col0 IS NULL
----
-223

query I rowsort
SELECT + 75 * 8 + - ( 89 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 33e7695c4ff64b4ae2a9a61a9e9d3f46

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( - - col1 ) IS NULL
----

query I rowsort
SELECT ALL + 90 - - - 89 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT + - col2 DIV + col0 + + + 24 FROM tab0 AS cor0
----
21
23
24

skipif mysql # not compatible
query I rowsort label-3566
SELECT + - col2 / + col0 + + + 24 FROM tab0 AS cor0
----
21
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT SUM( + 20 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3567
SELECT SUM ( + 20 ) AS col2 FROM tab2
----
60

query II rowsort
SELECT col1, - col1 * ( - 8 ) * - + col0 + - col0 FROM tab1
----
14
-5763
47
-34307
5
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT 13 * COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3569
SELECT 13 * COUNT ( * ) AS col1 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3570
SELECT * FROM tab1 WHERE - 91 * + col0 * - col0 NOT BETWEEN + CAST( + 5 AS SIGNED ) AND col2 AND NOT col0 * - col0 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3570
SELECT * FROM tab1 WHERE - 91 * + col0 * - col0 NOT BETWEEN + CAST ( + 5 AS INTEGER ) AND col2 AND NOT col0 * - col0 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * 42 AS col1 FROM tab0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + + SUM( + - 56 ) AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3572
SELECT + + SUM ( + - 56 ) AS col2 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT COUNT( * ) * - + SUM( col1 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT COUNT ( * ) * - + SUM ( col1 ) FROM tab1 AS cor0
----
-198

query I rowsort
SELECT ( + col2 ) + - 20 FROM tab0 AS cor0 WHERE 82 IS NOT NULL
----
-10
27
79

query I rowsort
SELECT - col0 + - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT col2 + + col2 + - col1 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT + col0 + col1 DIV + + 51 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + col0 + col1 / + + 51 FROM tab2 AS cor0
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT COUNT( * ) * - + SUM( - 70 ) AS col0 FROM tab1 AS cor0
----
630

skipif mysql # not compatible
query I rowsort label-3580
SELECT COUNT ( * ) * - + SUM ( - 70 ) AS col0 FROM tab1 AS cor0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3581
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT col2 + + + 4 + - ( - col1 ) + - col2 FROM tab0 WHERE col1 IS NOT NULL
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL MIN( 6 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL MIN ( 6 ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + - col1 * - + 96 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 74 / 27 * + col1 FROM tab0 WHERE + 84 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - 17 + - + COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3587
SELECT - 17 + - + COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3588
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 BETWEEN - - col0 AND - CAST( NULL AS DECIMAL ) * - - 61
----

skipif mysql # not compatible
query III rowsort label-3588
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 BETWEEN - - col0 AND - CAST ( NULL AS REAL ) * - - 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - 45, - 51 + - col1 col1 FROM tab0 cor0
----
3915
-72
4365
-52
675
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT ALL - + 42 DIV col1 - col2 + + 52 AS col0 FROM tab2 AS cor0
----
-6
12
29

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - + 42 / col1 - col2 + + 52 AS col0 FROM tab2 AS cor0
----
-6
12
29

query II rowsort
SELECT DISTINCT - 47 AS col1, - ( + col0 ) FROM tab0
----
-47
-15
-47
-87
-47
-97

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + - col2 <= ( + + col0 + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * 53 FROM tab0 AS cor0
----
2491
5247
530

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - MIN( - 43 ) AS col2 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - MIN ( - 43 ) AS col2 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 * + col1 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 * + col1 + + col0 IS NULL
----
3

query II rowsort
SELECT - col0, + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT ( - 36 ) AS col0 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT ALL + - COUNT( * ) AS col0, 36 FROM tab1 cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL + - COUNT ( * ) AS col0, 36 FROM tab1 cor0
----
-3
36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) - col1 + col1 IS NOT NULL )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + - 29 * - 27 - 57 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT 47 < NULL
----

query I rowsort
SELECT - ( + + col1 ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT 82 * + col2 AS col0 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT COUNT( ALL 89 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3605
SELECT COUNT ( ALL 89 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT COUNT( * ) * MAX( + col1 ) + + 75 * - COUNT( + col0 ) AS col1 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT COUNT ( * ) * MAX ( + col1 ) + + 75 * - COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT - - 35 * col0 FROM tab2 AS cor0 WHERE col1 * + - 11 IS NOT NULL
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT MIN( col1 ) col0 FROM tab2 AS cor0 WHERE + col2 * + 47 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT MIN ( col1 ) col0 FROM tab2 AS cor0 WHERE + col2 * + 47 IS NULL
----
NULL

query I rowsort
SELECT 90 + + - 68 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( ( - col2 ) NOT BETWEEN 39 AND NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - + 79 AS col0 FROM tab0
----
-64
18
8

query I rowsort
SELECT 20 * 81 AS col1 FROM tab0
----
1620
1620
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT DISTINCT + - 14 + + + col2 DIV 90 FROM tab1 AS cor0
----
-13
-14

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + - 14 + + + col2 / 90 FROM tab1 AS cor0
----
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col1 + col0 + col2 AS col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3619
SELECT DISTINCT col2 - 8 + + + CAST( NULL AS DECIMAL ) * + - col1 * + + ( + col0 ) * - col0 / - - col2 * col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT col2 - 8 + + + CAST ( NULL AS REAL ) * + - col1 * + + ( + col0 ) * - col0 / - - col2 * col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 + - - 77 AS col0 FROM tab1
----
124
82
91

query I rowsort
SELECT ALL col1 - + + 71 + col1 * col2 * - + col1 * + col0 + + col2 + + 77 FROM tab0
----
-383633
-4625371
-9497

query II rowsort
SELECT ALL + col2 AS col2, 98 FROM tab2
----
23
98
40
98
58
98

query II rowsort
SELECT ALL - col0 + + col1 AS col1, + col1 AS col2 FROM tab0
----
-66
21
-96
1
66
81

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL ( - + col2 ) + - + col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT col2 DIV 11 * + ( - + 13 ) * + 68 - + col1 DIV - col0 AS col0 FROM tab1 cor0
----
-4420
-5304
-7072

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT col2 / 11 * + ( - + 13 ) * + 68 - + col1 / - col0 AS col0 FROM tab1 cor0
----
-4420
-5304
-7072

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0 cor0 WHERE NULL < col2 + - col2 + + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT DISTINCT + + col2 DIV - + 88 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + col2 / - + 88 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + 6 AS col2, + col2 col0 FROM tab2
----
276
23
384
40
450
58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + + col2 > NULL
----

query I rowsort
SELECT ALL - col0 * - + ( + + col1 ) FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col1 * + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT + + 74 * 35 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + + 74 * 35 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT CAST( CAST( - 87 AS SIGNED ) AS SIGNED ) * CAST( 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-435
-435
-435

skipif mysql # not compatible
query I rowsort label-3636
SELECT CAST ( CAST ( - 87 AS INTEGER ) AS INTEGER ) * CAST ( 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-435
-435
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL - + MAX( DISTINCT - + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - + MAX ( DISTINCT - + 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT - col2 * + - 78 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT DISTINCT 91 + - col2 * + col0 FROM tab0
----
-614
-779
-9512

query I rowsort
SELECT 89 + col2 + + col0 + - + 59 + col1 FROM tab0
----
148
173
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT - 69 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - 69 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + - MAX( + ( + + col1 ) ) * 28 AS col0 FROM tab0 AS cor0
----
-2268

skipif mysql # not compatible
query I rowsort label-3642
SELECT + - MAX ( + ( + + col1 ) ) * 28 AS col0 FROM tab0 AS cor0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL SUM( + 18 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL SUM ( + 18 ) AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT - col1 * - col2 - + 26 * 42 FROM tab2 AS cor0
----
1988
2794
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * 83 * 91 ) >= + ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( + - 95 ) AS col0, - col2 FROM tab2 AS cor0
----
-95
-23
-95
-40
-95
-58

query I rowsort
SELECT ALL + - col0 + 23 FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT DISTINCT col0 - - - col2 * - col0 * 54 FROM tab2
----
138304
234975
57178

query I rowsort
SELECT DISTINCT ( - col2 ) + - - col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + col1 - + - CAST( NULL AS SIGNED ) + + 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT + col1 - + - CAST ( NULL AS INTEGER ) + + 25 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - 49 FROM tab1
----
2
35
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT MIN( DISTINCT - col0 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) * - 10 = - col0 + - - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT SUM( ALL 29 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT SUM ( ALL 29 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3655
SELECT - 50 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

skipif mysql # not compatible
query II rowsort label-3655
SELECT - 50 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

query II rowsort
SELECT col2, 96 FROM tab0
----
10
96
47
96
99
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT + + 99 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + + 99 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT 29 * col0 AS col2 FROM tab1 AS cor0
----
1479
2465
2639

query II rowsort
SELECT DISTINCT + col0 AS col2, 1 - 59 + - + 56 + col0 * + 84 * - col1 + col0 FROM tab1 AS cor0
----
51
-60039
85
-35729
91
-359291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - - 37 col1, - col0 + ( + + col0 ) - + col0 * 13 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + 36 * - + col2 AS col2 FROM tab0
----
-1692
-3564
-360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3663
SELECT + col1 + - - 47, col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
114
NULL
124
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT + col1 + - - 47, col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
114
NULL
124
NULL
98
NULL

query I rowsort
SELECT col1 + + + 49 - - col2 * col1 FROM tab1
----
1407
3292
349

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT 1 * - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT 1 * - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT - - 53 + MIN( col2 ) * + + 7 AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - - 53 + MIN ( col2 ) * + + 7 AS col2 FROM tab0 AS cor0
----
123

query I rowsort
SELECT ALL + col1 * + 21 + - col2 AS col2 FROM tab2 AS cor0
----
1048
1349
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - SUM( ALL 77 ) + - - 38 FROM tab1 cor0
----
-193

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - SUM ( ALL 77 ) + - - 38 FROM tab1 cor0
----
-193

query I rowsort
SELECT ALL + - 75 + + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-134
-143
-171

query I rowsort
SELECT DISTINCT + - 3 * col0 * + + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-2115
-2610
-28809

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT SUM( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3671
SELECT SUM ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

query II rowsort
SELECT DISTINCT + col0 - - + 4 + + col0 AS col2, col2 FROM tab1
----
106
96
174
59
186
68

query I rowsort
SELECT ALL + + col1 + - 26 AS col0 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 * - col0 >= - + col2 * - 22 * + col0 * ( + 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + + MAX( col1 ) + + 57 AS col1 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-3676
SELECT + + MAX ( col1 ) + + 57 AS col1 FROM tab1 AS cor0
----
104

query I rowsort
SELECT DISTINCT - 75 + - + col0 * col1 AS col1 FROM tab1
----
-4352
-500
-789

query I rowsort
SELECT - col1 * - col1 + - ( + + 99 ) AS col1 FROM tab2
----
2502
4390
5830

query I rowsort
SELECT DISTINCT 94 * - col0 AS col1 FROM tab2
----
-4324
-6016
-7050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - + 6 col0, col2 FROM tab1
----
282
68
30
59
84
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT - + 21 + + 45 - COUNT( * ) AS col2, - COUNT( * ) col1 FROM tab0 WHERE NOT - + col0 BETWEEN col0 AND 92 + + 28
----
21
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3681
SELECT - + 21 + + 45 - COUNT ( * ) AS col2, - COUNT ( * ) col1 FROM tab0 WHERE NOT - + col0 BETWEEN col0 AND 92 + + 28
----
21
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT + 15 * 31 * 13 * SUM( 7 ) AS col0 FROM tab2
----
126945

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + 15 * 31 * 13 * SUM ( 7 ) AS col0 FROM tab2
----
126945

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col0 + - + ( - + col2 )
----

query I rowsort
SELECT - 9 * + - col0 AS col2 FROM tab0
----
135
783
873

query I rowsort
SELECT + 43 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 87, + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3688
SELECT + COUNT( * ) DIV + - 44 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT + COUNT ( * ) / + - 44 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 88 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 + - 55 FROM tab2 cor0
----
-110
-110
-110

query I rowsort
SELECT DISTINCT - ( - col1 ) + - + 90 - col2 + - col0 FROM tab2 AS cor0
----
-108
-117
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + + 84 * - COUNT( * ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + + 84 * - COUNT ( * ) FROM tab1 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + COUNT( * ) * 83 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3693
SELECT + COUNT ( * ) * 83 FROM tab0 AS cor0
----
249

query I rowsort
SELECT DISTINCT 98 + - ( + + 4 ) + ( col0 ) + - + col1 * - col2 FROM tab1 AS cor0
----
1489
3381
474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT MAX( + - 46 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT MAX ( + - 46 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 9 * + col2 AS col0 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3697
SELECT * FROM tab0 WHERE 68 < - + CAST( + + ( + col2 ) AS SIGNED ) * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3697
SELECT * FROM tab0 WHERE 68 < - + CAST ( + + ( + col2 ) AS INTEGER ) * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 6 AS col0 FROM tab1
----
-306
-510
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL col2 DIV + 16 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL col2 / + 16 FROM tab2
----
1
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT + 46 / - MIN( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 46 / - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 41 * + + col0 AS col0 FROM tab1
----
2091
3485
3731

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 87 + + 72 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 47 * + col1 AS col0 FROM tab0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 42 col1 FROM tab2
----
22
33
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL - 14 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - 14 / + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 19 * + 52 * col1 FROM tab1
----
13832
46436
4940

query I rowsort
SELECT col0 + + - col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3708
SELECT ALL - col1 + + - col2, 44 - - CAST( - col0 AS SIGNED ) / col1 AS col2 FROM tab1 WHERE NULL NOT IN ( + col0, - col0, - 5 )
----

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL - col1 + + - col2, 44 - - CAST ( - col0 AS INTEGER ) / col1 AS col2 FROM tab1 WHERE NULL NOT IN ( + col0, - col0, - 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 - + + 43 * + - col1 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - 86 * + - 77 + 26 col0 FROM tab2
----
6694
6712
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL MIN( - + 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL MIN ( - + 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-91

query I rowsort
SELECT + 67 * + col2 FROM tab2 cor0
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + - MAX( - col2 ) * + COUNT( * ) * + + 33 * - MIN( + col0 ) * + COUNT( * ) + 27 FROM tab1 AS cor0
----
-893646

skipif mysql # not compatible
query I rowsort label-3713
SELECT + - MAX ( - col2 ) * + COUNT ( * ) * + + 33 * - MIN ( + col0 ) * + COUNT ( * ) + 27 FROM tab1 AS cor0
----
-893646

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT DISTINCT col1 DIV col2 + + ( - 18 ) AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT col1 / col2 + + ( - 18 ) AS col0 FROM tab1 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT + col0 - + col0 DIV - + 34 AS col1 FROM tab1 AS cor0
----
52
87
93

skipif mysql # not compatible
query I rowsort label-3715
SELECT + col0 - + col0 / - + 34 AS col1 FROM tab1 AS cor0
----
52
87
93

query I rowsort
SELECT + - col1 * 25 AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab0 WHERE - ( - col1 ) * - + col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 4 col1, - col2 * - + 12 * col0 AS col2 FROM tab1
----
4
58752
4
60180
4
74256

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT + col2 AS col1, - col2 DIV + - col0 * col0 + + - col0 * col2 * - - 4 FROM tab2
----
23
-4232
40
-10240
58
-17400

skipif mysql # not compatible
query II rowsort label-3720
SELECT + col2 AS col1, - col2 / + - col0 * col0 + + - col0 * col2 * - - 4 FROM tab2
----
23
-4232
40
-10240
58
-17400

query II rowsort
SELECT + 94, col0 AS col2 FROM tab0
----
94
15
94
87
94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 9 * col0 FROM tab2
----
414
576
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL ( + + SUM( ALL col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL ( + + SUM ( ALL col1 ) ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - + MAX( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3726
SELECT - + MAX ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL COUNT( * ) * - + 22 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL COUNT ( * ) * - + 22 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - - 13 + + + col2 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT - col1 * + ( + 5 ) + - col0 AS col1 FROM tab1 AS cor0
----
-110
-121
-326

query I rowsort
SELECT - + col2 + - 35 AS col0 FROM tab0 AS cor0
----
-134
-45
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT CAST( CAST( - 44 AS SIGNED ) AS SIGNED ) + + - col1 + 75 FROM tab1 AS cor0
----
-16
17
26

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT CAST ( CAST ( - 44 AS INTEGER ) AS INTEGER ) + + - col1 + 75 FROM tab1 AS cor0
----
-16
17
26

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE 37 BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT + MAX( ALL + + 50 ) AS col0 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + MAX ( ALL + + 50 ) AS col0 FROM tab2
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 12 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT 86 * + ( 97 ) + - + MAX( DISTINCT + 92 ) col2 FROM tab0
----
8250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT 86 * + ( 97 ) + - + MAX ( DISTINCT + 92 ) col2 FROM tab0
----
8250

query I rowsort
SELECT + col1 * - + col0 * - + col1 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT 9 - - col2, col1 AS col2 FROM tab2
----
32
51
49
77
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT + col1 - + + col0 * - CAST( NULL AS SIGNED ) + - 67 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT + col1 - + + col0 * - CAST ( NULL AS INTEGER ) + - 67 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 ) - + col0 + + col0 * - 64 * 41 * - col2 FROM tab0
----
1849986
2282814
25198176

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT MAX( 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT MAX ( 85 ) FROM tab2
----
85

query II rowsort
SELECT - col2 + + - col0, 87 AS col1 FROM tab2
----
-104
87
-133
87
-69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + COUNT( * ) + + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + COUNT ( * ) + + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 + - - 2 + - col2 FROM tab0 AS cor0
----
0
1170
1819

query I rowsort
SELECT + 54 * - - 91 - + col0 FROM tab0 AS cor0
----
4817
4827
4899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT - CAST( + 7 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - CAST ( + 7 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 * + col2 <= + 29 + - + col0 + - ( - - col0 ) / + - ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT DISTINCT col2 * 27 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT ALL + 80 DIV - MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + 80 / - MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT - 47 DIV MAX( - col1 ) * - 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - 47 / MAX ( - col1 ) * - 36 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - col0 DIV - col1 col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT - col0 / - col1 col1 FROM tab1
----
1
17
3

query I rowsort
SELECT + 34 * - + col2 * col0 AS col0 FROM tab2
----
-147900
-35972
-87040

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 72 + - 36 / - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT - - ( - COUNT( * ) ) DIV 38 AS col1 FROM tab0 AS cor0 WHERE NOT 19 <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT - - ( - COUNT ( * ) ) / 38 AS col1 FROM tab0 AS cor0 WHERE NOT 19 <= - col2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / ( col1 ) + + + col1
----

query I rowsort
SELECT + 84 * + col0 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - 0 * + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( col2 ) * + - col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col1 + + 69 - + 46
----

query II rowsort
SELECT ALL - 42 AS col2, + col0 * + col2 FROM tab0 AS cor0
----
-42
705
-42
870
-42
9603

query II rowsort
SELECT DISTINCT - - col0 + + - col2 - - col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + - col2 = NULL
----

query I rowsort
SELECT DISTINCT - - col1 + 88 AS col2 FROM tab0 AS cor0
----
109
169
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col2, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT ( + - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3767
SELECT ( + - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT - + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3768
SELECT - + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - 14 + - - COUNT( DISTINCT - col2 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - 14 + - - COUNT ( DISTINCT - col2 ) FROM tab2
----
-11

query I rowsort
SELECT ALL - col1 + + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 WHERE 50 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - + col1 + + col2 + - 82 DIV - - col0 col0 FROM tab2 AS cor0
----
-10
-29
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3773
SELECT - + col1 + + col2 + - 82 / - - col0 col0 FROM tab2 AS cor0
----
-10
-29
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT DISTINCT - COUNT( * ) + + COUNT( * ), + MAX( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
0
75

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ), + MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT COUNT( * ) + - 39 col1 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT DISTINCT COUNT ( * ) + - 39 col1 FROM tab2
----
-36

query I rowsort
SELECT ALL - - 79 * 81 FROM tab2 AS cor0
----
6399
6399
6399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT - CAST( - - 80 AS SIGNED ) col0 FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT - CAST ( - - 80 AS INTEGER ) col0 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL col1 DIV 31 + col0 col1 FROM tab1 AS cor0
----
51
85
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3779
SELECT ALL col1 / 31 + col0 col1 FROM tab1 AS cor0
----
51
85
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT col2 * 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + ( 6 ) * COUNT( DISTINCT + - col1 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3783
SELECT + ( 6 ) * COUNT ( DISTINCT + - col1 ) FROM tab0 cor0
----
18

query II rowsort
SELECT DISTINCT - 75 AS col0, - ( ( 38 ) ) FROM tab1
----
-75
-38

query III rowsort
SELECT DISTINCT col2 AS col0, + 91, ( + col2 ) FROM tab0
----
9 values hashing to df4e05645c332d7413400ec4edf834ca

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3786
SELECT - 98 AS col0, ( + col1 ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-3786
SELECT - 98 AS col0, ( + col1 ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT + - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 <= col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3787
SELECT + - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 <= col2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 <= col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL MIN( ALL - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT ALL MIN ( ALL - col0 ) col2 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT + col2, 13 FROM tab2
----
23
13
40
13
58
13

query II rowsort
SELECT DISTINCT - 13 AS col0, + col1 * + col1 FROM tab0
----
-13
1
-13
441
-13
6561

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 85 * 93 FROM tab1
----
-7905

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + MAX( DISTINCT - + col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3794
SELECT + MAX ( DISTINCT - + col2 ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - + col1 * + ( - + col1 ) + - - col0 * - - ( + + 48 ) + - col0 * 72 + - + 97 * + 47 AS col0 FROM tab0 AS cor0
----
-6206
-6886
1642

query I rowsort
SELECT + col2 + - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - 51 + - + col2 FROM tab1 AS cor0
----
-110
-119
-147

query I rowsort
SELECT ALL + - col1 + - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT - ( col1 ) * - + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + COUNT( * ) * + 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3800
SELECT + COUNT ( * ) * + 13 FROM tab0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3801
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT ALL - - col1 + - ( + 12 ) + - + 87 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT DISTINCT - col2 + - 69 FROM tab0 AS cor0
----
-116
-168
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / + - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT col2 / - ( + CAST( NULL AS SIGNED ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT col2 / - ( + CAST ( NULL AS INTEGER ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT - col0 + - - 9 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3807
SELECT - col0 + - - 9 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL = + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 1 / col1 * + - col2
----

query I rowsort
SELECT ALL - col2 * - 77 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT ALL ( - 63 ) AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT 1 * 1 AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col2 AS col1, - ( - col1 ) FROM tab1 AS cor0 WHERE NOT col1 - - col1 + col0 * + 5 * - col2 * + 85 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-85

query I rowsort
SELECT - 95 * col0 AS col1 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT 61 * col0 AS col1 FROM tab0 AS cor0
----
5307
5917
915

query I rowsort
SELECT ALL 80 FROM tab2 AS cor0 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT DISTINCT 56 AS col1, MAX( 18 ) AS col2 FROM tab2
----
56
18

skipif mysql # not compatible
query II rowsort label-3818
SELECT DISTINCT 56 AS col1, MAX ( 18 ) AS col2 FROM tab2
----
56
18

query I rowsort
SELECT 85 * + col2 * - 44 AS col0 FROM tab2
----
-149600
-216920
-86020

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT ALL - col2 DIV col2 * + - col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - col2 / col2 * + - col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + 75 * + col1 FROM tab2
----
3825
5025
5775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3822
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + CAST( - 99 AS SIGNED ) ), 90, + col1 )
----

skipif mysql # not compatible
query III rowsort label-3822
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + CAST ( - 99 AS INTEGER ) ), 90, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3823
SELECT + CAST( NULL AS SIGNED ), 29 * - COUNT( DISTINCT + + 92 ) col1 FROM tab0 AS cor0
----
NULL
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3823
SELECT + CAST ( NULL AS INTEGER ), 29 * - COUNT ( DISTINCT + + 92 ) col1 FROM tab0 AS cor0
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT + COUNT( * ) + 30 AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + COUNT ( * ) + 30 AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT col1 * + + col0 + 13 * - - ( col0 ) * + + col0 AS col1 FROM tab1
----
111930
34527
94350

query I rowsort
SELECT col0 * 66 + - 56 FROM tab1
----
3310
5554
5950

query II rowsort
SELECT ALL + ( col0 ) + - col1 - + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-24
68
-59
96
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - SUM( + col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3828
SELECT - SUM ( + col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3829
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + 87 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL - col2 * + 23 * - col1 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
1000
209
2276

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - col2 * + 23 * - col1 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
1000
209
2276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT + col0 - col1 / - col0 * 49 + + ( + 8 ) + CAST( NULL AS SIGNED ) + - col0 / + + 52 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT + col0 - col1 / - col0 * 49 + + ( + 8 ) + CAST ( NULL AS INTEGER ) + - col0 / + + 52 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3832
SELECT ALL CAST( col0 AS DECIMAL ) * - - 91 + 70 * - col2 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 31 * + + col0 * + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3832
SELECT ALL CAST ( col0 AS REAL ) * - - 91 + 70 * - col2 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 31 * + + col0 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * - - col1 / col2 * + ( ( + ( + - col2 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + 6 FROM tab1
----
-53
-62
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + COUNT( * ) - + COUNT( * ) + + 25 AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + + 25 AS col1 FROM tab0
----
25

query I rowsort
SELECT DISTINCT 66 - - col0 - - col0 AS col2 FROM tab0
----
240
260
96

query I rowsort
SELECT - col2 - + - 96 * + col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - SUM( + - 28 ) - COUNT( ALL + ( col1 ) ) AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3838
SELECT - SUM ( + - 28 ) - COUNT ( ALL + ( col1 ) ) AS col1 FROM tab2
----
81

query II rowsort
SELECT - col2 + + 97 AS col2, - col0 AS col0 FROM tab1
----
1
-51
29
-91
38
-85

query II rowsort
SELECT 93 + col1 AS col2, 1 FROM tab0 AS cor0
----
114
1
174
1
94
1

query I rowsort
SELECT + - 92 * col1 * - - col1 FROM tab2 AS cor0
----
-239292
-412988
-545468

query I rowsort
SELECT DISTINCT - AVG ( - 24 ) * + - 17 FROM tab1 WHERE + col0 * col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 88, 65 AS col0 FROM tab2
----
88
65

query II rowsort
SELECT ALL col0, col2 * - - col0 * - col1 FROM tab2 AS cor0
----
46
-53958
64
-197120
75
-291450

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + ( + - 56 ) * COUNT( * ) col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT + ( + - 56 ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 56 * - 26 * CAST( col2 AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 56 * - 26 * CAST ( col2 AS INTEGER ) * + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - - col2 ) < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 57 ) AS col1 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT + col1 * - - 73 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL 19 * + 42 * + 92 AS col0 FROM tab2
----
73416
73416
73416

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT - col2 * col2 DIV - col0 + col1 AS col2, - col1 + - - ( - col0 ) + + + col2 AS col2 FROM tab2
----
102
-101
111
-84
62
-74

skipif mysql # not compatible
query II rowsort label-3851
SELECT - col2 * col2 / - col0 + col1 AS col2, - col1 + - - ( - col0 ) + + + col2 AS col2 FROM tab2
----
102
-101
111
-84
62
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + MIN( + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + MIN ( + 48 ) FROM tab0
----
48

query I rowsort
SELECT col2 + - 28 FROM tab0
----
-18
19
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT DISTINCT + CAST( - COUNT( col1 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + CAST ( - COUNT ( col1 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL + col1 + col0 * + CAST( NULL AS SIGNED ) + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + col1 + col0 * + CAST ( NULL AS INTEGER ) + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 + + + col0 FROM tab2 AS cor0
----
-11
-29
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3857
SELECT - + COUNT( ALL - CAST( + - col2 AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3857
SELECT - + COUNT ( ALL - CAST ( + - col2 AS REAL ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3858
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3858
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT 92 * + - COUNT( - 65 ) AS col0 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-3859
SELECT 92 * + - COUNT ( - 65 ) AS col0 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + COUNT( * ) + - 8 * + 98 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63513

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + COUNT ( * ) + - 8 * + 98 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63513

query I rowsort
SELECT DISTINCT - 88 FROM tab0 AS cor0 WHERE NOT - col2 * + col0 NOT BETWEEN - + 50 AND - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3862
SELECT 30 + + MIN( DISTINCT + - 75 ) + - MAX( + - CAST( + + col0 AS SIGNED ) ) DIV + 10 + + MAX( ( 9 ) ) * - 75 * - 26 AS col1 FROM tab1
----
17510

skipif mysql # not compatible
query I rowsort label-3862
SELECT 30 + + MIN ( DISTINCT + - 75 ) + - MAX ( + - CAST ( + + col0 AS INTEGER ) ) / + 10 + + MAX ( ( 9 ) ) * - 75 * - 26 AS col1 FROM tab1
----
17510

query I rowsort
SELECT DISTINCT - 3 - col0 AS col0 FROM tab1
----
-54
-88
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT COUNT( * ) AS col2, 27 FROM tab0
----
3
27

skipif mysql # not compatible
query II rowsort label-3864
SELECT COUNT ( * ) AS col2, 27 FROM tab0
----
3
27

query III rowsort
SELECT * FROM tab2 WHERE + 55 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 10 - - col1 * col2 * col0 FROM tab1
----
25085
290846
68554

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT - MIN( DISTINCT + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) FROM tab2
----
75

query II rowsort
SELECT DISTINCT col2 AS col0, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 - - + 7 IS NULL
----

query I rowsort
SELECT + + 92 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT ALL - 10 DIV col1 * - 60 * - + col2 * - 77 + - col0 + - col1 DIV + + col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - 10 / col1 * - 60 * - + col2 * - 77 + - col0 + - col1 / + + col1 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 61 * + - CAST( 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 61 * + - CAST ( 9 AS INTEGER )
----

query II rowsort
SELECT ALL ( - col0 ) AS col1, - 53 FROM tab0 AS cor0
----
-15
-53
-87
-53
-97
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT - COUNT( 4 ) DIV - 13 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT - COUNT ( 4 ) / - 13 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 * + col1, col2 AS col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3878
SELECT - + CAST( NULL AS DECIMAL ) * + col0 - - 87 / - 27 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT - + CAST ( NULL AS REAL ) * + col0 - - 87 / - 27 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( col2 ), col1 + + - 14 FROM tab1 cor0
----
59
-9
68
33
96
0

query I rowsort
SELECT DISTINCT - + 87 * - + 28 + - + col1 FROM tab0 AS cor0
----
2355
2415
2435

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT - COUNT( * ) * 69 AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - COUNT ( * ) * 69 AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT - + 3 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-188
-396
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 56 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT + col0 * + ( - + col0 ) DIV + col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3884
SELECT + col0 * + ( - + col0 ) / + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - MAX( DISTINCT + + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3885
SELECT - MAX ( DISTINCT + + col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL - col2 + - - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT - + 4 > - + 25
----

query I rowsort
SELECT ALL 75 * - + 72 * + 56 FROM tab1, tab2 AS cor0
----
9 values hashing to c3ced7923f3cf138fcb18159bfa523da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT - CAST( - 70 AS SIGNED ) col2 FROM tab0 cor0
----
70
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3889
SELECT - CAST ( - 70 AS INTEGER ) col2 FROM tab0 cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT COUNT( ALL - col2 ) DIV + COUNT( DISTINCT + - 42 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3890
SELECT COUNT ( ALL - col2 ) / + COUNT ( DISTINCT + - 42 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 29 * - 45 AS col1 FROM tab1 AS cor0 WHERE col1 * + col1 + - - 2 IS NOT NULL
----
-1305

query I rowsort
SELECT ALL 84 * + - col2 * + + 13 + - col1 AS col2 FROM tab0 AS cor0
----
-108109
-10941
-51405

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT ( MAX( col0 ) ) * COUNT( * ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT ( MAX ( col0 ) ) * COUNT ( * ) AS col1 FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ( 62 ) * CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
3658
4216
5952

skipif mysql # not compatible
query I rowsort label-3894
SELECT ( 62 ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL - 80 * + 73 + + col0 * col1 FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) - - 6 AND - col1 + 22 / col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT 42 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT 42 / col0 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT - col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT - col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * 64 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE 10 * 51 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * col0 ) = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * + col2 col2 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT ALL * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * + 21 + col1 / col1 ) NOT BETWEEN NULL AND 58
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 21 + col1 / col1 ) NOT BETWEEN NULL AND 58
----

query I rowsort
SELECT + 14 FROM tab1 WHERE NOT + 29 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 69 / 7 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 * - ( col2 / 9 + col1 * 40 ) AS col0 FROM tab2 WHERE NULL = + col1 * 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT + col0 / - col2 + CAST( - ( + col2 ) + - col0 AS SIGNED ) FROM tab1 WHERE ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3908
SELECT + col0 / - col2 + CAST ( - ( + col2 ) + - col0 AS INTEGER ) FROM tab1 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab1 WHERE 20 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab1 WHERE 20 IN ( - col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 * - col2 <> - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT CAST( NULL AS SIGNED ) + ( 18 ) * col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3912
SELECT CAST ( NULL AS INTEGER ) + ( 18 ) * col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3913
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3913
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - 97 - + 10 ) IN ( 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col2 * + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 76 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( 28 ) * col0 AS col1 FROM tab0 cor0
----
2436
2716
420

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 + - 11 * - 77 <> NULL
----

query I rowsort
SELECT DISTINCT 20 * col2 AS col2 FROM tab1 AS cor0
----
1180
1360
1920

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 58 / col1 > ( 24 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT + 70 * COUNT( * ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 70 * COUNT ( * ) FROM tab1 AS cor0
----
210

query III rowsort
SELECT * FROM tab2 WHERE NOT - 25 * - col1 NOT IN ( 30 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( - col2 ) / - 71 + col1 ) = ( - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT - 59 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - 59 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + SUM( ALL + 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3925
SELECT + SUM ( ALL + 89 ) FROM tab2
----
267

query I rowsort
SELECT DISTINCT col0 / 79 FROM tab1 WHERE NULL NOT BETWEEN + col1 AND ( - col2 / - col0 )
----

query I rowsort
SELECT ALL col2 + 7 AS col0 FROM tab2 AS cor0
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT - + COUNT( * ) * + MAX( + 11 ) AS col0 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - + COUNT ( * ) * + MAX ( + 11 ) AS col0 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + col0 + 19 * 99 FROM tab2 AS cor0
----
1927
1945
1956

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 91 + 94 )
----

query I rowsort
SELECT ALL - ( - 91 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 * 97 FROM tab1 AS cor0 WHERE + col0 + 0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL > col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT COUNT( + col1 ) + - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT COUNT ( + col1 ) + - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT COUNT( * ) + COUNT( ALL + 88 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3937
SELECT COUNT ( * ) + COUNT ( ALL + 88 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL SUM( DISTINCT - col2 ) col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT ALL SUM ( DISTINCT - col2 ) col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
NULL

query I rowsort
SELECT + col1 * + 96 + 58 FROM tab0
----
154
2074
7834

query I rowsort
SELECT col2 * + ( col1 ) + + col0 AS col1 FROM tab2
----
1219
3144
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT col2 + + - col0 + col2 DIV 40 FROM tab0
----
-77
33
4

skipif mysql # not compatible
query I rowsort label-3941
SELECT col2 + + - col0 + col2 / 40 FROM tab0
----
-77
33
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT + 71 + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + 71 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3943
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 * CAST( NULL AS DECIMAL ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 * CAST ( NULL AS REAL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 - 20 * - 53 FROM tab0
----
1039
1059
979

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 5 = ( - 68 )
----

query I rowsort
SELECT ALL 28 + - 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) col2 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) col2 FROM tab2, tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3949
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < ( + col1 + col1 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < ( + col1 + col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT col1 FROM tab2 AS cor0 WHERE + col1 - CAST( - 6 AS SIGNED ) * + col0 IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3950
SELECT col1 FROM tab2 AS cor0 WHERE + col1 - CAST ( - 6 AS INTEGER ) * + col0 IN ( + col2 )
----

query I rowsort
SELECT - col0 * - - col1 * - col0 + col0 AS col0 FROM tab1 cor0
----
36210
36465
389298

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT ( - 88 ) + + ( - MAX( DISTINCT col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT ( - 88 ) + + ( - MAX ( DISTINCT col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL - 76 * - ( - + col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - 76 * - ( - + col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - MAX( ALL + col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3954
SELECT - MAX ( ALL + col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT ( - + col2 ) * 92 AS col1 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT - SUM( DISTINCT - 75 ) col2, + ( + 9 ) AS col2 FROM tab1
----
75
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3956
SELECT - SUM ( DISTINCT - 75 ) col2, + ( + 9 ) AS col2 FROM tab1
----
75
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( col2 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - ( - col2 ) / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 67 ) > + col2 + col1
----
15
81
47
97
1
99

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT ( col1 ) >= col2
----
-97

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL > ( - 75 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL + ( + col2 ) DIV col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + ( + col2 ) / col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - 77 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 56 * + col1 FROM tab0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + MIN( ALL 61 ) + 96 AS col1 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-3965
SELECT + MIN ( ALL 61 ) + 96 AS col1 FROM tab1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 FROM tab2 AS cor0 WHERE NOT col0 >= col2 * + col1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT CAST( NULL AS SIGNED ) + - 89 - - - CAST( NULL AS SIGNED ) + + + 73 + - col2 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-3968
SELECT CAST ( NULL AS INTEGER ) + - 89 - - - CAST ( NULL AS INTEGER ) + + + 73 + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT - - CAST( + - col0 AS SIGNED ) + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

skipif mysql # not compatible
query I rowsort label-3969
SELECT - - CAST ( + - col0 AS INTEGER ) + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 40 * - - col1 * + + col0 NOT BETWEEN col2 - + col2 AND 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * - 19 + 65 FROM tab1 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * - 19 + 65 FROM tab1 AS cor0
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT ALL + col1 DIV + col0 + - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
71

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + col1 / + col0 + - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - col2 * - col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT - CAST( NULL AS SIGNED ) * - 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT - CAST ( NULL AS INTEGER ) * - 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 94 * + 87 + 47 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL MIN( - - col0 ) - - SUM( ALL + + col1 ) + MIN( ALL col2 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL MIN ( - - col0 ) - - SUM ( ALL + + col1 ) + MIN ( ALL col2 ) AS col1 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT MIN( DISTINCT - col0 ) - + - 51 col0 FROM tab1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT MIN ( DISTINCT - col0 ) - + - 51 col0 FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 98 - col2 + - 32 col1 FROM tab2 cor0
----
4453
6200
7260

query II rowsort
SELECT ALL col2 - - col2 AS col1, col0 + + col1 AS col1 FROM tab1
----
118
90
136
138
192
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT COUNT( * ) * + 24 AS col2 FROM tab0 WHERE 3 / - 63 * - 87 * - 41 * + col2 IN ( + col1 / col1 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT COUNT ( * ) * + 24 AS col2 FROM tab0 WHERE 3 / - 63 * - 87 * - 41 * + col2 IN ( + col1 / col1 - col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + - col2 + + col1 ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3984
SELECT DISTINCT ( + 50 ) * - ( - - col0 ) * + 26 AS col0, - CAST( - - col1 AS SIGNED ) FROM tab2
----
-59800
-51
-83200
-77
-97500
-67

skipif mysql # not compatible
query II rowsort label-3984
SELECT DISTINCT ( + 50 ) * - ( - - col0 ) * + 26 AS col0, - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-59800
-51
-83200
-77
-97500
-67

query I rowsort
SELECT ALL col2 * + - 4 - col2 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT ALL 7 * - col0 AS col2 FROM tab1
----
-357
-595
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT - col0 DIV 56 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - col0 / 56 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT 86 * - + col1 FROM tab1 cor0
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( + col2 ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - ( + + COUNT( + col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3990
SELECT - ( + + COUNT ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) IN ( 34 - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * col0 * + col2, - col1 )
----

query II rowsort
SELECT DISTINCT - ( - 91 ), + col0 + 50 + col2 * - 5 AS col1 FROM tab1 AS cor0
----
91
-160
91
-199
91
-379

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT CAST( NULL AS SIGNED ) AS col0, 2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-3994
SELECT CAST ( NULL AS INTEGER ) AS col0, 2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 60 - col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 83 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT 92 * 34 FROM tab1 WHERE NOT - col1 * + - ( - - col2 ) NOT BETWEEN + col2 / + col1 * CAST( NULL AS SIGNED ) AND + 44 - col0
----

skipif mysql # not compatible
query I rowsort label-3997
SELECT 92 * 34 FROM tab1 WHERE NOT - col1 * + - ( - - col2 ) NOT BETWEEN + col2 / + col1 * CAST ( NULL AS INTEGER ) AND + 44 - col0
----

query I rowsort
SELECT DISTINCT 80 * col1 AS col2 FROM tab1
----
1120
3760
400

query I rowsort
SELECT ALL + 11 * + 55 * ( - + col2 ) FROM tab2
----
-13915
-24200
-35090

query II rowsort
SELECT col2, + 49 FROM tab1
----
59
49
68
49
96
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4001
SELECT COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + COUNT( * ) FROM tab2 WHERE col1 + + + col2 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col1 + + + col2 BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 * ( - + col1 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + col1 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + col1 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT + COUNT( * ), - COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4005
SELECT + COUNT ( * ), - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3
-3

query II rowsort
SELECT DISTINCT col0, ( - 59 ) + + ( col2 ) FROM tab2 AS cor0
----
46
-36
64
-19
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - + MIN( + + 1 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - + MIN ( + + 1 ) AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT + - 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL - col0 DIV + ( + - col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - col0 / + ( + - col0 ) FROM tab1
----
1
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= 0 + - + 52 * + + 22
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + + col1 ) + + 43 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col1 + + col2 NOT IN ( - - col1, - ( - 47 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col2 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL + 65 + + SUM( col0 ) col2 FROM tab0 cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT ALL + 65 + + SUM ( col0 ) col2 FROM tab0 cor0
----
264

query I rowsort
SELECT DISTINCT - - col1 * 58 + + - 59 AS col2 FROM tab2 AS cor0
----
2899
3827
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + COUNT( DISTINCT - col2 ) + + 42 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4016
SELECT + COUNT ( DISTINCT - col2 ) + + 42 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT col0 + col0 + col2 DIV + 14 FROM tab1
----
108
174
186

skipif mysql # not compatible
query I rowsort label-4017
SELECT col0 + col0 + col2 / + 14 FROM tab1
----
108
174
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT MAX( 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT MAX ( 83 ) FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 - + col1 col2 FROM tab0 cor0
----
-100
-20
-40

query I rowsort
SELECT DISTINCT col0 * 59 + col1 FROM tab2
----
2765
3853
4492

query II rowsort
SELECT col0 AS col2, + 78 AS col1 FROM tab1
----
51
78
85
78
91
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - - COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query II rowsort
SELECT DISTINCT 35 AS col0, + col2 FROM tab0
----
35
10
35
47
35
99

query I rowsort
SELECT ALL + 86 FROM tab2 WHERE NULL IS NULL
----
86
86
86

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT ALL - - COUNT( * ) AS col1, 41 * - - COUNT( * ) FROM tab1 AS cor0
----
3
123

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL - - COUNT ( * ) AS col1, 41 * - - COUNT ( * ) FROM tab1 AS cor0
----
3
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + MIN( col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4027
SELECT + + MIN ( col2 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT - col1 DIV + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4028
SELECT - col1 / + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col2 * ( 11 ) AS col2 FROM tab0 AS cor0
----
1089
110
517

query II rowsort
SELECT - 56, col0 FROM tab1 AS cor0
----
-56
51
-56
85
-56
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 <> + col2
----

query I rowsort
SELECT - col0 * - ( - + 96 ) FROM tab0
----
-1440
-8352
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT + - 16 BETWEEN + - col0 AND NULL
----
15

query II rowsort
SELECT ALL 9 * - - 11 AS col1, col2 AS col2 FROM tab2
----
99
23
99
40
99
58

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4038
SELECT + + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT - + SUM( + - col1 ) AS col1, SUM( ALL - - col1 ) FROM tab2 AS cor0
----
195
195

skipif mysql # not compatible
query II rowsort label-4039
SELECT - + SUM ( + - col1 ) AS col1, SUM ( ALL - - col1 ) FROM tab2 AS cor0
----
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4040
SELECT + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT - 65, + col0 AS col1 FROM tab2
----
-65
46
-65
64
-65
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col1 + - col2 * - 58 AS col2, + col0 col1 FROM tab0 AS cor0
----
1021
87
5743
97
9287
15

query I rowsort
SELECT + ( - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ( 73 ) FROM tab1 AS cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4045
SELECT - 5 AS col2, col2 DIV 41 FROM tab1 AS cor0
----
-5
1
-5
1
-5
2

skipif mysql # not compatible
query II rowsort label-4045
SELECT - 5 AS col2, col2 / 41 FROM tab1 AS cor0
----
-5
1
-5
1
-5
2

query II rowsort
SELECT DISTINCT ( + ( + col1 ) ) + + 83 - + - col0 * 78 + - - 32 + - col0, + col1 AS col1 FROM tab1 AS cor0
----
4056
14
6665
5
7169
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT SUM( + 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4047
SELECT SUM ( + 44 ) FROM tab0 AS cor0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4048
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - COUNT( * ) * - 1 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4049
SELECT - COUNT ( * ) * - 1 AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + MIN( - - ( col0 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT + MIN ( - - ( col0 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT ALL - col1 DIV - + 46 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - col1 / - + 46 AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 41 ) col2 FROM tab1
----
41

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + ( 2 ) FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT col2 + - col2 / - - col2 * + col1 + 9 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT col2 + - col2 / - - col2 * + col1 + 9 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - ( ( 69 ) ) AS col2 FROM tab1 AS cor0
----
-18
16
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - 35 ) * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 58 * - + col2 / - + 86 - + ( - col2 ) + + col2 - + 67
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 58 * - + col2 / - + 86 - + ( - col2 ) + + col2 - + 67
----
0

query I rowsort
SELECT + + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - ( - - 50 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL - - 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + SUM( - - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4062
SELECT + SUM ( - - col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + + 66 BETWEEN ( + CAST( NULL AS SIGNED ) + + 58 * - col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4063
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + + 66 BETWEEN ( + CAST ( NULL AS INTEGER ) + + 58 * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + ( MAX( ( col1 ) ) ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT + ( MAX ( ( col1 ) ) ) col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - MIN ( + - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + + SUM( + col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT + + SUM ( + col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + - SUM( + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + - SUM ( + col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 71 IN ( + + 24 + col2, 62 * - col2, + 0 * - col2, - col0, + 11 + + col1 / - col2 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT col1 * - CAST( NULL AS SIGNED ) * 13 / + col2 * 23 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4069
SELECT col1 * - CAST ( NULL AS INTEGER ) * 13 / + col2 * 23 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT + MIN( ALL 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + MIN ( ALL 39 ) FROM tab1
----
39

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + col2 * - 99 * - - col0 AS col2 FROM tab0
----
-69795
-86130
-950697

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT - 27 AS col1, COUNT( * ) FROM tab2
----
-27
3

skipif mysql # not compatible
query II rowsort label-4073
SELECT - 27 AS col1, COUNT ( * ) FROM tab2
----
-27
3

query I rowsort
SELECT ALL + 59 + - col0 AS col2 FROM tab0 AS cor0
----
-28
-38
44

query II rowsort
SELECT DISTINCT - + col1, + 5 AS col0 FROM tab1 cor0
----
-14
5
-47
5
-5
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4076
SELECT 83 DIV + - col1 col2, col1 AS col1 FROM tab1
----
-1
47
-16
5
-5
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4076
SELECT 83 / + - col1 col2, col1 AS col1 FROM tab1
----
-1
47
-16
5
-5
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - MIN( ALL - 63 ) * 42 * COUNT( * ) FROM tab1 WHERE col1 * - col1 IS NOT NULL
----
7938

skipif mysql # not compatible
query I rowsort label-4077
SELECT - MIN ( ALL - 63 ) * 42 * COUNT ( * ) FROM tab1 WHERE col1 * - col1 IS NOT NULL
----
7938

query I rowsort
SELECT - col0 * + + 47 AS col1 FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT DISTINCT col2 * - + col2 + col1 + + 39 + - - 34 AS col2 FROM tab0 AS cor0
----
-2055
-6
-9727

query I rowsort
SELECT DISTINCT col1 * + 11 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4081
SELECT DISTINCT 92 * + - col1 * - 98 + col2 + - col2 * CAST( col0 AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
-488
97
188476
87
729638
15

skipif mysql # not compatible
query II rowsort label-4081
SELECT DISTINCT 92 * + - col1 * - 98 + col2 + - col2 * CAST ( col0 AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
-488
97
188476
87
729638
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + + 85 / - col0, + 18 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1 WHERE col2 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + ( - + MAX( DISTINCT - - ( + col0 ) ) ) FROM tab1 WHERE ( + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT + ( - + MAX ( DISTINCT - - ( + col0 ) ) ) FROM tab1 WHERE ( + - col0 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 * + - 66 + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 col1, - col0 + - col2 + + + ( + + col2 ) AS col1 FROM tab1
----
3
-51
3
-85
3
-91

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + + ( - col2 ) / - 40
----

query I rowsort
SELECT + col1 - - 42 * col2 FROM tab1 AS cor0
----
2483
2903
4046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - MAX( DISTINCT + ( + - 24 ) ) AS col0 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4090
SELECT - MAX ( DISTINCT + ( + - 24 ) ) AS col0 FROM tab1 cor0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT + ( col1 ) DIV - + 89 AS col1, col1 FROM tab1 cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4091
SELECT + ( col1 ) / - + 89 AS col1, col1 FROM tab1 cor0
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4092
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - CAST( NULL AS SIGNED ) ) >= + 40
----

skipif mysql # not compatible
query IIIIII rowsort label-4092
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - CAST ( NULL AS INTEGER ) ) >= + 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > + 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT + CAST( + 0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT + CAST ( + 0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ( ( ( + COUNT( * ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4095
SELECT ( ( ( + COUNT ( * ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * - col0 AND + 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 90 - ( - 5 ) < + 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4098
SELECT - col2 DIV - - col0 - + col2 FROM tab1 AS cor0 WHERE NOT CAST( + ( - 83 ) AS SIGNED ) IN ( + col1, col1 * 56 )
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-4098
SELECT - col2 / - - col0 - + col2 FROM tab1 AS cor0 WHERE NOT CAST ( + ( - 83 ) AS INTEGER ) IN ( + col1, col1 * 56 )
----
-59
-68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT SUM( ALL - - 51 ) AS col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4099
SELECT SUM ( ALL - - 51 ) AS col2 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL SUM( DISTINCT - + 30 ) col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT ALL SUM ( DISTINCT - + 30 ) col2 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + ( COUNT( - col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4101
SELECT + ( COUNT ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( - + 35 ) FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 43 <> + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 * - - col1 + + col1 AS col1, 53 * + col2 + + 98 FROM tab0 AS cor0
----
-189
628
-3726
2589
-98
5345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + 39 col0 FROM tab2 AS cor0
----
-25
-36
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query II rowsort
SELECT ALL - ( + col1 ) AS col2, col2 * + col1 AS col2 FROM tab0
----
-1
99
-21
210
-81
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4108
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + col0, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE ( - 0 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT * FROM tab0 AS cor0 WHERE col1 / + 99 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT * FROM tab0 AS cor0 WHERE col1 / + 99 = - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 13 * col2 * + + 92 * - 54 FROM tab1 AS cor0
----
3810456
4391712
6200064

query I rowsort
SELECT ALL - - col0 * 86 + - col0 AS col1 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT DISTINCT col2 + - - ( col1 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + ( - + 58 ) * 27 * - + MAX( col0 ) AS col2 FROM tab0 AS cor0
----
151902

skipif mysql # not compatible
query I rowsort label-4115
SELECT + ( - + 58 ) * 27 * - + MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
151902

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - - 73 DIV - 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - 73 / - 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col1 + col0 / col1
----

query II rowsort
SELECT - - 29 AS col2, col0 FROM tab1 cor0
----
29
51
29
85
29
91

query I rowsort
SELECT + + col2 * - - 68 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT + 12 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT 46 - COUNT( * ) + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4121
SELECT 46 - COUNT ( * ) + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL AND 94 / + + col2 * + - col1 IS NULL
----

query I rowsort
SELECT ALL + 66 * + 24 * - col0 FROM tab1
----
-134640
-144144
-80784

query II rowsort
SELECT ALL - ( - - 27 ), col2 FROM tab1 cor0
----
-27
59
-27
68
-27
96

query II rowsort
SELECT + - col0 * + col1, col0 FROM tab2 cor0
----
-2346
46
-4928
64
-5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - MIN( ALL - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - MAX( + col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT - MAX ( + col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( col0 ) NOT IN ( col1 )
----

query I rowsort
SELECT + col0 * 12 * - - 21 FROM tab1 AS cor0
----
12852
21420
22932

query I rowsort
SELECT DISTINCT + 45 + 55 + col2 AS col0 FROM tab0 AS cor0
----
110
147
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT + MIN( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + MIN ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4133
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col1 ) + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4133
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col1 ) + - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 / + - col0 * + 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - 42 ) AS col1 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL <> col2 + ( - 24 ) )
----

query I rowsort
SELECT - + ( col2 ) + - - col2 FROM tab1 WHERE ( NOT col0 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( - 10 ) * + 99 * - 81 AS col1 FROM tab2
----
-24057

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL COUNT ( - 10 ) * + 99 * - 81 AS col1 FROM tab2
----
-24057

query II rowsort
SELECT ALL + 38 * col2 AS col0, - col1 AS col1 FROM tab2
----
1520
-77
2204
-67
874
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT - ( + col1 ) + - + col0 + + 27 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT - ( + col1 ) + - + col0 + + 27 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE + col0 / - + 32 + - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE + col0 / - + 32 + - - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4143
SELECT - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

query I rowsort
SELECT + 65 - + col0 + - - col0 FROM tab0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT COUNT( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT COUNT ( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1 cor0
----
38
38
38

query II rowsort
SELECT + 10, + col1 * + - 0 - + + ( - col0 ) + - - col0 AS col2 FROM tab1
----
10
102
10
170
10
182

query I rowsort
SELECT DISTINCT - ( + + 7 ) AS col0 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( ALL - + 5 ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( ALL - + 5 ) AS col0 FROM tab2
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT col0 AS col1 FROM tab1 WHERE NOT - 58 + + 19 + + - 45 * - 13 * - 77 IN ( + ( col0 ) + col2 + - - 95 / + col0 * + col0 + - col1, CAST( + - col1 AS SIGNED ), + - 96 * + col0 + - - ( - col0 ) )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4152
SELECT col0 AS col1 FROM tab1 WHERE NOT - 58 + + 19 + + - 45 * - 13 * - 77 IN ( + ( col0 ) + col2 + - - 95 / + col0 * + col0 + - col1, CAST ( + - col1 AS INTEGER ), + - 96 * + col0 + - - ( - col0 ) )
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > - + 98 + 30
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL + ( - 78 ) FROM tab2 cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT - - MAX( + col0 ) AS col0, - 19 AS col2 FROM tab2 AS cor0
----
75
-19

skipif mysql # not compatible
query II rowsort label-4156
SELECT - - MAX ( + col0 ) AS col0, - 19 AS col2 FROM tab2 AS cor0
----
75
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + + MAX( ALL - - 60 ) col0 FROM tab1 cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4157
SELECT + + MAX ( ALL - - 60 ) col0 FROM tab1 cor0
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4158
SELECT + COUNT( ALL + col2 ) AS col2, 38 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4158
SELECT + COUNT ( ALL + col2 ) AS col2, 38 / CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

query II rowsort
SELECT ALL + + col1 + 21 AS col1, col0 FROM tab1 AS cor0
----
26
85
35
51
68
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + + col1 / - col0
----

query I rowsort
SELECT ALL col0 + + 33 FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4162
SELECT + ( + 98 ) * 99, col0 col2 FROM tab0 WHERE - 28 + CAST( NULL AS SIGNED ) BETWEEN NULL AND + - ( + 9 ) * - col2 / - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4162
SELECT + ( + 98 ) * 99, col0 col2 FROM tab0 WHERE - 28 + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - ( + 9 ) * - col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - 99 * COUNT( * ) AS col1 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - 99 * COUNT ( * ) AS col1 FROM tab1
----
-297

query II rowsort
SELECT DISTINCT col0 * - col1 * - 80, col1 AS col1 FROM tab1
----
34000
5
342160
47
57120
14

query I rowsort
SELECT ALL - 5 * 57 AS col2 FROM tab0
----
-285
-285
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT COUNT( * ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4166
SELECT COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + col0 IS NULL
----
3

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 5 AS col1, 59 FROM tab1 AS cor0
----
5
59
5
59
5
59

query I rowsort
SELECT ALL + col1 + - + 36 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - SUM( + - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-4170
SELECT - SUM ( + - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
504

query II rowsort
SELECT col1 * - 93 * + col0 * - 20, col2 AS col1 FROM tab2
----
4363560
23
9166080
40
9346500
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
84
84
84

query I rowsort
SELECT + 48 - + col2 AS col1 FROM tab0 AS cor0
----
-51
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT - + COUNT( ALL col0 ), - COUNT( * ) FROM tab2 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4174
SELECT - + COUNT ( ALL col0 ), - COUNT ( * ) FROM tab2 cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT COUNT( * ) * - 80 col2, + 3 AS col1 FROM tab2 AS cor0
----
-240
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4175
SELECT COUNT ( * ) * - 80 col2, + 3 AS col1 FROM tab2 AS cor0
----
-240
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 29 IS NULL
----

query I rowsort
SELECT + - ( + - 79 ) FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL - CAST( - ( + 75 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - CAST ( - ( + 75 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - - MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4179
SELECT - - MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - - ( + 8 ) AS col1 FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT SUM( ALL + - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4181
SELECT SUM ( ALL + - col2 ) FROM tab1 cor0
----
-223

query I rowsort
SELECT + 78 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 41 + col1 FROM tab0 AS cor0
----
122
42
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) * - 45 NOT BETWEEN + + col0 AND + 84 * 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 38 + - 51 + + - col0 + - col2 FROM tab1 AS cor0
----
-233
-236
-248

query I rowsort
SELECT DISTINCT col1 * - 31 AS col1 FROM tab0 AS cor0
----
-2511
-31
-651

query II rowsort
SELECT ALL + 38 + 57, + 34 * - + col1 AS col0 FROM tab1
----
95
-1598
95
-170
95
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COUNT( * ) + - + 36 * + 67 AS col0 FROM tab2
----
-2409

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( * ) + - + 36 * + 67 AS col0 FROM tab2
----
-2409

query III rowsort
SELECT * FROM tab1 WHERE - ( - - 33 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 92 + - col2 * - col1 AS col0 FROM tab1
----
10176
5723
9452

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT ALL 87 * + col2 DIV col2 * col0 FROM tab2
----
4002
5568
6525

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL 87 * + col2 / col2 * col0 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT + ( col2 ) + + 93 + - col1 FROM tab1
----
114
147
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT MAX( + + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT MAX ( + + col2 ) AS col0 FROM tab2
----
58

query II rowsort
SELECT ALL + 11 + - col1 AS col2, - 57 FROM tab2
----
-40
-57
-56
-57
-66
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT col2 DIV - + 8 FROM tab1
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT col2 / - + 8 FROM tab1
----
-12
-7
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL CAST( - 10 AS SIGNED ) AS col1 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL CAST ( - 10 AS INTEGER ) AS col1 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT + 52 * 8 DIV - MAX( col2 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 52 * 8 / - MAX ( col2 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - 18 * - - COUNT( DISTINCT + 79 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 18 * - - COUNT ( DISTINCT + 79 ) FROM tab0 AS cor0
----
-18

query II rowsort
SELECT DISTINCT + col2 + - - 93 AS col1, - col2 FROM tab0 AS cor0
----
103
-10
140
-47
192
-99

query II rowsort
SELECT ALL col2 AS col1, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT - - col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----

skipif mysql # not compatible
query I rowsort label-4203
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + 25 * + col0 FROM tab0
----
2175
2425
375

query I rowsort
SELECT + col0 + ( - col1 ) + - + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
23
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT MAX( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4208
SELECT MAX ( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4209
SELECT CAST( NULL AS SIGNED ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4209
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 85 * + - col2 FROM tab0 AS cor0
----
-3995
-8415
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 * col1 * + + col0 col1, col0 FROM tab0
----
1649
97
20655
15
31059
87

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 67 + + - ( + col1 ) + - col0 FROM tab2
----
-30
-74
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT DISTINCT - COUNT( * ), 76 AS col0 FROM tab2 AS cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT - COUNT ( * ), 76 AS col0 FROM tab2 AS cor0
----
-3
76

query I rowsort
SELECT + ( - 75 ) + - 35 + - col0 AS col0 FROM tab2 AS cor0
----
-156
-174
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col1 = - col0 * 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4217
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * + ( + 87 ) * - col1, + col0 + + + col2 AS col0 FROM tab1 cor0
----
NULL
144
NULL
147
NULL
159

skipif mysql # not compatible
query II rowsort label-4217
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * + ( + 87 ) * - col1, + col0 + + + col2 AS col0 FROM tab1 cor0
----
NULL
144
NULL
147
NULL
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + 19 + + COUNT( * ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + 19 + + COUNT ( * ) FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT - CAST( - - AVG ( ALL - - ( - - 96 ) ) AS SIGNED ) + + 57 * + 64 AS col2 FROM tab0 AS cor0
----
3552

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - CAST ( - - AVG ( ALL - - ( - - 96 ) ) AS INTEGER ) + + 57 * + 64 AS col2 FROM tab0 AS cor0
----
3552

query I rowsort
SELECT DISTINCT col0 + 86 FROM tab2
----
132
150
161

query I rowsort
SELECT DISTINCT - + col1 * - col0 * + 94 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - COUNT( * ) * - MAX( + 68 ) FROM tab2, tab2 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - COUNT ( * ) * - MAX ( + 68 ) FROM tab2, tab2 AS cor0
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 84 FROM tab1
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 84 FROM tab1
----
NULL
84
NULL
84
NULL
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + 64 + + + 23 AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - 51 + + - col1 FROM tab0 AS cor0
----
-132
-52
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 + ( - col2 ) * - - col0 col1 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT - 39, 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-39
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + - CAST( + 96 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + - CAST ( + 96 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL + col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - 65 * - COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - 65 * - COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
192

query I rowsort
SELECT - - ( + + col0 ) * - 22 AS col2 FROM tab0 AS cor0
----
-1914
-2134
-330

query I rowsort
SELECT ALL ( + ( - col1 ) ) * + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN 24 AND + 79 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT - col0 DIV + 91 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - col0 / + 91 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + - 45 * COUNT( * ) + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4236
SELECT + - 45 * COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT DISTINCT + col1 DIV col0 + - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT DISTINCT + col1 / col0 + - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT ALL + 90, 72 AS col0 FROM tab0
----
90
72
90
72
90
72

query III rowsort
SELECT ALL * FROM tab1 WHERE + 81 * col2 < + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 70 AS col0 FROM tab2
----
23
-70
40
-70
58
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT col1 DIV - col2 * 61 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT col1 / - col2 * 61 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT ALL - col2 AS col2, col2 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4242
SELECT ALL - col2 AS col2, col2 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 <> ( + + col1 * col2 * col2 )
----

query I rowsort
SELECT - 74 * - col1 AS col1 FROM tab1
----
1036
3478
370

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT 9 DIV - 30 AS col1, col0 * - - col1 - - col2 FROM tab0
----
0
1262
0
1837
0
196

skipif mysql # not compatible
query II rowsort label-4245
SELECT 9 / - 30 AS col1, col0 * - - col1 - - col2 FROM tab0
----
0
1262
0
1837
0
196

query II rowsort
SELECT + col0 * + col1, col0 AS col2 FROM tab2
----
2346
46
4928
64
5025
75

query I rowsort
SELECT + - col0 + + col2 + col1 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT - - col1 + - col0 + + col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 + + + ( - col1 ) AS col0 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - + 77 + + col1 FROM tab2 AS cor0
----
-10
-26
0

query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT DISTINCT MAX( ALL col0 ) + MAX( - 78 ), 47 AS col1 FROM tab1 AS cor0 WHERE col0 * + 54 + col1 NOT BETWEEN NULL AND - ( - + col2 )
----
13
47

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT MAX ( ALL col0 ) + MAX ( - 78 ), 47 AS col1 FROM tab1 AS cor0 WHERE col0 * + 54 + col1 NOT BETWEEN NULL AND - ( - + col2 )
----
13
47

query I rowsort
SELECT + 31 FROM tab1 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col2 + + + col2 col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + + 80 col2 FROM tab2
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT - 5 col2, - COUNT( * ) AS col0 FROM tab1
----
-5
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4256
SELECT - 5 col2, - COUNT ( * ) AS col0 FROM tab1
----
-5
-3

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT NULL < + - 49
----

query I rowsort
SELECT 4 * col1 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - 28 * - 54 * + COUNT( * ) FROM tab2
----
4536

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 28 * - 54 * + COUNT ( * ) FROM tab2
----
4536

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 WHERE NOT - col2 < 93
----

query II rowsort
SELECT col0 * - 60 * + 66 AS col0, col0 AS col2 FROM tab0
----
-344520
87
-384120
97
-59400
15

query I rowsort
SELECT + 22 * - col1 * - col0 FROM tab2 AS cor0
----
108416
110550
51612

query I rowsort
SELECT + col1 * - 28 * - 38 FROM tab0
----
1064
22344
86184

query II rowsort
SELECT col1, 24 AS col2 FROM tab1
----
14
24
47
24
5
24

query I rowsort
SELECT DISTINCT 67 * - + ( - + col0 ) FROM tab1
----
3417
5695
6097

query I rowsort
SELECT DISTINCT - - ( - col0 ) * - col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT + ( + - ( - ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4267
SELECT + ( + - ( - ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - + COUNT( * ) * + + COUNT( * ) * 25 AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) * 25 AS col1 FROM tab2 AS cor0
----
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 73 * - col1
----

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 FROM tab2 cor0
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT + - COUNT( * ) AS col2, - 98 + - + 18 FROM tab0 AS cor0
----
-3
-116

skipif mysql # not compatible
query II rowsort label-4271
SELECT + - COUNT ( * ) AS col2, - 98 + - + 18 FROM tab0 AS cor0
----
-3
-116

query I rowsort
SELECT DISTINCT + 19 * + col1 AS col1 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - COUNT( - - 77 ) * + - COUNT( * ) * - 42 FROM tab2
----
-378

skipif mysql # not compatible
query I rowsort label-4273
SELECT - COUNT ( - - 77 ) * + - COUNT ( * ) * - 42 FROM tab2
----
-378

query I rowsort
SELECT 87 * + col1 AS col1 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + MAX( + + ( + 20 ) ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4275
SELECT + MAX ( + + ( + 20 ) ) FROM tab2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT DISTINCT 98 * - ( - - ( 22 ) ) / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT 98 * - ( - - ( 22 ) ) / + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> 53 + - 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 NOT IN ( 81 + - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT ALL + COUNT( ALL - col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL + COUNT ( ALL - col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT DISTINCT - AVG ( DISTINCT - - CAST( - 29 AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - AVG ( DISTINCT - - CAST ( - 29 AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
NULL

query II rowsort
SELECT - col2 + ( - - col1 ) AS col0, + 30 FROM tab0 cor0
----
-98
30
11
30
34
30

query I rowsort
SELECT - 8 * + + 90 + - col0 FROM tab0 cor0
----
-735
-807
-817

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT - 11 DIV + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4285
SELECT - 11 / + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4286
SELECT * FROM tab0 WHERE col1 * - col0 + + 93 - - col1 * + col2 + + - col0 + col0 BETWEEN col2 - - + ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4286
SELECT * FROM tab0 WHERE col1 * - col0 + + 93 - - col1 * + col2 + + - col0 + col0 BETWEEN col2 - - + ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-4287
SELECT - MIN( DISTINCT ( + + col2 ) ), + 61 col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-10
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4287
SELECT - MIN ( DISTINCT ( + + col2 ) ), + 61 col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-10
61
3

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN - 32 * col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + - 52 AS col0 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT - ( + + col0 ) - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - + col0 ) - 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 68 - col1 AS col1 FROM tab0
----
-13
47
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT ALL + col0 + CAST( NULL AS SIGNED ) col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4293
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col2 - - 2 col2 FROM tab1
----
-4364
-5030
-7102

query I rowsort
SELECT DISTINCT ( + - ( - + col0 ) ) * - 72 - + - ( + 56 ) AS col0 FROM tab2
----
-3256
-4552
-5344

query I rowsort
SELECT DISTINCT col0 + + ( + 79 ) FROM tab0
----
166
176
94

query III rowsort
SELECT * FROM tab0 WHERE + + col2 = NULL
----

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT - col0 - + col2 * col1 AS col2 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - ( + + COUNT( * ) ) + - 52 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-4300
SELECT - ( + + COUNT ( * ) ) + - 52 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-61

query II rowsort
SELECT - col2 AS col2, + col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - + 49 * - 96 * col2 * ( + + col0 ) AS col0 FROM tab1 AS cor0
----
23030784
23590560
29108352

query I rowsort
SELECT - 77 * + - 66 AS col2 FROM tab1 AS cor0
----
5082
5082
5082

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT DISTINCT - + COUNT( - 93 ) * MAX( DISTINCT - + ( - - col1 ) ) + - 26 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - + COUNT ( - 93 ) * MAX ( DISTINCT - + ( - - col1 ) ) + - 26 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT DISTINCT + 74, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
74
-3

skipif mysql # not compatible
query II rowsort label-4306
SELECT DISTINCT + 74, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
74
-3

query I rowsort
SELECT DISTINCT + col2 * - 42 FROM tab0 cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT 62 * + COUNT( + col2 ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT 62 * + COUNT ( + col2 ) AS col2 FROM tab2
----
186

query I rowsort
SELECT - col0 + - 35 FROM tab2
----
-110
-81
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 + - ( - + col0 ) col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT DISTINCT col2 * - 73 FROM tab1
----
-4307
-4964
-7008

query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 * - col2 FROM tab0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + 61 + + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4313
SELECT + 61 + + COUNT ( * ) FROM tab0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT - col2 DIV + 84 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT - col2 / + 84 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT - CAST( NULL AS SIGNED ) + + + 54 * 82 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4315
SELECT - CAST ( NULL AS INTEGER ) + + + 54 * 82 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 / 16 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + MAX( ALL + + 2 ) + + + 80 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4317
SELECT + MAX ( ALL + + 2 ) + + + 80 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - - COUNT( + + 16 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - COUNT ( + + 16 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col0, col2 - + col0 AS col1 FROM tab1 AS cor0
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT - MIN( - 53 ) + + COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - MIN ( - 53 ) + + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
56

query I rowsort
SELECT + ( col1 ) * + col0 + + col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT - MAX( - + 74 ) + - 47 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - MAX ( - + 74 ) + - 47 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4323
SELECT * FROM tab2 AS cor0 WHERE 28 BETWEEN - ( CAST( NULL AS SIGNED ) ) / + col0 * 20 - - + col2 * - 33 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-4323
SELECT * FROM tab2 AS cor0 WHERE 28 BETWEEN - ( CAST ( NULL AS INTEGER ) ) / + col0 * 20 - - + col2 * - 33 AND + - col1
----

query I rowsort
SELECT ALL + 38 + + col2 AS col2 FROM tab0 AS cor0
----
137
48
85

query II rowsort
SELECT DISTINCT - 23 - ( + + col0 ) AS col2, - 81 AS col2 FROM tab2 AS cor0
----
-69
-81
-87
-81
-98
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 47 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 47 / - + col2 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + 36 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 * + 34 * + - ( - 29 ) col2 FROM tab2
----
51
22678
67
57188
77
39440

query II rowsort
SELECT 27 AS col0, - col2 FROM tab2
----
27
-23
27
-40
27
-58

query I rowsort
SELECT ALL 68 + 12 FROM tab1
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4331
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4331
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT ALL - col0 AS col2, 27 + col1 AS col1 FROM tab0
----
-15
108
-87
48
-97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + 66 * - - MAX( DISTINCT + + col1 ) AS col0 FROM tab1
----
3102

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 66 * - - MAX ( DISTINCT + + col1 ) AS col0 FROM tab1
----
3102

query I rowsort
SELECT - 14 * col0 * - col2 FROM tab2
----
14812
35840
60900

query I rowsort
SELECT 61 + 87 AS col2 FROM tab1
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - MAX( 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4336
SELECT - MAX ( 53 ) FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( 80 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - 8 + - COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 8 + - COUNT ( * ) AS col2 FROM tab2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT + CAST( col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4340
SELECT + CAST ( col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + col0 * 9 col1 FROM tab2
----
511
673
772

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + 10 col1 FROM tab1 WHERE NOT col0 * + 2 IS NULL
----
-379
-89
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4344
SELECT 89 - col1 * + col0 AS col0 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( col1 * 85 ) AND + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
-1126
-1738
-8

skipif mysql # not compatible
query I rowsort label-4344
SELECT 89 - col1 * + col0 AS col0 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( col1 * 85 ) AND + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
-1126
-1738
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE 67 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 52 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + MAX ( - col2 ) FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE 10 NOT IN ( - ( - col1 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT 78 * COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT 78 * COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

query I rowsort
SELECT 73 * + 89 FROM tab0 WHERE NOT - ( - col1 ) IS NULL
----
6497
6497
6497

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT - 92 DIV + col0 + - ( 39 ) * 9 FROM tab2
----
-352
-352
-353

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 92 / + col0 + - ( 39 ) * 9 FROM tab2
----
-352
-352
-353

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 21 + + ( - 85 + - col0 * + 64 ) NOT BETWEEN ( col2 ) AND col1 / 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4354
SELECT * FROM tab0 WHERE NOT ( 16 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4354
SELECT * FROM tab0 WHERE NOT ( 16 ) < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 26 + ( col2 + + col1 ) AS col1 FROM tab2 AS cor0
----
100
143
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col2 + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4358
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST( + 32 AS SIGNED ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4358
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST ( + 32 AS INTEGER ) AND ( - col0 )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + 29 * COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + 29 * COUNT ( * ) FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT + + ( + col0 ) + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + + ( + col0 ) + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 65 ) - - 35 col1 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT ALL - 6 + 51 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE ( + col2 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT DISTINCT - col2 DIV - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-50
-85
-90

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - col2 / - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-50
-85
-90

query I rowsort
SELECT - 3 - col1 FROM tab0 AS cor0
----
-24
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL MAX( 21 ) * 75 FROM tab1 AS cor0
----
1575

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL MAX ( 21 ) * 75 FROM tab1 AS cor0
----
1575

query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE col1 / + col2 IS NULL
----

query I rowsort
SELECT col0 * - col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 35 * + 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 97 * + - col0 AS col2 FROM tab2
----
4462
6208
7275

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col2 * 15 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + 5 * + COUNT( DISTINCT + 26 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + 5 * + COUNT ( DISTINCT + 26 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT + - ( - ( CAST( ( col0 ) AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4376
SELECT + - ( - ( CAST ( ( col0 ) AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT ALL 3, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL 3, + COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL 27 + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT ALL - 11 AS col0, + col1 FROM tab2
----
-11
51
-11
67
-11
77

query I rowsort
SELECT DISTINCT + + 73 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4381
SELECT DISTINCT * FROM tab0 WHERE 95 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4381
SELECT DISTINCT * FROM tab0 WHERE 95 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 54 ) col1 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL + + MAX( col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4383
SELECT ALL + + MAX ( col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col0 + 96 FROM tab1 AS cor0 WHERE NOT + + ( col0 ) IS NULL OR NOT NULL IS NULL
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT - - ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4385
SELECT - - ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 37 + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( - col2 / col0 )
----

query I rowsort
SELECT - col1 - col0 * ( + 5 ) FROM tab2 AS cor0 WHERE NOT col1 >= + col1 + col1
----
-281
-397
-442

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 32 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - ( + col1 ) ) - + col2 * + col2 NOT BETWEEN NULL AND ( - 1 )
----

query I rowsort
SELECT col1 + col2 * col0 FROM tab1 WHERE NULL NOT IN ( - ( + 58 ) )
----

query I rowsort
SELECT - col2 + - 52 * + col2 FROM tab0
----
-2491
-5247
-530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4392
SELECT + COUNT( * ) + 79 AS col2, CAST( - SUM( DISTINCT col2 ) AS SIGNED ) - - 9 AS col2 FROM tab1
----
82
-214

skipif mysql # not compatible
query II rowsort label-4392
SELECT + COUNT ( * ) + 79 AS col2, CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) - - 9 AS col2 FROM tab1
----
82
-214

query I rowsort
SELECT DISTINCT col2 + col2 - col0 AS col2 FROM tab1
----
141
33
45

query I rowsort
SELECT + + col2 * - col2 + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - 88 + + COUNT( - 91 ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 88 + + COUNT ( - 91 ) AS col1 FROM tab1
----
-85

query I rowsort
SELECT - 1 + - 61 AS col0 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT 56 + - col2 - + col1 AS col0 FROM tab1
----
-54
-59
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT + 68 DIV - COUNT( * ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 68 / - COUNT ( * ) AS col0 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT - col0 DIV col2 col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4399
SELECT - col0 / col2 col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4400
SELECT * FROM tab2 cor0 WHERE + col1 NOT BETWEEN + CAST( 66 AS SIGNED ) + + col0 AND 29 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4400
SELECT * FROM tab2 cor0 WHERE + col1 NOT BETWEEN + CAST ( 66 AS INTEGER ) + + col0 AND 29 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 - + - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 - + col1 / + col2 / 21 + - ( col2 ) ) NOT IN ( + col0 + 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL COUNT( * ) - + + SUM( - ( col0 ) ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL COUNT ( * ) - + + SUM ( - ( col0 ) ) AS col1 FROM tab2
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT - 75 - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 75 - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - col0 - 88 FROM tab1
----
-139
-173
-179

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4406
SELECT - col0 - - 46 * + col2 AS col0, 26 * + CAST( NULL AS DECIMAL ) FROM tab2
----
1012
NULL
1776
NULL
2593
NULL

skipif mysql # not compatible
query II rowsort label-4406
SELECT - col0 - - 46 * + col2 AS col0, 26 * + CAST ( NULL AS REAL ) FROM tab2
----
1012
NULL
1776
NULL
2593
NULL

query I rowsort
SELECT ALL + ( + + 56 ) * - col2 FROM tab0
----
-2632
-5544
-560

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 94 + + ( - col2 ) NOT IN ( col1 + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - 45 AS col0 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL + COUNT( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + COUNT ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + - col0 ) IN ( ( 58 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 38, - col2 + + + col1 * col2 AS col2 FROM tab2 AS cor0
----
38
1150
38
3040
38
3828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - + COUNT( * ) DIV + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - + COUNT ( * ) / + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT + - col0, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT + col2 * - col1 * + - 40 AS col1 FROM tab0
----
152280
3960
8400

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - SUM( ( + - 61 ) ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-4416
SELECT - SUM ( ( + - 61 ) ) AS col0 FROM tab0
----
183

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL BETWEEN - col2 AND + 99
----

query II rowsort
SELECT + 39, col0 AS col1 FROM tab2
----
39
46
39
64
39
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 35 * - + col1 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <> + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - 75 BETWEEN col2 AND - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - 74, col1 col0 FROM tab0 AS cor0
----
-3478
81
-7326
1
-740
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT ALL col1 * - 41 FROM tab0 AS cor0
----
-3321
-41
-861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4425
SELECT DISTINCT + CAST( NULL AS SIGNED ), 87 AS col2 FROM tab1 AS cor0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 87 AS col2 FROM tab1 AS cor0
----
NULL
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4426
SELECT DISTINCT - - col2, col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

skipif mysql # not compatible
query II rowsort label-4426
SELECT DISTINCT - - col2, col2 / - col0 AS col1 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - + col2 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4427
SELECT - + col2 / + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT ALL + - col2 + - - col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - + 79 * + col2 + 77 FROM tab0 cor0
----
-3636
-713
-7744

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 27 NOT IN ( col2 * + - ( + + col1 ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + ( + - 56 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + ( + - 56 ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT ALL col2 DIV + - 20 + - col0 + + 7 + - col1 * - 3 * + - 72 + col0 AS col0 FROM tab1 AS cor0
----
-10148
-1075
-3021

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL col2 / + - 20 + - col0 + + 7 + - col1 * - 3 * + - 72 + col0 AS col0 FROM tab1 AS cor0
----
-10148
-1075
-3021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 72 col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * - 32 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 32 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - 43
----

query I rowsort
SELECT ALL 52 + - col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT + col0 FROM tab0 WHERE + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < 40 * col2 + 33
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + + col2 * + col1 < ( col1 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4440
SELECT + MIN( ALL + ( + col0 ) ) * + 2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + MIN ( ALL + ( + col0 ) ) * + 2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT + COUNT( * ) + + 64 * - 28 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1786

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + COUNT ( * ) + + 64 * - 28 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1786

query I rowsort
SELECT ALL + + 52 - + col0 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 < ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - COUNT( + - 63 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT - COUNT ( + - 63 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + 74 * + 28 - - COUNT( * ) FROM tab2 AS cor0
----
2075

skipif mysql # not compatible
query I rowsort label-4447
SELECT + 74 * + 28 - - COUNT ( * ) FROM tab2 AS cor0
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT MIN( ALL + col0 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4448
SELECT MIN ( ALL + col0 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + - MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4449
SELECT + - MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT DISTINCT - col0 * + col0 + + col2 DIV - 13 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-2117
-4099
-5629

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - col0 * + col0 + + col2 / - 13 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-2117
-4099
-5629

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4452
SELECT - CAST( NULL AS SIGNED ) DIV + + col2 * + 71 AS col2, - col1 DIV 34 FROM tab0
----
NULL
-2
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4452
SELECT - CAST ( NULL AS INTEGER ) / + + col2 * + 71 AS col2, - col1 / 34 FROM tab0
----
NULL
-2
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 51 < - col2 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4454
SELECT CAST( NULL AS DECIMAL ) AS col2, col0 - - 61 FROM tab2
----
NULL
107
NULL
125
NULL
136

skipif mysql # not compatible
query II rowsort label-4454
SELECT CAST ( NULL AS REAL ) AS col2, col0 - - 61 FROM tab2
----
NULL
107
NULL
125
NULL
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - COUNT( * ) * 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - COUNT ( * ) * 98 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT COUNT( * ) * + 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4456
SELECT COUNT ( * ) * + 11 FROM tab0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4457
SELECT + CAST( + col2 AS DECIMAL ) + + col2 FROM tab0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4457
SELECT + CAST ( + col2 AS REAL ) + + col2 FROM tab0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / 56 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT DISTINCT - 11 DIV + 65 - - col1, + 12 AS col0 FROM tab1 AS cor0
----
14
12
47
12
5
12

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT - 11 / + 65 - - col1, + 12 AS col0 FROM tab1 AS cor0
----
14
12
47
12
5
12

query I rowsort
SELECT DISTINCT - - col0 * + 55 AS col1 FROM tab0 AS cor0
----
4785
5335
825

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4461
SELECT DISTINCT 69 DIV + CAST( + - 54 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT 69 / + CAST ( + - 54 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + 36 * + + col2 + - col2 IN ( - 82, 70 )
----

query I rowsort
SELECT ALL + ( 48 ) FROM tab1 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT - 10 DIV + + COUNT( * ) + - 66 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4464
SELECT - 10 / + + COUNT ( * ) + - 66 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 38 + + - col1 FROM tab2 AS cor0
----
-13
-29
-39

query I rowsort
SELECT ALL + + 89 * + + col0 + - - col0 FROM tab0 cor0
----
1350
7830
8730

query I rowsort
SELECT DISTINCT 76 * + ( + 21 ) * + col0 AS col1 FROM tab0
----
138852
154812
23940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL + 41 / col0 * col2 * + - col1 FROM tab1 WHERE ( - CAST( + 15 AS SIGNED ) ) NOT BETWEEN NULL AND 90
----

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + 41 / col0 * col2 * + - col1 FROM tab1 WHERE ( - CAST ( + 15 AS INTEGER ) ) NOT BETWEEN NULL AND 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT + col0 * - CAST( + col0 AS SIGNED ) col1 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT + col0 * - CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 WHERE + 90 * + 51 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4471
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col1 IN ( - 12 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 37 + + col2 - - col0 FROM tab2 AS cor0
----
32
67
96

query I rowsort
SELECT ALL - col0 + col2 * - 49 FROM tab1 AS cor0
----
-2976
-3423
-4755

query I rowsort
SELECT DISTINCT - - col2 + 93 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT - 77 DIV col1 - + 81 + - col0 + 38 FROM tab2 cor0
----
-108
-119
-90

skipif mysql # not compatible
query I rowsort label-4476
SELECT - 77 / col1 - + 81 + - col0 + 38 FROM tab2 cor0
----
-108
-119
-90

query I rowsort
SELECT ALL + 42 * - col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab1 cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4479
SELECT - col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-4479
SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT DISTINCT COUNT( * ) AS col2, 33 col2 FROM tab2 AS cor0
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4480
SELECT DISTINCT COUNT ( * ) AS col2, 33 col2 FROM tab2 AS cor0
----
3
33

query II rowsort
SELECT ALL - col0, + col1 + ( + 23 ) AS col0 FROM tab2 AS cor0
----
-46
74
-64
100
-75
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT ( + 81 ) DIV col1 DIV 90 + - col2 + + - col2 FROM tab1 cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-4482
SELECT ( + 81 ) / col1 / 90 + - col2 + + - col2 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT col0 DIV + + 63 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4483
SELECT col0 / + + 63 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 55 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT ALL - SUM( + col0 ) AS col0, + COUNT( * ) FROM tab0
----
-199
3

skipif mysql # not compatible
query II rowsort label-4485
SELECT ALL - SUM ( + col0 ) AS col0, + COUNT ( * ) FROM tab0
----
-199
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + 57 ) IS NOT NULL
----

query I rowsort
SELECT 85 * - col2 * col0 FROM tab0
----
-59925
-73950
-816255

query I rowsort
SELECT ALL - col2 * - col1 * 27 AS col1 FROM tab1
----
36288
7965
86292

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL SUM( + - 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL SUM ( + - 61 ) FROM tab0
----
-183

query I rowsort
SELECT ALL - col0 * + 76 * - 97 FROM tab0
----
110580
641364
715084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 92 col0 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT ALL CAST( NULL AS SIGNED ) + + 28, 36 AS col1 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL CAST ( NULL AS INTEGER ) + + 28, 36 AS col1 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4493
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * - col1 + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4493
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * - col1 + ( CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + + col2 ) col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - 41 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 41 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT ALL COUNT( * ) AS col0, + 63 FROM tab0 cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL COUNT ( * ) AS col0, + 63 FROM tab0 cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT + COUNT( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + COUNT ( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL - - 40 * - COUNT( * ) + + COUNT( ALL - 55 ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - - 40 * - COUNT ( * ) + + COUNT ( ALL - 55 ) FROM tab2 AS cor0
----
-117

query I rowsort
SELECT ALL + 6 + - + 79 * - + col1 FROM tab1 AS cor0
----
1112
3719
401

query I rowsort
SELECT + + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * - col1 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL - ( 20 ) DIV - 91 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - ( 20 ) / - 91 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 2 < - col2 + + col0 * - ( - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0, col0 FROM tab0 AS cor0 WHERE 29 + + - 16 * - - col0 IS NOT NULL
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT + col0 + + + col1 DIV - 16 - + col2 FROM tab0 AS cor0
----
-2
-37
76

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + col0 + + + col1 / - 16 - + col2 FROM tab0 AS cor0
----
-2
-37
76

query II rowsort
SELECT DISTINCT + - col2 - - ( - 34 ) AS col2, 64 AS col1 FROM tab2 AS cor0
----
-57
64
-74
64
-92
64

query I rowsort
SELECT 59 - + col2 * + + ( + + col1 ) - + col0 * + + col2 AS col2 FROM tab2
----
-2172
-5581
-8177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4508
SELECT ALL + col1 DIV - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + col1 / - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - + col2 FROM tab1 WHERE - + 12 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT 80 * 90 + 49 * + col1 + + col0 FROM tab0
----
11184
7346
8316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58, + col2 col1 FROM tab2
----
-58
23
-58
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT + col1 DIV + col1 + col2 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4512
SELECT + col1 / + col1 + col2 FROM tab0 cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT + + COUNT( * ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT MIN( - - 3 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT DISTINCT MIN ( - - 3 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT ALL + - COUNT( * ) AS col0, 45 * - COUNT( * ) FROM tab1 AS cor0
----
-3
-135

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL + - COUNT ( * ) AS col0, 45 * - COUNT ( * ) FROM tab1 AS cor0
----
-3
-135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = + - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + + COUNT( * ) * - MAX( DISTINCT - 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4517
SELECT + + COUNT ( * ) * - MAX ( DISTINCT - 94 ) FROM tab2 AS cor0
----
282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + ( + - 48 ) + - 18 - - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT ALL - 41 * - - 86 * + 43, COUNT( * ) AS col0 FROM tab1
----
-151618
3

skipif mysql # not compatible
query II rowsort label-4519
SELECT ALL - 41 * - - 86 * + 43, COUNT ( * ) AS col0 FROM tab1
----
-151618
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + col0 ) * 18 AS col2, ( 16 ) * col0 col2 FROM tab0
----
1566
1392
1746
1552
270
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) * - + col0 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) * - + col0 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT ALL + SUM( ALL + col2 ) DIV - 22 AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + SUM ( ALL + col2 ) / - 22 AS col0 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( * ) * + 28 - + 60 AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( * ) * + 28 - + 60 AS col0 FROM tab1
----
-144

query I rowsort
SELECT 49 + + col0 + - + col1 + col1 AS col2 FROM tab0 AS cor0
----
136
146
64

query II rowsort
SELECT DISTINCT - col2 * - col0 AS col0, - ( col2 ) FROM tab1 cor0
----
4896
-96
5015
-59
6188
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + + SUM( ALL + - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IN ( col2, + ( + col0 ) + - + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT + + SUM ( ALL + - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IN ( col2, + ( + col0 ) + - + 77 ) )
----
NULL

query I rowsort
SELECT col1 + col0 * col1 * - 38 AS col0 FROM tab2 AS cor0
----
-187187
-190883
-89097

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - MIN( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - MIN ( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4530
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ), - CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4530
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ), - CAST ( - - col1 AS INTEGER ) )
----

query I rowsort
SELECT - + 96 FROM tab1 WHERE NULL IS NULL
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + col1 + - + 1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL COUNT( * ) + - 93 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL COUNT ( * ) + - 93 FROM tab0
----
-90

query I rowsort
SELECT ALL 14 * 65 FROM tab2 WHERE NOT ( + - 67 ) IS NULL
----
910
910
910

query I rowsort
SELECT 89 * + - ( 94 ) FROM tab2
----
-8366
-8366
-8366

query I rowsort
SELECT ALL - - 72 * - col2 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 - 76 AS col0 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT ALL - col0 - + - 77 - + - col2 + - - 90 FROM tab1
----
141
144
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT - + 12 * col2 * + + col2 DIV + col2 FROM tab2 AS cor0
----
-276
-480
-696

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - + 12 * col2 * + + col2 / + col2 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 72
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND 4 + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4542
SELECT + col1 AS col0, 22 DIV 35 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-4542
SELECT + col1 AS col0, 22 / 35 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL - COUNT( * ) * + COUNT( * ) * + - 51 AS col0 FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + - 51 AS col0 FROM tab2
----
459

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4546
SELECT ALL - 94 / - - CAST( NULL AS DECIMAL ) + - 23 * MAX( + 2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 94 / - - CAST ( NULL AS REAL ) + - 23 * MAX ( + 2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + AVG ( ALL - + ( + 72 ) ) + + ( SUM( + 36 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + AVG ( ALL - + ( + 72 ) ) + + ( SUM ( + 36 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + col1 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 21 * + 20 FROM tab1
----
-420
-420
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 74 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4553
SELECT ALL + ( col0 ) col2, 72 * CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4553
SELECT ALL + ( col0 ) col2, 72 * CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL ( - + ( + MIN( ALL CAST( - + col1 AS SIGNED ) ) ) ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4554
SELECT ALL ( - + ( + MIN ( ALL CAST ( - + col1 AS INTEGER ) ) ) ) col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE - col2 + - 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4556
SELECT MAX( - col1 ), + CAST( + + 72 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
72

skipif mysql # not compatible
query II rowsort label-4556
SELECT MAX ( - col1 ), + CAST ( + + 72 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT - COUNT( * ) + + + 42 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND CAST( NULL AS SIGNED ) - + + CAST( NULL AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4557
SELECT - COUNT ( * ) + + + 42 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + 3 * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 3 * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - CAST( NULL AS SIGNED ) * - col2 / - 88 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT - CAST ( NULL AS INTEGER ) * - col2 / - 88 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT - - 21 * + COUNT( * ) + + 12 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - - 21 * + COUNT ( * ) + + 12 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col1, - 94 FROM tab1 AS cor0
----
51
-94
85
-94
91
-94

query I rowsort
SELECT DISTINCT + + col1 * + + 6 AS col0 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT ALL 97 + col0 AS col1 FROM tab2 AS cor0
----
143
161
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT + CAST( - - col0 AS SIGNED ) - - + col2 col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4565
SELECT + CAST ( - - col0 AS INTEGER ) - - + col2 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 13 - col1 FROM tab1
----
-1
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT col0 * + col1 + - + col0 + + - col0 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT col0 * + col1 + - + col0 + + - col0 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT DISTINCT - 91 * col1 AS col0 FROM tab1
----
-1274
-4277
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 91 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 91 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4571
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 - - col1 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4571
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 - - col1 < + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( - - 18 ) FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + 71 DIV col0 + - 70 AS col2 FROM tab2 AS cor0
----
-69
-70

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + 71 / col0 + - 70 AS col2 FROM tab2 AS cor0
----
-69
-70

query I rowsort
SELECT col2 * - 67 + col1 FROM tab0 cor0
----
-3068
-649
-6632

query I rowsort
SELECT col1 * + - col0 * - col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL + ( 99 ) AS col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT ALL col2 * col0 * 55, col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
269280
NULL
275825
NULL
340340
NULL

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL col2 * col0 * 55, col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
269280
NULL
275825
NULL
340340
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT MIN( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT MIN ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT + + MIN( ALL - col1 ) * - 86 + - 50 AS col1 FROM tab1 AS cor0
----
3992

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + + MIN ( ALL - col1 ) * - 86 + - 50 AS col1 FROM tab1 AS cor0
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4580
SELECT COUNT( * ) AS col2, + COUNT( * ) / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4580
SELECT COUNT ( * ) AS col2, + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4581
SELECT DISTINCT + + 90 + - col0 DIV - 99 + + col1 DIV - - col2 col1, - col0 DIV col0 FROM tab0 AS cor0
----
90
-1
91
-1
92
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4581
SELECT DISTINCT + + 90 + - col0 / - 99 + + col1 / - - col2 col1, - col0 / col0 FROM tab0 AS cor0
----
90
-1
91
-1
92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT 40 + - COUNT( * ) col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4582
SELECT DISTINCT 40 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab0 WHERE NOT - 72 BETWEEN 81 AND NULL
----
-70
-70
-70

query II rowsort
SELECT ALL 49, col0 AS col2 FROM tab2
----
49
46
49
64
49
75

query I rowsort
SELECT col0 + - + col0 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 83 AS col2, 50 + col2 AS col2 FROM tab1
----
83
109
83
118
83
146

query II rowsort
SELECT DISTINCT + col1, 11 AS col0 FROM tab0
----
1
11
21
11
81
11

query I rowsort
SELECT ( + 75 ) FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL - - col2 + - 13 + - col0 * - + col1 + - CAST( ( 89 ) AS SIGNED ) + col1 FROM tab1 AS cor0
----
387
4290
722

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - - col2 + - 13 + - col0 * - + col1 + - CAST ( ( 89 ) AS INTEGER ) + col1 FROM tab1 AS cor0
----
387
4290
722

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL + SUM( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + SUM ( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL 20 + + CAST( - - 63 AS SIGNED ) + + col2 * + col2 AS col1 FROM tab0 cor0
----
183
2292
9884

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 20 + + CAST ( - - 63 AS INTEGER ) + + col2 * + col2 AS col1 FROM tab0 cor0
----
183
2292
9884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col2 * + col1 - - + col2 col1 FROM tab2 AS cor0
----
1219
3160
4002

query III rowsort
SELECT * FROM tab1 WHERE - 79 + - ( 48 ) <> NULL
----

query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT CAST( NULL AS SIGNED ) * + + 92 * + COUNT( * ) * - 37 * + 82 + - - 6 col1 FROM tab0 AS cor0 WHERE col2 + + - col2 / - - col1 IN ( + + col1, + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT CAST ( NULL AS INTEGER ) * + + 92 * + COUNT ( * ) * - 37 * + 82 + - - 6 col1 FROM tab0 AS cor0 WHERE col2 + + - col2 / - - col1 IN ( + + col1, + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - - ( - col0 ) + 42 AS col2 FROM tab1 AS cor0
----
-43
-49
-9

query I rowsort
SELECT + col0 * + ( 50 ) AS col2 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4601
SELECT ALL 87 AS col2, - MIN( + col2 ) DIV + ( + 7 ) FROM tab0
----
87
-1

skipif mysql # not compatible
query II rowsort label-4601
SELECT ALL 87 AS col2, - MIN ( + col2 ) / + ( + 7 ) FROM tab0
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + SUM( 69 ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-4602
SELECT + SUM ( 69 ) FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT ALL - 30 * - COUNT( * ) * - - 30, MIN( col2 ) AS col0 FROM tab0
----
2700
10

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL - 30 * - COUNT ( * ) * - - 30, MIN ( col2 ) AS col0 FROM tab0
----
2700
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 + - - col1 + + - col1 * col0 NOT BETWEEN NULL AND - col0 - - + col0
----

query II rowsort
SELECT col2, 7 FROM tab2
----
23
7
40
7
58
7

query I rowsort
SELECT 21 * - - col2 AS col2 FROM tab0 WHERE NOT - 71 IS NULL
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL 96 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL < 58
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL < 58
----
0

query I rowsort
SELECT ALL - ( - 64 ) AS col1 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT COUNT( * ) * + 5 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4610
SELECT COUNT ( * ) * + 5 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT MIN( 97 ) FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4611
SELECT MIN ( 97 ) FROM tab2 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + - 19 DIV 70 * - 50 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - 19 / 70 * - 50 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT col0 DIV col2 + col2 col1 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4613
SELECT DISTINCT col0 / col2 + col2 col1 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT DISTINCT + col2 * + 9 * - col0 * - col2 + + + col1 * - - col1 FROM tab1 AS cor0
----
2662990
3789265
4230340

query I rowsort
SELECT - - 77 FROM tab2 cor0
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ( - - SUM( + col2 ) ) * CAST( NULL AS SIGNED ) + + COUNT( - col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ( - - SUM ( + col2 ) ) * CAST ( NULL AS INTEGER ) + + COUNT ( - col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT ALL col2 + + - col1 * + col0 + - col0 - col0 + col2 + - + 64 DIV col0 AS col2 FROM tab2 AS cor0
----
-2393
-4977
-5059

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL col2 + + - col1 * + col0 + - col0 - col0 + col2 + - + 64 / col0 AS col2 FROM tab2 AS cor0
----
-2393
-4977
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - COUNT( * ) * COUNT( - 55 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4618
SELECT - COUNT ( * ) * COUNT ( - 55 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + COUNT( * ) * + ( 77 ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + COUNT ( * ) * + ( 77 ) AS col0 FROM tab2 AS cor0
----
231

query I rowsort
SELECT ALL + 24 * - col0 AS col0 FROM tab1
----
-1224
-2040
-2184

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT DISTINCT 66 DIV + - col2 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT 66 / + - col2 AS col2 FROM tab0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 55 FROM tab0
----
1
55
21
55
81
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 66 + + col1 col0 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT DISTINCT col2 * - col2 + - 26 AS col0 FROM tab2 AS cor0
----
-1626
-3390
-555

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 51 AS col1, - 75 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
51
-4352
51
-500
51
-789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT + + 81 - + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT + + 81 - + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE + col1 * - col0 = + - col2 / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 62, - col2, + + 34, - col2 - 52 )
----

query II rowsort
SELECT DISTINCT - + col0 AS col0, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT 10 AS col0, - 41 AS col2 FROM tab1 AS cor0
----
10
-41
10
-41
10
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT + COUNT( * ) + + - 96 FROM tab0 WHERE + col1 * + + col0 > - + 30
----
-93

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + COUNT ( * ) + + - 96 FROM tab0 WHERE + col1 * + + col0 > - + 30
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT MAX( col1 ) * COUNT( * ) * - 88 AS col2 FROM tab2
----
-20328

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT MAX ( col1 ) * COUNT ( * ) * - 88 AS col2 FROM tab2
----
-20328

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col2 * + col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

query I rowsort
SELECT DISTINCT - + ( + + 7 ) * + ( - + col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4639
SELECT - 90 DIV CAST( - 1 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 90 / CAST ( - 1 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT DISTINCT col1 + + 38 + + - ( + col2 ) AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-60
-99
49
-10
72
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + + 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 42 + - - 69 + + 26 AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT + 51 * + col0 + + + 16 FROM tab2 AS cor0
----
2362
3280
3841

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT ALL - + COUNT( * ) col1, + 82 * - - 72 FROM tab0 AS cor0 WHERE ( NOT 61 IS NOT NULL ) OR NOT ( 95 IS NOT NULL )
----
0
5904

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4644
SELECT ALL - + COUNT ( * ) col1, + 82 * - - 72 FROM tab0 AS cor0 WHERE ( NOT 61 IS NOT NULL ) OR NOT ( 95 IS NOT NULL )
----
0
5904

query I rowsort
SELECT col0 + - + col2 * 99 FROM tab0
----
-4638
-903
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL - MAX( ALL + 95 ) + - 87 AS col2 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - MAX ( ALL + 95 ) + - 87 AS col2 FROM tab0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + MAX( ALL - - col2 ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + MAX ( ALL - - col2 ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 76 * - col1 - - - col1 AS col2 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT col0 * 94 + col2 FROM tab2
----
4347
6056
7108

query I rowsort
SELECT col2 + + 6 FROM tab0 WHERE - 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT ( + + CAST( NULL AS SIGNED ) ) + - - col1 + - col2 / CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ( + + CAST ( NULL AS INTEGER ) ) + - - col1 + - col2 / CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - ( + - ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4652
SELECT - ( + - ( + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4653
SELECT ALL * FROM tab0 WHERE NOT + 50 / - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4653
SELECT ALL * FROM tab0 WHERE NOT + 50 / - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * + 1 * - + 91 AS col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT col0 * - ( + 44 ) AS col0 FROM tab0
----
-3828
-4268
-660

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4657
SELECT ALL * FROM tab0 WHERE - - CAST( + - col1 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4657
SELECT ALL * FROM tab0 WHERE - - CAST ( + - col1 AS INTEGER ) + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 62 + - 92 + + col1 FROM tab1
----
-16
-25
17

query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT MAX( 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT MAX ( 9 ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 / - col1 * - + ( - 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab0 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 48 / - col1 / - col1 + - + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 81 * 4 + + + col2 FROM tab0 AS cor0
----
334
371
423

query II rowsort
SELECT 70, 40 * 16 AS col0 FROM tab2
----
70
640
70
640
70
640

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL COUNT( * ) AS col1, 14 + 9 AS col2 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL COUNT ( * ) AS col1, 14 + 9 AS col2 FROM tab2
----
3
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4668
SELECT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) / + 72 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4668
SELECT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) / + 72 IS NULL )
----

query I rowsort
SELECT 12 * ( ( + - col2 ) ) FROM tab2
----
-276
-480
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT - + col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - + col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + 62, + 71 AS col0 FROM tab2
----
62
71
62
71
62
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4672
SELECT + - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, - col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( - - 92 * + col0 + - + ( col1 ) + 86 * - col2 * + + col1, - col2 + col0 )
----
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - COUNT( DISTINCT - 38 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4674
SELECT - COUNT ( DISTINCT - 38 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 15 + + - col0 * + 13 * + + col0 FROM tab0
----
-122302
-2910
-98382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT + ( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * 23 IS NOT NULL )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4676
SELECT + ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * 23 IS NOT NULL )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4677
SELECT * FROM tab0 AS cor0 WHERE ( NOT 62 / + - col2 + + 56 BETWEEN NULL AND CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4677
SELECT * FROM tab0 AS cor0 WHERE ( NOT 62 / + - col2 + + 56 BETWEEN NULL AND CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col2 ) col1, + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE 15 * - 67 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 + + 46 col1 FROM tab2 AS cor0
----
-2555
-4443
-5883

query I rowsort
SELECT ALL - ( - - 87 ) + + + 86 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT DISTINCT col0 + 80 + - 94 DIV 60 AS col1 FROM tab2 AS cor0
----
125
143
154

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT col0 + 80 + - 94 / 60 AS col1 FROM tab2 AS cor0
----
125
143
154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 89 NOT IN ( - + col0, 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT COUNT( * ) - + 72 AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT COUNT ( * ) - + 72 AS col0 FROM tab1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT - 71 * + col2 + + - 40 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - 71 * + col2 + + - 40 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL - CAST( + 61 AS SIGNED ) * - + 87 - - col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-4197
4447
4649

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - CAST ( + 61 AS INTEGER ) * - + 87 - - col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-4197
4447
4649

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4687
SELECT + COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4687
SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4689
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab2 WHERE NOT NULL <= - + ( - col1 ) * + 94 + + col2 + col1
----

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab2
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 10 * COUNT( + col2 ) col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT 10 * COUNT ( + col2 ) col1 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col1 col1 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT DISTINCT col0 * 91 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 94 ) BETWEEN 50 AND - + col1 * + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 94 ) BETWEEN 50 AND - + col1 * + + col0
----
-3

query I rowsort
SELECT col0 * + - col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT DISTINCT + 8 DIV + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + 8 / + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 61 * - 88 + - col0 FROM tab0 AS cor0
----
-5383
-5455
-5465

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + - MIN( ALL - 92 ) col1 FROM tab2 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL + - MIN ( ALL - 92 ) col1 FROM tab2 cor0
----
92

query I rowsort
SELECT 96 * - - col2 AS col2 FROM tab0 cor0
----
4512
9504
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + 46 * + + COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + 46 * + + COUNT ( * ) FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT MAX( ALL + + 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT MAX ( ALL + + 75 ) FROM tab2
----
75

query I rowsort
SELECT - - ( - 57 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

query I rowsort
SELECT DISTINCT col2 * col1 / + - col1 + - - col2 FROM tab1 WHERE - 90 + + 55 + col0 * col2 * - + 34 * - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT + 13 DIV + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 13 / + 67 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + col2 * + - 30 * col2 - + 73 FROM tab0
----
-294200
-3160
-66358

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT MIN( ALL - - col0 ) + + + MIN( - col2 ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4711
SELECT MIN ( ALL - - col0 ) + + + MIN ( - col2 ) AS col2 FROM tab0
----
-84

query I rowsort
SELECT 81 + - col0 * col1 AS col1 FROM tab1
----
-344
-4196
-633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4713
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 92 * + 44 * + COUNT( * ) AS col1 FROM tab0
----
NULL
-12144

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 92 * + 44 * + COUNT ( * ) AS col1 FROM tab0
----
NULL
-12144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 94 >= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 49 + - 68 + + 20 AS col2, + 16 FROM tab2 cor0
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - COUNT( * ) + 71 AS col1 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) + 71 AS col1 FROM tab2 cor0
----
68

query I rowsort
SELECT ALL + col0 + - 12 FROM tab1 AS cor0
----
39
73
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 NOT BETWEEN NULL AND - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT - col1 * - CAST( NULL AS SIGNED ) + 95 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - col1 * - CAST ( NULL AS INTEGER ) + 95 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - ( COUNT( * ) ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - ( COUNT ( * ) ) + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - + 59 - 83 AS col1 FROM tab2 AS cor0
----
-142
-142
-142

query III rowsort
SELECT * FROM tab1 WHERE + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 + + col1 * + col0 * - + col0 col1 FROM tab2
----
-107985
-315496
-377008

query III rowsort
SELECT * FROM tab0 WHERE 48 > 33 + - 77 * - + 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT + 50 * - COUNT( * ) * + + 30 DIV ( + COUNT( * ) ) AS col0 FROM tab0
----
-1500

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 50 * - COUNT ( * ) * + + 30 / ( + COUNT ( * ) ) AS col0 FROM tab0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + + COUNT( + 9 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4726
SELECT + + COUNT ( + 9 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - MAX( ALL + + 33 ) + + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - MAX ( ALL + + 33 ) + + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col0 * - - 92 AS col1 FROM tab2 cor0
----
4232
5888
6900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 97 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - + col0 + + col2 col0 FROM tab2 cor0
----
-2645
-3672
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT - 92, - COUNT( * ) col1 FROM tab2 AS cor0
----
-92
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4732
SELECT - 92, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-92
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + + col2 * + - 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

query I rowsort
SELECT col1 * - 35 * - col1 AS col0 FROM tab0
----
15435
229635
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + + MAX( + - col1 ) col0 FROM tab2 WHERE NOT + col2 / + col2 + - col1 - - 3 * 79 * - 88 + 79 / + col0 BETWEEN NULL AND - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT ALL + + MAX ( + - col1 ) col0 FROM tab2 WHERE NOT + col2 / + col2 + - col1 - - 3 * 79 * - 88 + 79 / + col0 BETWEEN NULL AND - + col0
----
NULL

query II rowsort
SELECT ALL + ( col1 ), col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT + col2 DIV + + col0 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT + col2 / + + col0 col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN + + 29 AND col1 + + + col1 - - col1 / col1
----

query I rowsort
SELECT ALL + col1 + 67 * + - 41 FROM tab0 AS cor0
----
-2666
-2726
-2746

query I rowsort
SELECT ALL col2 * + 25 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - + 73 DIV + 85 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + 73 / + 85 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 53 > NULL
----

query I rowsort
SELECT - col2 - + col2 + 50 AS col2 FROM tab2 AS cor0
----
-30
-66
4

query I rowsort
SELECT ALL 43 + ( 99 ) - + col0 AS col0 FROM tab1 AS cor0
----
51
57
91

query I rowsort
SELECT ALL - 52 - col1 FROM tab0
----
-133
-53
-73

query I rowsort
SELECT ALL + col2 - - 49 FROM tab0
----
148
59
96

query I rowsort
SELECT ALL - col1 - - 59 FROM tab1
----
12
45
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT DISTINCT + 95 * - 1 - - + CAST( - 99 AS SIGNED ) * - 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + 95 * - 1 - - + CAST ( - 99 AS INTEGER ) * - 1 FROM tab0
----
4

query II rowsort
SELECT 71, 50 AS col1 FROM tab1
----
71
50
71
50
71
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ( - + ( + col0 ) ) DIV - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT ( - + ( + col0 ) ) / - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL ( + 41 ) AS col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - - MIN( DISTINCT - + 54 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - MIN ( DISTINCT - + 54 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT + 87 * COUNT( + col2 ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT + 87 * COUNT ( + col2 ) FROM tab0
----
261

query I rowsort
SELECT DISTINCT + 90 FROM tab2 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT + - 63 + - col0 FROM tab1 AS cor0 WHERE + 33 + 40 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + - COUNT( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + - COUNT ( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT - MAX( + - col0 ) DIV COUNT( - + col1 ) * - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - MAX ( + - col0 ) / COUNT ( - + col1 ) * - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT + col0 * + 14 * 49 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
31556
NULL
43904
NULL
51450
NULL

skipif mysql # not compatible
query II rowsort label-4761
SELECT + col0 * + 14 * 49 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
31556
NULL
43904
NULL
51450
NULL

query I rowsort
SELECT - col1 + + - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - + COUNT( - col2 ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL COUNT( * ) * + 28 * - COUNT( * ), + 80 AS col2 FROM tab1
----
-252
80

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL COUNT ( * ) * + 28 * - COUNT ( * ), + 80 AS col2 FROM tab1
----
-252
80

query I rowsort
SELECT col2 + + 75 + col0 AS col2 FROM tab2
----
144
179
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + + 52 col0 FROM tab0 AS cor0
----
151
62
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + ( - 71 ) + + CAST( NULL AS SIGNED ) + + 11 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + ( - 71 ) + + CAST ( NULL AS INTEGER ) + + 11 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT SUM( - col0 ) AS col1 FROM tab1 WHERE ( 61 ) NOT BETWEEN + 58 + 34 * col2 AND col2
----
-227

skipif mysql # not compatible
query I rowsort label-4768
SELECT SUM ( - col0 ) AS col1 FROM tab1 WHERE ( 61 ) NOT BETWEEN + 58 + 34 * col2 AND col2
----
-227

query I rowsort
SELECT - col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL 25 DIV col0 col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT ALL 25 / col0 col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4771
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col0 BETWEEN col0 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col0 BETWEEN col0 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ( 77 ) + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4773
SELECT ( 77 ) + COUNT ( * ) FROM tab2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT 46 DIV - col1 AS col2 FROM tab0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT 46 / - col1 AS col2 FROM tab0
----
-2
-46
0

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - 19 NOT IN ( + 80 * 83 )
----
59
68
96

query I rowsort
SELECT col1 * - ( - col0 ) AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 / 37 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= ( col1 + col2 )
----

query I rowsort
SELECT col2 * 68 + col1 FROM tab1
----
4017
4671
6542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) * 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) * 88 FROM tab1
----
NULL

query I rowsort
SELECT + 84 * - col0 AS col2 FROM tab2
----
-3864
-5376
-6300

query III rowsort
SELECT * FROM tab1 WHERE 87 / 96 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4783
SELECT DISTINCT * FROM tab1 WHERE CAST( - ( + 42 ) AS SIGNED ) + - 99 BETWEEN NULL AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4783
SELECT DISTINCT * FROM tab1 WHERE CAST ( - ( + 42 ) AS INTEGER ) + - 99 BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + COUNT( * ) * + 99 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + COUNT ( * ) * + 99 FROM tab1
----
297

query I rowsort
SELECT DISTINCT + ( 42 ) + + ( ( - col2 ) ) * - 32 FROM tab2
----
1322
1898
778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT - CAST( 52 AS SIGNED ) * + 87 AS col1 FROM tab0
----
-4524

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - CAST ( 52 AS INTEGER ) * + 87 AS col1 FROM tab0
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MAX( ALL col1 ) + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4787
SELECT MAX ( ALL col1 ) + COUNT ( * ) FROM tab2
----
80

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + col2 + + col1 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE NOT - 27 - + CAST( ( col0 ) + + col1 * col2 AS DECIMAL ) < ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE NOT - 27 - + CAST ( ( col0 ) + + col1 * col2 AS REAL ) < ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND 96
----

query III rowsort
SELECT * FROM tab0 WHERE + 31 / col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN col1 AND 82
----

query III rowsort
SELECT * FROM tab2 WHERE 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 62 * COUNT( * ) - 51 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4794
SELECT 62 * COUNT ( * ) - 51 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL - 51 + COUNT( * ) AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - 51 + COUNT ( * ) AS col1 FROM tab0
----
-48

query III rowsort
SELECT * FROM tab2 WHERE ( - ( col0 ) * ( - 65 + + 28 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT 73 + + 39 DIV + 84 AS col1 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4798
SELECT 73 + + 39 / + 84 AS col1 FROM tab2
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - 49 AS col2 FROM tab0 cor0
----
-4263
-4753
-735

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4802
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - ( col1 ) AND CAST( - 96 AS SIGNED ) * + 46
----

skipif mysql # not compatible
query III rowsort label-4802
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - ( col1 ) AND CAST ( - 96 AS INTEGER ) * + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT 0 * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT 0 * COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT + col2 DIV ( - 13 ) AS col0 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT + col2 / ( - 13 ) AS col0 FROM tab0
----
-3
-7
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 78 * - col1 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT 23 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND ( - col1 + - 30 * 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL SUM( ALL - 39 ) * - 43 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
5034

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL SUM ( ALL - 39 ) * - 43 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5034

query I rowsort
SELECT - col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL <= 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT col2 * - col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - - ( col1 + 48 ) FROM tab0 WHERE NOT - 91 BETWEEN + col0 AND + col0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 27 ) * col0 col2 FROM tab2
----
-1242
-1728
-2025

query III rowsort
SELECT * FROM tab2 WHERE - 64 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + MIN( col2 ) col1 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 - col1 / col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT + MIN ( col2 ) col1 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 - col1 / col1 )
----
NULL

query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab0 WHERE col1 * - col2 + 43 * + 25 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT ALL col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - col0 * - col2 FROM tab0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + - COUNT( * ) + - - 41 AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4824
SELECT + - COUNT ( * ) + - - 41 AS col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT - 40 + col2 * + ( col0 ) FROM tab1 AS cor0
----
4856
4975
6148

query I rowsort
SELECT DISTINCT - 48 FROM tab2 cor0 WHERE ( + 27 + 63 / + col1 ) > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT DISTINCT - 96 * - CAST( - COUNT( + 46 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - 96 * - CAST ( - COUNT ( + 46 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

query III rowsort
SELECT * FROM tab0 WHERE ( 57 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + MIN( ( 72 ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT + MIN ( ( 72 ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + SUM( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + SUM ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - - 87 - - COUNT( * ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-4832
SELECT - - 87 - - COUNT ( * ) FROM tab2 cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> - 70 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + - col0 FROM tab1 AS cor0
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - + - col2 * + 90 col0 FROM tab1 AS cor0
----
5328
6138
8658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + + + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + 29 * - col0 FROM tab1 AS cor0
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ( + - MAX( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4838
SELECT ( + - MAX ( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - + col2 NOT BETWEEN NULL AND NULL OR col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - MIN( DISTINCT + 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - MIN ( DISTINCT + 71 ) AS col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 92 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 68 / - col0 * + col1 - col0 NOT IN ( col0 + + 93 )
----

query I rowsort
SELECT + - 30 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-30
-30
-30

query I rowsort
SELECT + col1 * + 96 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 19 + - 39 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 41 + + col1 IN ( 98 )
----

query I rowsort
SELECT col1 * 63 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 + + col2 * - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + COUNT( * ) * + 9 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + COUNT ( * ) * + 9 AS col0 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + - col1 + - - col1 + - 72 * 42 AND + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - col1 + - + col2 AS col0 FROM tab0 WHERE ( + 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - MAX( - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - MAX ( - + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + + MIN( - ( + + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + + MIN ( - ( + + col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL + + COUNT( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + + COUNT ( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( 32 ) NOT BETWEEN - 80 + + col0 + - 75 AND - 97
----
3

skipif mysql # not compatible
query I rowsort label-4859
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( 32 ) NOT BETWEEN - 80 + + col0 + - 75 AND - 97
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + - col2 col1 FROM tab0 AS cor0
----
0
52
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 >= NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT COUNT( * ) + 15 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT COUNT ( * ) + 15 FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col1 ) col0 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT 63 + + - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4864
SELECT 63 + + - COUNT ( * ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( MIN( DISTINCT - col1 ) ) + 79 * - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( MIN ( DISTINCT - col1 ) ) + 79 * - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + + 53 )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 9 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT DISTINCT 99 AS col2, - 76 * + MIN( DISTINCT col2 ) AS col0 FROM tab2
----
99
-1748

skipif mysql # not compatible
query II rowsort label-4867
SELECT DISTINCT 99 AS col2, - 76 * + MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
99
-1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 20 col0 FROM tab0
----
-15
-20
-87
-20
-97
-20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - col2 * 1 ) NOT IN ( + ( - 37 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT + 59 DIV + - COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 59 / + - COUNT ( * ) FROM tab2
----
-19

query I rowsort
SELECT 55 * - col1 FROM tab2
----
-2805
-3685
-4235

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 BETWEEN ( + col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + 56
----

query II rowsort
SELECT ALL - 39 AS col0, + 99 - col1 FROM tab0 AS cor0 WHERE - col1 + col1 IS NULL
----

query I rowsort
SELECT - - col2 * 39 * - col0 + col2 AS col0 FROM tab1 WHERE NULL NOT IN ( - col0, col1 )
----

query I rowsort
SELECT ALL - ( - + col1 ) * + + col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col1 * + 33 * + + col0 AS col0 FROM tab0 cor0
----
3201
40095
60291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4878
SELECT - CAST( NULL AS SIGNED ), + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4878
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT + + 67 FROM tab1 cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4880
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL 24 AS col0 FROM tab0 AS cor0 WHERE ( + 16 * col1 + - col1 ) IN ( - 89 + CAST( + + 66 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL 24 AS col0 FROM tab0 AS cor0 WHERE ( + 16 * col1 + - col1 ) IN ( - 89 + CAST ( + + 66 AS INTEGER ) )
----

query I rowsort
SELECT + 65 * + col2 * + col2 * col2 FROM tab1
----
13349635
20438080
57507840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT + MIN( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT + MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - SUM( ALL + 94 ) FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-4884
SELECT - SUM ( ALL + 94 ) FROM tab2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + COUNT( - 44 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4885
SELECT + COUNT ( - 44 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT DISTINCT COUNT( * ) * - + 24 DIV - COUNT( * ) col0 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4886
SELECT DISTINCT COUNT ( * ) * - + 24 / - COUNT ( * ) col0 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL - 53 * + + ( - COUNT( * ) ) * SUM( DISTINCT + - 24 ) FROM tab1
----
-3816

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - 53 * + + ( - COUNT ( * ) ) * SUM ( DISTINCT + - 24 ) FROM tab1
----
-3816

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4888
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 / + col2 NOT BETWEEN - col2 + - - col0 AND + col0 + CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4888
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 / + col2 NOT BETWEEN - col2 + - - col0 AND + col0 + CAST ( col1 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - ( 27 ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 22 IN ( + col0 + col1, col2 )
----

query II rowsort
SELECT ALL - col0, + col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + + MIN( DISTINCT + 97 ) AS col0 FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + + MIN ( DISTINCT + 97 ) AS col0 FROM tab2 cor0
----
97

query I rowsort
SELECT + - 99 * - 16 + + - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / + + col2 AND + 50
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 6 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + 50 * + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4895
SELECT + 50 * + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
150

query I rowsort
SELECT ALL - + 56 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - - 60 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4836
-4955
-6128

query I rowsort
SELECT - ( + 70 ) AS col1 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT 83 * - + 43 FROM tab1
----
-3569
-3569
-3569

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT ( NOT ( ( ( NULL ) IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 98 + - - 13 + - col1 / ( - col0 ) NOT BETWEEN ( - 24 ) AND ( NULL )
----

query II rowsort
SELECT ALL + col1 AS col1, ( - col0 ) * + col1 + col0 + - col1 * + 29 AS col0 FROM tab2
----
51
-3779
67
-6893
77
-7097

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 25 * + col1 > NULL
----

query I rowsort
SELECT + 24 + + - ( - col2 ) + 35 * + col0 - - col2 - 88 AS col1 FROM tab0 AS cor0
----
3001
3529
555

query I rowsort
SELECT + 51 / + 41 * - col1 + + - col2 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4908
SELECT ALL + col0 DIV + col0 + + col1, + col0 AS col2 FROM tab1 AS cor0
----
15
51
48
91
6
85

skipif mysql # not compatible
query II rowsort label-4908
SELECT ALL + col0 / + col0 + + col1, + col0 AS col2 FROM tab1 AS cor0
----
15
51
48
91
6
85

query I rowsort
SELECT col1 + col2 + col2 + col1 * + - 59 + - col0 FROM tab2 cor0
----
-2958
-3845
-4450

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4911
SELECT DISTINCT - col1 DIV + CAST( - + col2 AS SIGNED ) - col0 DIV col0 * + col0 + - ( + 95 ) AS col1, 31 AS col0 FROM tab0 AS cor0
----
-109
31
-180
31
-192
31

skipif mysql # not compatible
query II rowsort label-4911
SELECT DISTINCT - col1 / + CAST ( - + col2 AS INTEGER ) - col0 / col0 * + col0 + - ( + 95 ) AS col1, 31 AS col0 FROM tab0 AS cor0
----
-109
31
-180
31
-192
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * - + COUNT( * ) + + AVG ( 13 ) * 89 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * - + COUNT ( * ) + + AVG ( 13 ) * 89 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - col0 * + 62 FROM tab1
----
-3066
-5211
-5574

query II rowsort
SELECT ALL - col0 - - + col2 AS col1, col2 * 88 + 0 + + col2 + + + col1 FROM tab2
----
-17
5229
-23
2098
-24
3637

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * + ( - 85 ) * + 53 + - - col2 ) NOT BETWEEN NULL AND - ( - col2 ) * - - col2
----

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4917
SELECT DISTINCT col2, col0 * + + CAST( NULL AS SIGNED ) col1 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-4917
SELECT DISTINCT col2, col0 * + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + 46 * - 83 * - col1 FROM tab1 AS cor0
----
179446
19090
53452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL + col1 * 17 + - - col1 - - col0 * + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + col1 * 17 + - - col1 - - col0 * + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 61, - col2 AS col0 FROM tab2 AS cor0
----
-61
-23
-61
-40
-61
-58

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query II rowsort
SELECT - 85 AS col0, - col2 * + - col2 * col2 - - + col1 FROM tab1 AS cor0
----
-85
205384
-85
314479
-85
884750

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 37 ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT + 18 * + - col2 AS col1 FROM tab2 WHERE NOT + col1 * - 4 <= NULL
----

query II rowsort
SELECT 43 AS col0, + 33 FROM tab1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT - col2 DIV - CAST( - 10 AS SIGNED ) AS col0 FROM tab2
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - col2 / - CAST ( - 10 AS INTEGER ) AS col0 FROM tab2
----
-2
-4
-5

query I rowsort
SELECT ALL ( - col1 ) * - 56 FROM tab2
----
2856
3752
4312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4931
SELECT - CAST( NULL AS DECIMAL ) + ( - - col1 ) / - 69 FROM tab2 WHERE NOT 68 <= + col0 + + col1
----

skipif mysql # not compatible
query I rowsort label-4931
SELECT - CAST ( NULL AS REAL ) + ( - - col1 ) / - 69 FROM tab2 WHERE NOT 68 <= + col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1 AS col2, 89 col0 FROM tab0
----
1215
89
1827
89
97
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( - + 21 ) AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( - + 21 ) AS col1 FROM tab0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * - col1 + - 78 col2 FROM tab0 AS cor0
----
10
1770
7050

query I rowsort
SELECT ALL col2 * + ( col2 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT DISTINCT 1 / + + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT 1 / + + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4937
SELECT ALL + 35 AS col1, + col2 + + + col1 DIV 85 * - - col0 * + - 19 FROM tab2 AS cor0
----
35
23
35
40
35
58

skipif mysql # not compatible
query II rowsort label-4937
SELECT ALL + 35 AS col1, + col2 + + + col1 / 85 * - - col0 * + - 19 FROM tab2 AS cor0
----
35
23
35
40
35
58

query I rowsort
SELECT ALL - - 71 + col0 FROM tab0 cor0
----
158
168
86

query I rowsort
SELECT col2 * - 18 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 + - col1 * - col1 * + 62 - - - col1 FROM tab1 cor0
----
12124
136864
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + SUM( - col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + SUM ( - col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL col2 + + col0 * ( + + col0 ) FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT + 54 + - 32 DIV + + ( col1 ) FROM tab1 AS cor0
----
48
52
54

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 54 + - 32 / + + ( col1 ) FROM tab1 AS cor0
----
48
52
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( ALL + 58 ) + 30 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - COUNT ( ALL + 58 ) + 30 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL - + 36 - col2 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT DISTINCT 35 + + 22 FROM tab2 cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 81, + ( 14 ) * + col0 * + - col0 + + - col1 * + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - + ( - col2 ) + + col2 <= NULL
----

query II rowsort
SELECT DISTINCT - ( col0 ), + 6 AS col0 FROM tab2
----
-46
6
-64
6
-75
6

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab1 WHERE NOT + 79 IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + + 69 ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT SUM( + + ( + col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4952
SELECT SUM ( + + ( + col0 ) ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 - - - col0 col2 FROM tab1
----
-19
-25
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * col0 = - + ( - + 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - COUNT( - col0 ) * - 95 - + + 51 AS col1, 68 AS col0 FROM tab0 AS cor0
----
234
68

skipif mysql # not compatible
query II rowsort label-4955
SELECT - COUNT ( - col0 ) * - 95 - + + 51 AS col1, 68 AS col0 FROM tab0 AS cor0
----
234
68

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( + ( - 98 ) * + col1 + + + col1 )
----
51
67
77

query I rowsort
SELECT ALL - 96 * col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - - SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT - 27 DIV COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 27 / COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4961
SELECT + - 87 DIV CAST( 32 AS SIGNED ) AS col2 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4961
SELECT + - 87 / CAST ( 32 AS INTEGER ) AS col2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT + 42 * + col2 + + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1 * - 54 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + 42 * + col2 + + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1 * - 54 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4963
SELECT + - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 4 * 96 AS col0 FROM tab2
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT 92 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT 92 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ( - 37 ) * + + col1 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + MAX( ALL + - 62 ) FROM tab0 WHERE NOT + + 37 IN ( col2, 39, - 68 )
----
-62

skipif mysql # not compatible
query I rowsort label-4967
SELECT + MAX ( ALL + - 62 ) FROM tab0 WHERE NOT + + 37 IN ( col2, 39, - 68 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - MAX( - col2 ) * - 14 FROM tab1
----
-826

skipif mysql # not compatible
query I rowsort label-4968
SELECT - MAX ( - col2 ) * - 14 FROM tab1
----
-826

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT DISTINCT + 77 DIV + + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + 77 / + + col2 FROM tab0
----
0
1
7

query I rowsort
SELECT - col0 * - - 35 AS col1 FROM tab2 AS cor0
----
-1610
-2240
-2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT - MAX( - CAST( - - col0 AS SIGNED ) ) + + - CAST( - - COUNT( + CAST( + col0 AS SIGNED ) ) AS SIGNED ) * + 10 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4971
SELECT - MAX ( - CAST ( - - col0 AS INTEGER ) ) + + - CAST ( - - COUNT ( + CAST ( + col0 AS INTEGER ) ) AS INTEGER ) * + 10 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT + 86 + + col2 FROM tab0
----
133
185
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT - CAST( + + CAST( + - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4973
SELECT - CAST ( + + CAST ( + - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL 4 AS col2 FROM tab2 AS cor0 WHERE + col1 + + col0 / + ( col0 ) + + ( - 36 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL col1 + 10 * - + 74 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL col1 + 10 * - + 74 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 90 * + 38 * + - col1 * + - ( - + ( - col1 ) ) - - - col1 FROM tab1 AS cor0
----
670306
7554733
85495

query I rowsort
SELECT ALL 83 - + 21 AS col1 FROM tab2
----
62
62
62

query I rowsort
SELECT ( - col2 ) * + - 93 AS col0 FROM tab1 WHERE ( ( + col0 ) ) / - + 77 * - + 25 + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + ( + col0 ) * - col0 + - 26 * col1 + - + 17 * - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 + 69 AS col1 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 88 col2 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT CAST( SUM( DISTINCT + 7 ) AS SIGNED ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( SUM ( DISTINCT + 7 ) AS INTEGER ) FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - 37 + - COUNT( * ) FROM tab0 cor0 WHERE NOT col2 + - col2 NOT BETWEEN - + 93 AND NULL
----
-37

skipif mysql # not compatible
query I rowsort label-4983
SELECT - 37 + - COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 + - col2 NOT BETWEEN - + 93 AND NULL
----
-37

query I rowsort
SELECT DISTINCT + AVG ( - col0 ) AS col2 FROM tab2 cor0 WHERE - 61 + - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4985
SELECT - ( + col0 ) col0, - col0 DIV col1 - - col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4985
SELECT - ( + col0 ) col0, - col0 / col1 - - col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL - - 30 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - - 30 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 99 * ( + col1 ) FROM tab1
----
-1386
-4653
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT COUNT( * ) * 24 + - 29 DIV - COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4988
SELECT COUNT ( * ) * 24 + - 29 / - COUNT ( * ) AS col1 FROM tab1
----
81

query I rowsort
SELECT col1 * - + 35 + - - ( + + col2 ) FROM tab1
----
-116
-1577
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4991
SELECT + col2 AS col1, 21 + + 14 DIV - col2 AS col0 FROM tab1
----
59
21
68
21
96
21

skipif mysql # not compatible
query II rowsort label-4991
SELECT + col2 AS col1, 21 + + 14 / - col2 AS col0 FROM tab1
----
59
21
68
21
96
21

query I rowsort
SELECT + - ( - + 63 ) FROM tab2 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + COUNT( * ) + + 76 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + COUNT ( * ) + + 76 AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT + - col2 * 86 FROM tab2 cor0
----
-1978
-3440
-4988

query II rowsort
SELECT DISTINCT + col1 AS col2, 36 * - - col0 FROM tab1
----
14
1836
47
3276
5
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 / - col2 * + + col0 AS col2 FROM tab2 WHERE - 19 + + - 81 * + - col1 / - col2 * - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL NOT BETWEEN - 18 AND + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5000
SELECT col2 * - 22 / col0 + - - col0 / - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT col2 * - 22 / col0 + - - col0 / - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT ALL - 58, COUNT( * ) AS col2 FROM tab0
----
-58
3

skipif mysql # not compatible
query II rowsort label-5001
SELECT ALL - 58, COUNT ( * ) AS col2 FROM tab0
----
-58
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT 20 + CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT 20 + CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + COUNT( * ) + + MIN( + + col0 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5003
SELECT + COUNT ( * ) + + MIN ( + + col0 ) AS col1 FROM tab2
----
49

query I rowsort
SELECT - - 76 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT + + MIN( + + ( - + col1 ) ) + - + MAX( ALL col1 ) col2 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT DISTINCT + + MIN ( + + ( - + col1 ) ) + - + MAX ( ALL col1 ) col2 FROM tab0 AS cor0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, 31 col1 FROM tab1 cor0
----
-51
31
-85
31
-91
31

query II rowsort
SELECT ALL + col0 + + 59, - 61 AS col2 FROM tab0 AS cor0
----
146
-61
156
-61
74
-61

query I rowsort
SELECT ALL + 61 + + + 15 * + col1 FROM tab2 cor0
----
1066
1216
826

onlyif mysql # DIV for integer division: 
query II rowsort label-5009
SELECT DISTINCT - col0 + - ( + col1 ) DIV + 29 AS col0, + col2 * - 40 AS col2 FROM tab1 AS cor0
----
-51
-3840
-85
-2360
-92
-2720

skipif mysql # not compatible
query II rowsort label-5009
SELECT DISTINCT - col0 + - ( + col1 ) / + 29 AS col0, + col2 * - 40 AS col2 FROM tab1 AS cor0
----
-51
-3840
-85
-2360
-92
-2720

query I rowsort
SELECT 89 FROM tab2 WHERE - + 84 IS NOT NULL
----
89
89
89

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + + col0 ) / - 91 AND NULL
----

query I rowsort
SELECT ALL + col1 * + col2 - - col1 AS col0 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + - col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 39 - - col2 + ( - ( col2 ) ) FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT - 15 - + col1 - col2 * + + col0 * CAST( NULL AS SIGNED ) * + CAST( col2 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 15 - + col1 - col2 * + + col0 * CAST ( NULL AS INTEGER ) * + CAST ( col2 AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT 9 * - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT 9 * - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 93 * col2 * - col0 AS col0 FROM tab2
----
-238080
-404550
-98394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 WHERE - col0 * + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 WHERE - col0 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5019
SELECT + col2 DIV CAST( 35 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
60
69
98

skipif mysql # not compatible
query I rowsort label-5019
SELECT + col2 / CAST ( 35 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
60
69
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT 17, + COUNT( * ) AS col2 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-5020
SELECT 17, + COUNT ( * ) AS col2 FROM tab2
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT SUM( + - 65 ) AS col1 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT SUM ( + - 65 ) AS col1 FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT - SUM( + - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5022
SELECT - SUM ( + - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5023
SELECT ALL * FROM tab2 WHERE NULL < - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5023
SELECT ALL * FROM tab2 WHERE NULL < - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col2 * - 41 AS col1 FROM tab2
----
1640
2378
943

query I rowsort
SELECT DISTINCT col2 * 24 AS col0 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-5026
SELECT DISTINCT - + 74 AS col2, + ( - 96 ) + + COUNT( 70 ) FROM tab0 AS cor0
----
-74
-93

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT - + 74 AS col2, + ( - 96 ) + + COUNT ( 70 ) FROM tab0 AS cor0
----
-74
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - 18 IS NOT NULL AND NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT + MAX( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + MAX ( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT DISTINCT + + col1 + - CAST( NULL AS SIGNED ) + 18 * - col2 - - col2 * + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + + col1 + - CAST ( NULL AS INTEGER ) + 18 * - col2 - - col2 * + col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col2 * - - col0 * - col1 col0 FROM tab0 AS cor0
----
10
-18270
47
-57105
99
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-5032
SELECT + col1 DIV - col2 * + col2 * - col2, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-5032
SELECT + col1 / - col2 * + col2 * - col2, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT 64 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * ( col0 ) / + col0 * - col1 + col1 + + + 24 + - - col1 col1 FROM tab2 WHERE NOT ( NOT col2 + + col0 - + - col1 * + + col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + SUM( DISTINCT + - col1 ) + + 10 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5036
SELECT + SUM ( DISTINCT + - col1 ) + + 10 FROM tab1 AS cor0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + 86 AND NULL
----

query I rowsort
SELECT 49 + - + ( - col0 ) AS col2 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT - - 88 + - col1 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
67
-87
7
-15
87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5040
SELECT SUM( DISTINCT + col2 ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT SUM ( DISTINCT + col2 ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 < - col1
----

query I rowsort
SELECT + col0 * - ( + + ( + col2 ) ) * - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + 14 * - 15 AS col0 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT - - col2 - + 89 + + col2 FROM tab0 AS cor0
----
-69
109
5

query I rowsort
SELECT + 60 - - - col2 FROM tab1 cor0
----
-36
-8
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + + 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * 6 + + + col1 * - col0 * col2 * + + col2 col2 FROM tab0 AS cor0 WHERE ( col0 / - ( - + col2 ) > - 78 )
----
-183960
-2706777
-951291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 29 * + col2 * - ( + col0 ) + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 67 + + 10 + + + 59 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT + ( - - MAX( DISTINCT - ( col0 ) ) ) FROM tab2 WHERE NOT - + ( - col0 ) * - 26 * - CAST( NULL AS SIGNED ) + 58 BETWEEN ( col0 + + col0 + - col0 ) AND col1 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + ( - - MAX ( DISTINCT - ( col0 ) ) ) FROM tab2 WHERE NOT - + ( - col0 ) * - 26 * - CAST ( NULL AS INTEGER ) + 58 BETWEEN ( col0 + + col0 + - col0 ) AND col1 - col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5054
SELECT - + col1 DIV + col0 AS col2, col0 * + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
-1
-157182
-1
-330176
0
-336675

skipif mysql # not compatible
query II rowsort label-5054
SELECT - + col1 / + col0 AS col2, col0 * + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
-1
-157182
-1
-330176
0
-336675

query I rowsort
SELECT DISTINCT col1 * 63 AS col2 FROM tab0 AS cor0
----
1323
5103
63

query I rowsort
SELECT + 0 * + col2 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 80 * + + 61 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-10779920
-122000
-956480

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT - 10 DIV col1 + col0 + + - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1293
-212
-3105

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 10 / col1 + col0 + + - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1293
-212
-3105

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT DISTINCT + + 87, - MIN( DISTINCT + col2 ) - 43 + + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
87
-57

skipif mysql # not compatible
query II rowsort label-5059
SELECT DISTINCT + + 87, - MIN ( DISTINCT + col2 ) - 43 + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
87
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5060
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + CAST( - ( + col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5060
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + CAST ( - ( + col0 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * + - col0 col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT + col0 - - col0 - + col2 + + CAST( + - col2 AS SIGNED ) + - 87 / + - 73 FROM tab2 WHERE NOT - col2 > + - col0
----

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + col0 - - col0 - + col2 + + CAST ( + - col2 AS INTEGER ) + - 87 / + - 73 FROM tab2 WHERE NOT - col2 > + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT MIN( ALL + 7 ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5063
SELECT MIN ( ALL + 7 ) FROM tab0 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT - SUM( ALL + - col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT - SUM ( ALL + - col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + COUNT( * ) + COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) + - 89 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT + COUNT ( * ) + COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) + - 89 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5066
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - CAST( 38 AS DECIMAL ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - CAST ( 38 AS REAL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL ( COUNT( - - col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL ( COUNT ( - - col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT MAX ( ALL col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT - 9 + + col1 * - col2 * + + col2 AS col0 FROM tab0
----
-178938
-2109
-9810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( + 74 + - + 37, + col1 * + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col2 col2 FROM tab0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT - ( + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5074
SELECT - ( + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * 62 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5075
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * 62 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 NOT BETWEEN NULL AND 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL - - 31 DIV - col1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - - 31 / - col1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + - 59 col0 FROM tab0
----
-2726
-5742
-580

query II rowsort
SELECT 43 + + col0 AS col1, + col1 AS col1 FROM tab1
----
128
5
134
47
94
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT - 74 - + COUNT( * ) AS col0 FROM tab1 WHERE NOT - + 23 <> ( col2 )
----
-74

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - 74 - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - + 23 <> ( col2 )
----
-74

query I rowsort
SELECT + 70 + - col0 FROM tab0 AS cor0
----
-17
-27
55

query I rowsort
SELECT ALL 56 * - 93 - - col0 AS col1 FROM tab2 cor0
----
-5133
-5144
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + - 29 + + + COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + - 29 + + + COUNT ( * ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL - - 82 + + col0 FROM tab0 AS cor0
----
169
179
97

query II rowsort
SELECT - + ( + 14 ) AS col1, - col2 FROM tab2 cor0
----
-14
-23
-14
-40
-14
-58

query I rowsort
SELECT col1 * - - col1 - 65 FROM tab0 cor0 WHERE NOT - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT COUNT( * ) * + 86, 47 AS col1 FROM tab0 AS cor0
----
258
47

skipif mysql # not compatible
query II rowsort label-5087
SELECT COUNT ( * ) * + 86, 47 AS col1 FROM tab0 AS cor0
----
258
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT MIN( ALL + col0 ) * + 72 DIV + 18 + - 54 AS col1 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT MIN ( ALL + col0 ) * + 72 / + 18 + - 54 AS col1 FROM tab1
----
150

query II rowsort
SELECT col2 AS col0, 89 FROM tab0
----
10
89
47
89
99
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT 29 * 77 * + COUNT( ALL 93 ) AS col2 FROM tab0
----
6699

skipif mysql # not compatible
query I rowsort label-5090
SELECT 29 * 77 * + COUNT ( ALL 93 ) AS col2 FROM tab0
----
6699

query II rowsort
SELECT DISTINCT + 88 * + + ( - + col0 ) AS col0, - col2 FROM tab1
----
-4488
-96
-7480
-59
-8008
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - + col1 * + + col2
----

query II rowsort
SELECT col1, - col1 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT - + col1 DIV + + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT - + col1 / + + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
58

query I rowsort
SELECT ALL - + 31 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - - 56 / + col2 + + col2 AS col1 FROM tab0 WHERE NOT NULL <= + - 24 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT - COUNT( + 52 ) AS col0 FROM tab2 AS cor0 WHERE ( ( NOT ( + col2 - - 19 * + col1 ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - COUNT ( + 52 ) AS col0 FROM tab2 AS cor0 WHERE ( ( NOT ( + col2 - - 19 * + col1 ) IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT - 2 + + COUNT( - col0 ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - 2 + + COUNT ( - col0 ) AS col2 FROM tab2 cor0
----
1

query II rowsort
SELECT 64 AS col0, - 66 * - 45 * - - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
64
11541420
64
3483810
64
9147600

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT ALL + 81, MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
81
58

skipif mysql # not compatible
query II rowsort label-5102
SELECT ALL + 81, MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
81
58

query I rowsort
SELECT ALL ( col1 ) + - 56 FROM tab1 AS cor0
----
-42
-51
-9

query II rowsort
SELECT - - col1, ( col1 ) AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE + 9 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT - col1, 43 AS col1 FROM tab1 AS cor0
----
-14
43
-47
43
-5
43

query II rowsort
SELECT + 77 AS col2, - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
77
-23
77
-26
77
45

query I rowsort
SELECT + col2 * - - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT - 79 + - + COUNT( * ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - 79 + - + COUNT ( * ) FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - - COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5110
SELECT - - COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + - col0, ( + col0 ) FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 65 * - 0 + + 8 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 65 * - 0 + + 8 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + 37 * MAX( ALL - + col0 ) AS col2 FROM tab2
----
-1702

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 37 * MAX ( ALL - + col0 ) AS col2 FROM tab2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT MIN( ALL col2 ) AS col1 FROM tab0 WHERE NOT - + col2 NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT MIN ( ALL col2 ) AS col1 FROM tab0 WHERE NOT - + col2 NOT BETWEEN + col1 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + 71 * - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 91 + 89 FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT DISTINCT - 86 * - + col1, col0 FROM tab2
----
4386
46
5762
75
6622
64

query I rowsort
SELECT + 10 + - 66 * - col1 + + col2 + - 99 + - - col0 * + col0 * + ( - - col1 ) * 85 + - col0 FROM tab0
----
13511885
1554414
799744

onlyif mysql # DIV for integer division: 
query II rowsort label-5120
SELECT ALL col1 DIV - col2 AS col0, col0 + + 71 AS col2 FROM tab1
----
0
122
0
156
0
162

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL col1 / - col2 AS col0, col0 + + 71 AS col2 FROM tab1
----
0
122
0
156
0
162

query II rowsort
SELECT DISTINCT col0 * - col1, + col2 AS col1 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + - 94 * + 58 * - COUNT( * ) + 76 + 12 FROM tab0 AS cor0
----
16444

skipif mysql # not compatible
query I rowsort label-5122
SELECT + - 94 * + 58 * - COUNT ( * ) + 76 + 12 FROM tab0 AS cor0
----
16444

query I rowsort
SELECT + + 71 FROM tab1 AS cor0 WHERE NULL < - 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + ( + 25 ) ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + ( + 25 ) ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( DISTINCT 56 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( DISTINCT 56 ) FROM tab0
----
-1

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL BETWEEN + col0 AND + col2 + - 88 / - col0
----

query I rowsort
SELECT + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - - COUNT( + + 69 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - - COUNT ( + + 69 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL 24 FROM tab1 WHERE NOT - - col0 + - - col2 IN ( - - col2 )
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + ( - CAST( NULL AS SIGNED ) ) + - - col1 - + col2, - col1, - 70, + + 68, - - col1, + - col0 / + - col1, - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) + - - col1 - + col2, - col1, - 70, + + 68, - - col1, + - col0 / + - col1, - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( + 53 ) AS col0 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - + 77 + - 39 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 - + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL 25 * - COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL 25 * - COUNT ( * ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL MAX( ALL 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL MAX ( ALL 87 ) AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT 82 * + + 65 * col0 FROM tab2
----
245180
341120
399750

query II rowsort
SELECT + ( col0 ), 65 AS col2 FROM tab2
----
46
65
64
65
75
65

query I rowsort
SELECT - - 33 AS col0 FROM tab2 cor0
----
33
33
33

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 54 * - 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT col2 DIV ( + col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT col2 / ( + col2 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT - + 21 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-21
46
-21
64
-21
75

query I rowsort
SELECT DISTINCT + - 54 + - + 9 AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5145
SELECT ALL - 30 + - + CAST( 30 AS SIGNED ) + col1 * col0, col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
2286
0
4868
0
4965
-1

skipif mysql # not compatible
query II rowsort label-5145
SELECT ALL - 30 + - + CAST ( 30 AS INTEGER ) + col1 * col0, col0 / - col1 AS col2 FROM tab2 AS cor0
----
2286
0
4868
0
4965
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT - col1 * + col0 - - 97 * + - CAST( NULL AS SIGNED ) + + 52 + col0 + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT - col1 * + col0 - - 97 * + - CAST ( NULL AS INTEGER ) + + 52 + col0 + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 90 AS col1, 53 AS col0 FROM tab0 AS cor0
----
-90
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - + COUNT( ALL - + col0 ) + - COUNT( * ) * + ( - 23 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - + COUNT ( ALL - + col0 ) + - COUNT ( * ) * + ( - 23 ) FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + + col2 + + + 46 * + col0 * + col2 FROM tab0 AS cor0
----
32477
40030
441837

query I rowsort
SELECT - col2 + + + col0 - + col2 AS col0 FROM tab0
----
-101
-79
67

query I rowsort
SELECT - col0 + + + col1 + 51 * + - 22 + - - col0 * - col2 AS col0 FROM tab0
----
-10821
-1761
-2058

query I rowsort
SELECT col0 + col1 FROM tab0 WHERE NULL <= ( - 21 )
----

query I rowsort
SELECT col0 + - 60 - - - col0 AS col1 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 35 * - col0 FROM tab1
----
-1785
-2975
-3185

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + col2, - 84 + - - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - 1 * + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 1 * + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5159
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL ( + CAST ( NULL AS REAL ) ) / col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL BETWEEN NULL AND - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 col2, 97 AS col1 FROM tab1
----
22
97
22
97
22
97

query I rowsort
SELECT + ( - 9 ) FROM tab2
----
-9
-9
-9

query II rowsort
SELECT ALL col1, 85 FROM tab1 AS cor0
----
14
85
47
85
5
85

query II rowsort
SELECT 66 + col2 AS col0, col1 FROM tab1
----
125
5
134
47
162
14

query I rowsort
SELECT + 4 * - - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
204
268
308

query I rowsort
SELECT ALL + - col0 * + - 14 + + - 11 FROM tab2 AS cor0
----
1039
633
885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT - MAX( - CAST( NULL AS SIGNED ) ) * - 3 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) * - 3 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col1 + + + 92 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> col1 * 59 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + - 10 * - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - - 59 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT - - 59 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-177

query II rowsort
SELECT ALL 99 AS col2, col2 FROM tab0
----
99
10
99
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE + col1 * + col2 / - col1 + - + ( - 97 ) / - col1 <= - - 37
----
15
87
97

query I rowsort
SELECT ALL - 24 FROM tab1 WHERE - - 79 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5174
SELECT DISTINCT - - 94 + + col2 + col2 FROM tab2 AS cor0 WHERE col2 + col0 BETWEEN NULL AND + + 91 + + - CAST( NULL AS DECIMAL ) * col1 * col2 + + 73 + - - 75
----

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - - 94 + + col2 + col2 FROM tab2 AS cor0 WHERE col2 + col0 BETWEEN NULL AND + + 91 + + - CAST ( NULL AS REAL ) * col1 * col2 + + 73 + - - 75
----

query I rowsort
SELECT DISTINCT - - 34 * - col2 + + 23 + + col2 FROM tab1 AS cor0
----
-1924
-2221
-3145

query II rowsort
SELECT - col1 AS col2, - col2 * + col0 AS col0 FROM tab0 cor0
----
-1
-9603
-21
-870
-81
-705

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 58
----

query I rowsort
SELECT + - col1 + 51 + col1 * col0 FROM tab1 AS cor0
----
4281
471
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT 37 + + col2 + + + CAST( + 19 AS SIGNED ) * - col1 * + 11 FROM tab1 AS cor0
----
-2793
-949
-9718

skipif mysql # not compatible
query I rowsort label-5179
SELECT 37 + + col2 + + + CAST ( + 19 AS INTEGER ) * - col1 * + 11 FROM tab1 AS cor0
----
-2793
-949
-9718

query I rowsort
SELECT ALL col2 + + col2 * - + col0 FROM tab0
----
-658
-860
-9504

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 79 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5182
SELECT ALL - CAST( NULL AS SIGNED ) * + - 95, - 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6a167a27d0aaffb833d63c6276350f05

skipif mysql # not compatible
query II rowsort label-5182
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 95, - 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6a167a27d0aaffb833d63c6276350f05

query II rowsort
SELECT col1 + - col0 AS col2, col2 FROM tab1
----
-37
96
-44
68
-80
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5185
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + CAST ( NULL AS REAL ) * - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 75 + + 32 + 46 AS col1 FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 / col0 >= - + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT ALL 99 + col1 AS col1 FROM tab0
----
100
120
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 - + col1 col0 FROM tab2
----
-25
-41
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, + 22 col2 FROM tab0 WHERE NOT - - col2 * + 12 IS NOT NULL
----

query I rowsort
SELECT - 26 + - - 44 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + 80 * COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 80 * COUNT ( * ) FROM tab1 AS cor0
----
240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + - col2 + - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5196
SELECT + col2 AS col1, - col1 DIV - 45 FROM tab1 cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-5196
SELECT + col2 AS col1, - col1 / - 45 FROM tab1 cor0
----
59
0
68
1
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT - - col0 * col1 + + CAST( NULL AS SIGNED ) / 48 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - - col0 * col1 + + CAST ( NULL AS INTEGER ) / 48 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + - MIN( ALL 65 ) * - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5198
SELECT + - MIN ( ALL 65 ) * - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL + CAST( NULL AS SIGNED ) / - AVG ( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + CAST ( NULL AS INTEGER ) / - AVG ( col2 ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5200
SELECT DISTINCT CAST( - ( - ( - CAST( AVG ( - col1 ) AS SIGNED ) ) ) AS SIGNED ), COUNT( * ) AS col1 FROM tab2 WHERE NOT + - ( - - col1 ) >= + col1 * - col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5200
SELECT DISTINCT CAST ( - ( - ( - CAST ( AVG ( - col1 ) AS INTEGER ) ) ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - ( - - col1 ) >= + col1 * - col2
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT col1 DIV + col0 * + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT col1 / + col0 * + - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT MIN( 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5203
SELECT MIN ( 34 ) FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + + col0 NOT IN ( col0 / + CAST( + col0 AS SIGNED ), 40 )
----

skipif mysql # not compatible
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + + col0 NOT IN ( col0 / + CAST ( + col0 AS INTEGER ), 40 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 74 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col1 FROM tab2 AS cor0 WHERE - 22 + + ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT + col0 * - 63 AS col0 FROM tab1
----
-3213
-5355
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - MAX( DISTINCT + + 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - MAX ( DISTINCT + + 69 ) FROM tab1
----
-69

query I rowsort
SELECT 69 + - 18 AS col1 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - SUM( DISTINCT + 20 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT - SUM ( DISTINCT + 20 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + 99
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 33 AS col1 FROM tab1 AS cor0
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT ( + - COUNT( * ) ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT ( + - COUNT ( * ) ) + - COUNT ( * ) FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + MIN( DISTINCT 29 ) * 82 + 30 FROM tab2 AS cor0
----
2408

skipif mysql # not compatible
query I rowsort label-5214
SELECT + MIN ( DISTINCT 29 ) * 82 + 30 FROM tab2 AS cor0
----
2408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL CAST( + col1 AS SIGNED ) - col2 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL CAST ( + col1 AS INTEGER ) - col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 8 - ( - col1 ) FROM tab1
----
13
22
55

query I rowsort
SELECT DISTINCT 75 - - 93 AS col2 FROM tab0
----
168

query I rowsort
SELECT col2 * 88 * + + col2 AS col1 FROM tab2
----
140800
296032
46552

query I rowsort
SELECT + - col0 - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL 8 * COUNT( * ) AS col1 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL 8 * COUNT ( * ) AS col1 FROM tab2 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + - COUNT( * ) - - + ( - 5 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5221
SELECT ALL + - COUNT ( * ) - - + ( - 5 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

query I rowsort
SELECT - ( - 6 ) FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + MIN( - + 31 ) FROM tab2, tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5223
SELECT + MIN ( - + 31 ) FROM tab2, tab1 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT - SUM( ALL + col2 ) + - + 71 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT - SUM ( ALL + col2 ) + - + 71 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT DISTINCT COUNT( * ), 63 + 33 AS col0 FROM tab0 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5226
SELECT DISTINCT COUNT ( * ), 63 + 33 AS col0 FROM tab0 cor0
----
3
96

query I rowsort
SELECT ( - - 25 ) AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 99 * + col2 AS col2 FROM tab0
----
4653
9801
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT + MIN( col1 ) DIV + 16 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT + MIN ( col1 ) / + 16 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL - ( CAST( + 75 AS SIGNED ) ) FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - ( CAST ( + 75 AS INTEGER ) ) FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL 28 FROM tab2 WHERE NOT - col2 > - CAST( NULL AS SIGNED ) * + col1 - + col0 / ( - col1 ) + + col1
----

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 28 FROM tab2 WHERE NOT - col2 > - CAST ( NULL AS INTEGER ) * + col1 - + col0 / ( - col1 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - ( + MIN( + col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - ( + MIN ( + col2 ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 98 >= col1 + col2
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT ( + + col1 ) + - + col2 AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 76 <> NULL
----

query I rowsort
SELECT ALL 0 * - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT col0 DIV + 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT col0 / + 84 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + + COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + + COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5241
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col2, + col0 + col0 AS col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

skipif mysql # not compatible
query II rowsort label-5241
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col2, + col0 + col0 AS col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

query I rowsort
SELECT ALL + + 82 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - 35 + - 81 AS col0 FROM tab2 AS cor0
----
-116
-116
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT - + col1 - - col0 DIV col1 col1 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT - + col1 - - col0 / col1 col1 FROM tab2 AS cor0
----
-51
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 31 - - - MAX( + + ( - ( + col0 ) ) ) * - COUNT( - - 30 ) FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 31 - - - MAX ( + + ( - ( + col0 ) ) ) * - COUNT ( - - 30 ) FROM tab1 AS cor0
----
-122

query I rowsort
SELECT DISTINCT col2 - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - col0 + - col2 + - - 6 * + 70 FROM tab0 AS cor0
----
224
323
358

onlyif mysql # DIV for integer division: 
query II rowsort label-5249
SELECT ALL col2 + + - col1 DIV + - 37 AS col1, col2 - col1 AS col0 FROM tab0
----
10
-11
49
-34
99
98

skipif mysql # not compatible
query II rowsort label-5249
SELECT ALL col2 + + - col1 / + - 37 AS col1, col2 - col1 AS col0 FROM tab0
----
10
-11
49
-34
99
98

query I rowsort
SELECT DISTINCT - col2 - + - 71 AS col1 FROM tab1
----
-25
12
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5251
SELECT DISTINCT + 73 - col2 + col2 * col2 + + col2 DIV - col1 + - + ( + 96 ) AS col1, col0 AS col2 FROM tab0
----
2139
15
67
87
9580
97

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT + 73 - col2 + col2 * col2 + + col2 / - col1 + - + ( + 96 ) AS col1, col0 AS col2 FROM tab0
----
2139
15
67
87
9580
97

query I rowsort
SELECT ALL + ( - + 97 ) FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT ( - MIN( ALL + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT ( - MIN ( ALL + col0 ) ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT DISTINCT + 24, + col0 + + 71 + 54 AS col2 FROM tab2 AS cor0
----
24
171
24
189
24
200

query II rowsort
SELECT 20, - col0 * + - col0 AS col0 FROM tab2 AS cor0
----
20
2116
20
4096
20
5625

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 59 * + col0 * - 1 * + col0 * col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col1 FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col0 / - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 >= ( + col0 )
----
51
14
96

query I rowsort
SELECT 91 + col1 * col0 FROM tab2 WHERE NOT 73 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + ( SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * 45 + - 93 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * 45 + - 93 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 82 ) * 71 IS NULL
----

query I rowsort
SELECT 33 + ( col0 ) FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5264
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5265
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) * col0 + 43 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5265
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) * col0 + 43 AND ( NULL )
----

query I rowsort
SELECT - col2 + - col1 * 93 AS col1 FROM tab1
----
-1398
-4439
-524

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * col1 + + col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 WHERE NOT - 99 <> col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT - SUM( col0 ) * 17 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - SUM ( col0 ) * 17 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT MIN( ALL - col1 ) + - SUM( ALL + col1 ) FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-5272
SELECT MIN ( ALL - col1 ) + - SUM ( ALL + col1 ) FROM tab1
----
-113

query I rowsort
SELECT + col2 * - 33 FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT 86 + col0 FROM tab1
----
137
171
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + 74 * + 91 IN ( col0 + + col0 )
----

query I rowsort
SELECT 23 + col1 AS col0 FROM tab2
----
100
74
90

query I rowsort
SELECT DISTINCT + 14 - - col2 FROM tab1
----
110
73
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 IN ( + col1 )
----

query I rowsort
SELECT ALL ( 8 ) * col2 + col2 * 75 AS col2 FROM tab0
----
3901
8217
830

query I rowsort
SELECT ( - ( 14 ) ) * - 72 FROM tab1
----
1008
1008
1008

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * + 97 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < - col0 + ( - ( 96 ) )
----

query I rowsort
SELECT 53 + col1 FROM tab2
----
104
120
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT col2 + + CAST( col2 AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-5284
SELECT col2 + + CAST ( col2 AS INTEGER ) FROM tab0
----
198
20
94

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col2 - - 16 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT col1 DIV + 85 + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col1 / + 85 + + col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 32 / + MAX( col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 32 / + MAX ( col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 / col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL 96 + - SUM( DISTINCT 88 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL 96 + - SUM ( DISTINCT 88 ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT * FROM tab2 WHERE 24 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT CAST( COUNT( CAST( col1 AS SIGNED ) ) AS SIGNED ) FROM tab1 WHERE - col2 NOT IN ( - col1 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5291
SELECT CAST ( COUNT ( CAST ( col1 AS INTEGER ) ) AS INTEGER ) FROM tab1 WHERE - col2 NOT IN ( - col1 * col0 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 52 * - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT MIN( ALL col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT MIN ( ALL col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 22 * - col2 + col2 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT col2 * - 30 - - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 / col1 IS NOT NULL
----
-1329
-279
-2969

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT 12 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT 12 / col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) + col0 NOT BETWEEN + col2 AND - 68
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 16 * + col2 + 72 FROM tab0 cor0
----
1656
232
824

query I rowsort
SELECT ALL - col0 * + col1 + 77 FROM tab2 AS cor0
----
-2269
-4851
-4948

query I rowsort
SELECT ALL - 9 + 20 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) > - ( - col0 )
----

query I rowsort
SELECT ALL + + ( col0 ) + - 33 * + col0 AS col2 FROM tab2 AS cor0
----
-1472
-2048
-2400

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - 81 >= NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + 28 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - MAX( - ( - col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - MAX ( - ( - col0 ) ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - COUNT( * ) * + + MAX( - col0 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5309
SELECT - COUNT ( * ) * + + MAX ( - col0 ) FROM tab2
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE - 39 NOT BETWEEN col1 * - ( + ( + col0 ) ) AND ( + col0 - - ( - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 34 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( col0 ) - - 1 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( col0 ) - - 1 / col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + COUNT( * ) * 12 * COUNT( * ) * + COUNT( ALL + col1 ) + + COUNT( * ) * COUNT( ALL col1 + + col1 ) AS col0 FROM tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + COUNT ( * ) * 12 * COUNT ( * ) * + COUNT ( ALL + col1 ) + + COUNT ( * ) * COUNT ( ALL col1 + + col1 ) AS col0 FROM tab0 AS cor0
----
333

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - - COUNT( ALL + col1 ) + + 73 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - - COUNT ( ALL + col1 ) + + 73 FROM tab2 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 82 > col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - ( 92 ) * - + COUNT( * ) + 72 + 52 AS col0 FROM tab2 AS cor0
----
400

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - ( 92 ) * - + COUNT ( * ) + 72 + 52 AS col0 FROM tab2 AS cor0
----
400

query I rowsort
SELECT DISTINCT + col1 + - - ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5323
SELECT - 88 AS col2, - CAST( - 82 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-88
82
-88
82
-88
82

skipif mysql # not compatible
query II rowsort label-5323
SELECT - 88 AS col2, - CAST ( - 82 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-88
82
-88
82
-88
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT 88 DIV + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 88 / + col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT 1 * - ( + + ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT 1 * - ( + + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( + 29 )
----

query I rowsort
SELECT - 44 * col0 AS col1 FROM tab2 WHERE col0 + + col2 IN ( col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - + col1 col1 FROM tab0
----
-168
-648
-8

query I rowsort
SELECT - col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5330
SELECT * FROM tab0 WHERE NULL NOT IN ( + 20 - 78 * - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5330
SELECT * FROM tab0 WHERE NULL NOT IN ( + 20 - 78 * - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT CAST( - 9 AS SIGNED ) AS col0 FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5331
SELECT CAST ( - 9 AS INTEGER ) AS col0 FROM tab2
----
-9
-9
-9

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col2 + col1 + + col1 / + 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5333
SELECT * FROM tab2 cor0 WHERE NULL <> ( - CAST( 98 AS SIGNED ) / 38 )
----

skipif mysql # not compatible
query III rowsort label-5333
SELECT * FROM tab2 cor0 WHERE NULL <> ( - CAST ( 98 AS INTEGER ) / 38 )
----

query I rowsort
SELECT + col1 + col0 - - 11 FROM tab2 AS cor0
----
108
152
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT + col2 + + col0 / 93 + - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT + col2 + + col0 / 93 + - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT - col1 + - + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5336
SELECT - col1 + - + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 85 FROM tab2 AS cor0 WHERE NULL <> ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE - 95 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL + MAX( + - 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + MAX ( + - 52 ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 / - col0 + - col1 AND NOT - 43 IS NOT NULL
----

query I rowsort
SELECT 60 - + 6 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT - - 49 DIV + col0 - - col0 + + - col1 FROM tab0 AS cor0
----
-63
66
96

skipif mysql # not compatible
query I rowsort label-5342
SELECT - - 49 / + col0 - - col0 + + - col1 FROM tab0 AS cor0
----
-63
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 - - col0 AS col2 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT + - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 18
----

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT 48 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 9 BETWEEN - col2 + 21 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 9 BETWEEN - col2 + 21 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5349
SELECT - 75 DIV ( 80 ) AS col1, - SUM( ALL 8 ) FROM tab0 AS cor0
----
0
-24

skipif mysql # not compatible
query II rowsort label-5349
SELECT - 75 / ( 80 ) AS col1, - SUM ( ALL 8 ) FROM tab0 AS cor0
----
0
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5350
SELECT DISTINCT + col2 * - col1 + ( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= + ( 13 )
----

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + col2 * - col1 + ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= + ( 13 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 * col0 IN ( + col0 * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT ( MAX( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT ( MAX ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, + 97 col0 FROM tab0
----
15
97
87
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL COUNT( * ) col1 FROM tab1 WHERE NOT ( - + col0 ) IN ( - 20 / + col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT ALL COUNT ( * ) col1 FROM tab1 WHERE NOT ( - + col0 ) IN ( - 20 / + col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT - CAST( 80 AS SIGNED ) AS col1 FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-5356
SELECT - CAST ( 80 AS INTEGER ) AS col1 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE - 45 NOT BETWEEN col1 - + col0 + - col2 + col1 / col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-5359
SELECT + + 17 AS col0, + col0 AS col1, + - col2 DIV col2 FROM tab1 AS cor0
----
9 values hashing to 06f9f55e4a2b967f87de634310e3fbe7

skipif mysql # not compatible
query III rowsort label-5359
SELECT + + 17 AS col0, + col0 AS col1, + - col2 / col2 FROM tab1 AS cor0
----
9 values hashing to 06f9f55e4a2b967f87de634310e3fbe7

query II rowsort
SELECT ALL col0 AS col1, col0 * col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5361
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT SUM( col1 ) AS col1 FROM tab0 WHERE NOT - - col2 / + col2 * + + CAST( + + ( - + 67 ) AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE NOT - - col2 / + col2 * + + CAST ( + + ( - + 67 ) AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - ( - - 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ALL - ( - col1 ) DIV col0 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - ( - col1 ) / col0 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE col1 * - 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 61 NOT BETWEEN + + col1 AND ( - + 6 + 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + col2 - - 97 + + col1 AS col0 FROM tab2 AS cor0
----
-1025
-2906
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + 90 + COUNT( col2 ) + - + 79 AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5369
SELECT + 90 + COUNT ( col2 ) + - + 79 AS col0 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5370
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = 21 * + col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5370
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = 21 * + col0 * - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + - 2 + + + col2, ( col0 ) AS col1 FROM tab0 AS cor0
----
45
15
8
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + MIN( ALL - + ( col0 ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( 68 * - col0 ) AND + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT + MIN ( ALL - + ( col0 ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( 68 * - col0 ) AND + 15
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 43 IS NULL
----

query I rowsort
SELECT ALL - 66 FROM tab1 AS cor0 WHERE ( - col0 * + + 26 * - col1 BETWEEN ( col2 + 79 ) AND col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col0 + + + 9 ) >= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5376
SELECT DISTINCT 71 + col2 + - 36 AS col2, - col1 DIV col0 DIV col0 + - + col0 + 1 AS col0 FROM tab1
----
103
-90
131
-50
94
-84

skipif mysql # not compatible
query II rowsort label-5376
SELECT DISTINCT 71 + col2 + - 36 AS col2, - col1 / col0 / col0 + - + col0 + 1 AS col0 FROM tab1
----
103
-90
131
-50
94
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT - SUM( + 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - SUM ( + 0 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5378
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST( - + 53 AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query III rowsort label-5378
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST ( - + 53 AS INTEGER ) + - + col1
----

query II rowsort
SELECT + col0 AS col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT - CAST( - + 60 AS SIGNED ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - CAST ( - + 60 AS INTEGER ) AS col1 FROM tab2
----
60

query I rowsort
SELECT 70 * - + 12 FROM tab1
----
-840
-840
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT + COUNT( * ) * CAST( AVG ( - col2 ) AS SIGNED ) col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT + COUNT ( * ) * CAST ( AVG ( - col2 ) AS INTEGER ) col1 FROM tab1
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 83
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT ALL + col2, - 23 DIV + - 50 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL + col2, - 23 / + - 50 FROM tab1
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 59 ) - - - col2 col0 FROM tab1 AS cor0
----
-118
-127
-155

query I rowsort
SELECT - 23 - + + col0 AS col0 FROM tab2 AS cor0
----
-69
-87
-98

query I rowsort
SELECT ALL 23 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL AND + col2 IS NOT NULL
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 WHERE NULL IN ( + 1 * - col1 - col1, ( 17 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
63

query I rowsort
SELECT ( + ( + col0 ) ) + + - col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL MAX( DISTINCT - 61 ) AS col1 FROM tab2 WHERE NOT + col1 * + 71 / + 19 + 91 + + - ( - - col1 ) >= + 63 * - ( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL MAX ( DISTINCT - 61 ) AS col1 FROM tab2 WHERE NOT + col1 * + 71 / + 19 + 91 + + - ( - - col1 ) >= + 63 * - ( 0 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 - - col1 * - - 67 FROM tab2
----
3463
4564
5223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 70 ) col2, + 96 + - col2 + + col2 * - col1 FROM tab2 cor0
----
70
-1100
70
-3024
70
-3848

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 * + - col2 * ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5396
SELECT - - 50 DIV col2 AS col1, - 11 * - col2 AS col2 FROM tab1 cor0
----
0
1056
0
649
0
748

skipif mysql # not compatible
query II rowsort label-5396
SELECT - - 50 / col2 AS col1, - 11 * - col2 AS col2 FROM tab1 cor0
----
0
1056
0
649
0
748

query II rowsort
SELECT ALL + - col0 * - + 87, - col1 AS col0 FROM tab1 AS cor0
----
4437
-14
7395
-5
7917
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 82 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT - col1 DIV ( - + col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - col1 / ( - + col1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5401
SELECT ALL + 84 col1, 98 + - 71 DIV - COUNT( * ) FROM tab1
----
84
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5401
SELECT ALL + 84 col1, 98 + - 71 / - COUNT ( * ) FROM tab1
----
84
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT - MAX( ALL CAST( + col2 AS SIGNED ) ) AS col2, 43 AS col0 FROM tab2
----
-58
43

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT - MAX ( ALL CAST ( + col2 AS INTEGER ) ) AS col2, 43 AS col0 FROM tab2
----
-58
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 40 NOT BETWEEN ( NULL ) AND ( NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT ALL + - COUNT( * ) * - + COUNT( * ) DIV + - 56 * - - 44 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + - COUNT ( * ) * - + COUNT ( * ) / + - 56 * - - 44 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= ( NULL )
----

query I rowsort
SELECT + 75 + - + col0 - + 15 * 48 + + col1 * + col0 * + col1 * - + 79 FROM tab2
----
-26598045
-29977733
-9452725

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT 89 AS col0, - COUNT( * ) - + SUM( ALL + col0 ) AS col1 FROM tab2
----
89
-188

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT 89 AS col0, - COUNT ( * ) - + SUM ( ALL + col0 ) AS col1 FROM tab2
----
89
-188

query I rowsort
SELECT + col1 + + col0 + - - 25 * col0 FROM tab0 AS cor0 WHERE - col2 * + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 1 + - 93 IN ( - + 65, + 31 / - col2 + col2 * - + ( + col1 ) + col2 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 21 ) - - ( + - col1 ) BETWEEN NULL AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - COUNT( DISTINCT + ( + 24 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( DISTINCT + ( + 24 ) ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + ( 99 ) * - 3 + - 54 AS col2 FROM tab1
----
-351
-351
-351

query I rowsort
SELECT DISTINCT - 45 * - + 19 AS col1 FROM tab2
----
855

query I rowsort
SELECT + + 29 + - col2 FROM tab1 WHERE - col1 * - + 27 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE ( NOT col1 IS NULL )
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 71 * + + col0 / + 99 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT MAX( col0 ) + + 67 FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5418
SELECT MAX ( col0 ) + + 67 FROM tab1 AS cor0
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-5419
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT ALL + col2 + + 64 DIV - - 65 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + col2 + + 64 / - - 65 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + 20 * - + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 20 * - + COUNT ( * ) FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL - MIN( - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT - + 56 * + col0 AS col1 FROM tab2 AS cor0
----
-2576
-3584
-4200

query II rowsort
SELECT DISTINCT - + col1 AS col1, - 34 * + ( + ( - 93 ) ) / + col1 + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND 71
----

query I rowsort
SELECT + col1 * + - col0 + + 86 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 65 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * + ( + 3 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5427
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * + ( + 3 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 67 * - - 54 col0 FROM tab1 AS cor0
----
-59
3618
-68
3618
-96
3618

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5429
SELECT DISTINCT col1 * CAST( + - 2 AS DECIMAL ) AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT col1 * CAST ( + - 2 AS REAL ) AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < NULL OR col0 BETWEEN + - col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL + col1 DIV - + 55 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + col1 / - + 55 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT 72 * - col2 * col1 AS col1 FROM tab1
----
-21240
-230112
-96768

query I rowsort
SELECT + 91 * - + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-4292
-9106
-997

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT col0 DIV 31 + - 96 FROM tab2 AS cor0
----
-94
-95

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT col0 / 31 + - 96 FROM tab2 AS cor0
----
-94
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT + COUNT( * ) DIV 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + COUNT ( * ) / 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - COUNT( * ) + - + 54 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5439
SELECT - COUNT ( * ) + - + 54 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT + 12 + col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT DISTINCT + col1 + + + 36 AS col0 FROM tab0
----
117
37
57

query I rowsort
SELECT DISTINCT + 18 - + 90 AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + MIN( DISTINCT - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + MIN ( DISTINCT - - col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( + 0 ) >= col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5445
SELECT 49 col0, - col0 DIV - 6 - - 75 AS col1 FROM tab0
----
49
77
49
89
49
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5445
SELECT 49 col0, - col0 / - 6 - - 75 AS col1 FROM tab0
----
49
77
49
89
49
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 * + 25 col1 FROM tab2
----
46
1150
64
1600
75
1875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 6 - - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - COUNT( * ) - + 16 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-5448
SELECT - COUNT ( * ) - + 16 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + MIN( - 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + MIN ( - 77 ) FROM tab1 AS cor0
----
-77

query II rowsort
SELECT - col2, 81 AS col2 FROM tab0
----
-10
81
-47
81
-99
81

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 - 74 * - col0 / + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 44 + - col0 + col1 * col0 - - 8 + + - 29 + - - col2 - col1 * + + 23 FROM tab1 AS cor0
----
307
3196
460

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 79 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 + - - 39
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 24 * - 51 <> - - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT + - CAST( NULL AS SIGNED ) - - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5459
SELECT + - CAST ( NULL AS INTEGER ) - - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT - col2 + + 9 + - + CAST( NULL AS SIGNED ) - - 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT - col2 + + 9 + - + CAST ( NULL AS INTEGER ) - - 20 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT + + 25 + - col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0 + col1 AS col0, + 3 AS col0 FROM tab2 cor0
----
141
3
142
3
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ( + MIN( + col0 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5464
SELECT ( + MIN ( + col0 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-138

query I rowsort
SELECT ALL + col0 + - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
-31
31
70

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + 16 AS col2 FROM tab1 AS cor0
----
112
75
84

query II rowsort
SELECT DISTINCT + 19 * - ( + 96 ) - - 54 AS col0, col0 FROM tab0 cor0
----
-1770
15
-1770
87
-1770
97

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 40 + + 22 + - 12 + + col2 * - col2 FROM tab0 AS cor0
----
-217
-2254
-9928

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - 0 - MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 0 - MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT - 57 + + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - 57 + + COUNT ( * ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT COUNT( ALL - - 42 ) + + ( + - 33 ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5472
SELECT COUNT ( ALL - - 42 ) + + ( + - 33 ) AS col2 FROM tab2
----
-30

query I rowsort
SELECT - col0 FROM tab2 WHERE + - 50 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT MIN( 51 ) - COUNT( * ) col2 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5474
SELECT DISTINCT MIN ( 51 ) - COUNT ( * ) col2 FROM tab0
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5475
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 + + - CAST( - col0 AS DECIMAL ) + - + ( - - col0 ) + + 60 + - col0 + + - col0 * - 52 * + col1 * + + 10 * + col0 NOT IN ( + 12 )
----

skipif mysql # not compatible
query III rowsort label-5475
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 + + - CAST ( - col0 AS REAL ) + - + ( - - col0 ) + + 60 + - col0 + + - col0 * - 52 * + col1 * + + 10 * + col0 NOT IN ( + 12 )
----

query II rowsort
SELECT + 19 * + + col2 + + col2 AS col0, + col2 FROM tab1
----
1180
59
1360
68
1920
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5477
SELECT - + col1 * + + ( CAST( NULL AS SIGNED ) ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5477
SELECT - + col1 * + + ( CAST ( NULL AS INTEGER ) ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT DISTINCT - COUNT( * ), 2 AS col1 FROM tab1 AS cor0
----
-3
2

skipif mysql # not compatible
query II rowsort label-5478
SELECT DISTINCT - COUNT ( * ), 2 AS col1 FROM tab1 AS cor0
----
-3
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT 5 * + - col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * 56 - ( + - 90 ) AS col0 FROM tab1 WHERE ( NULL > + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - + SUM( DISTINCT - 12 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-5481
SELECT - + SUM ( DISTINCT - 12 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query II rowsort
SELECT col1 AS col1, col0 + col2 FROM tab2
----
51
69
67
133
77
104

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 69 * + 43 NOT BETWEEN + ( + 70 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + 23 ) AS col1 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT - 96, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-5485
SELECT - 96, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5486
SELECT - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col2, col1 + + + col1 + - col1 - - 43 FROM tab1 AS cor0
----
-24
48
-24
57
-24
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - MAX( ALL - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MAX ( ALL - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 62 + + - col0 + - col2, - 31, + 21 )
----

query I rowsort
SELECT 52 FROM tab2 WHERE NOT - ( ( col1 ) ) IS NULL
----
52
52
52

query I rowsort
SELECT - 79 + - col0 FROM tab1
----
-130
-164
-170

query I rowsort
SELECT ALL + 6 * - - col2 AS col1 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT + 45 * - - COUNT( * ) AS col1, + 55 FROM tab1
----
135
55

skipif mysql # not compatible
query II rowsort label-5493
SELECT + 45 * - - COUNT ( * ) AS col1, + 55 FROM tab1
----
135
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5494
SELECT + - COUNT( * ) * 92 * - - ( + CAST( COUNT( * ) AS SIGNED ) ), 25 * + ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-828
-75

skipif mysql # not compatible
query II rowsort label-5494
SELECT + - COUNT ( * ) * 92 * - - ( + CAST ( COUNT ( * ) AS INTEGER ) ), 25 * + ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-828
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5495
SELECT + col0, col0 + + CAST( NULL AS SIGNED ) + - - 78 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5495
SELECT + col0, col0 + + CAST ( NULL AS INTEGER ) + - - 78 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT col2 * + - 3 + - + col0 * + 7 AS col1 FROM tab0
----
-246
-639
-976

query I rowsort
SELECT - col2 * 29 + - col2 * - + col0 AS col1 FROM tab1
----
2112
3304
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - 32 + - 21 + - COUNT( * ) * + MAX( col2 ) col2 FROM tab0 AS cor0
----
-350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT DISTINCT - 32 + - 21 + - COUNT ( * ) * + MAX ( col2 ) col2 FROM tab0 AS cor0
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL + SUM( ALL + CAST( 77 AS SIGNED ) ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + SUM ( ALL + CAST ( 77 AS INTEGER ) ) FROM tab0 AS cor0
----
231

query I rowsort
SELECT ALL 86 + 11 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + 84 * - + col2 FROM tab2 cor0
----
-1932
-3360
-4872

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab1 AS cor0 WHERE 94 / - col1 * - 71 IS NOT NULL
----
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 87, col2 + col0, + 35, - 82 - + col2 + + + col1, col0 )
----

query II rowsort
SELECT + - col2 AS col0, + col1 * - col0 FROM tab0 AS cor0
----
-10
-1827
-47
-1215
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT COUNT( ALL 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5505
SELECT COUNT ( ALL 4 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 + + - col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col1 FROM tab1
----
-45
23
26

query II rowsort
SELECT col2 * + - 63 AS col0, 92 FROM tab2
----
-1449
92
-2520
92
-3654
92

query I rowsort
SELECT col2 * - 80 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5510
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + 39 * COUNT( * ) * - 95 FROM tab0 AS cor0
----
-11115

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 39 * COUNT ( * ) * - 95 FROM tab0 AS cor0
----
-11115

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-29

query I rowsort
SELECT ( + - col0 ) * - 0 + + + 70 FROM tab0 WHERE NOT - col1 IS NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - col2 + + col0
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE - col2 >= + col0
----

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + + SUM( - - 56 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + + SUM ( - - 56 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 79, + col2 AS col0 FROM tab2 AS cor0
----
79
23
79
40
79
58

query II rowsort
SELECT + 13 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
13
51
13
85
13
91

query II rowsort
SELECT ALL - 18, + col1 AS col2 FROM tab2 AS cor0
----
-18
51
-18
67
-18
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - 88 AS col1, COUNT( col1 ) + + COUNT( * ) AS col2 FROM tab2
----
-88
6

skipif mysql # not compatible
query II rowsort label-5521
SELECT - 88 AS col1, COUNT ( col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
-88
6

query I rowsort
SELECT - ( + 4 ) AS col2 FROM tab2
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT + col1 + - 28 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + col1 + - 28 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + SUM( col2 ) + + 64 FROM tab1 AS cor0
----
287

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + SUM ( col2 ) + + 64 FROM tab1 AS cor0
----
287

query I rowsort
SELECT ALL col0 + col0 + - - col1 AS col1 FROM tab1 AS cor0
----
116
175
229

query III rowsort
SELECT ALL col2, col1 AS col1, - col1 * + col0 + + + 4 FROM tab2 AS cor0
----
9 values hashing to 1189e68b7fd058085c73816bede02e8c

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT MIN( DISTINCT + + ( + 31 ) ) + - - 7 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT MIN ( DISTINCT + + ( + 31 ) ) + - - 7 AS col2 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT MAX( + 4 ) * + COUNT( * ) * + + COUNT( * ) + + - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
265

skipif mysql # not compatible
query I rowsort label-5528
SELECT MAX ( + 4 ) * + COUNT ( * ) * + + COUNT ( * ) + + - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
265

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT - MIN( DISTINCT col2 ) * CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT - MIN ( DISTINCT col2 ) * CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 92 < + + col1 + + col1 + + + col0 + - - ( + + ( - ( 7 ) ) ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5532
SELECT 61 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-5532
SELECT 61 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL 45 * - COUNT( * ) FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 45 * - COUNT ( * ) FROM tab1 cor0
----
-135

query I rowsort
SELECT ALL col2 * ( + col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT + COUNT( * ) - + MAX( + col2 ) DIV + + 80 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5535
SELECT + COUNT ( * ) - + MAX ( + col2 ) / + + 80 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 32 - - - 14 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 22 + + col0 IN ( - col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 90 col1 FROM tab0 AS cor0
----
-43
-80
9

query I rowsort
SELECT - + col1 + 74 FROM tab1 cor0
----
27
60
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT - COUNT( * ) AS col1, 47 AS col0 FROM tab0
----
-3
47

skipif mysql # not compatible
query II rowsort label-5540
SELECT - COUNT ( * ) AS col1, 47 AS col0 FROM tab0
----
-3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL MIN( ALL 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL MIN ( ALL 54 ) FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * 34 col1 FROM tab2
----
238
238
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 + col2 AS col0 FROM tab2
----
-46
74
-64
117
-75
125

query I rowsort
SELECT DISTINCT - 74 * - col1 * col1 FROM tab1
----
14504
163466
1850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + 75 col2 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - MIN( + 76 ) FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5547
SELECT - MIN ( + 76 ) FROM tab0 cor0
----
-76

query I rowsort
SELECT ALL col0 * + col2 * + + 26 - col2 + 26 + - col2 AS col0 FROM tab0 AS cor0
----
18262
22626
249506

query I rowsort
SELECT DISTINCT - 43 + col1 AS col2 FROM tab2 AS cor0
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + + ( + COUNT( * ) ) + - + 96 AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5550
SELECT + + ( + COUNT ( * ) ) + - + 96 AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, + 54 AS col2 FROM tab2
----
46
54
64
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT COUNT( ALL + col1 ) * - - 23 AS col0 FROM tab2 WHERE NOT + - 30 IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT COUNT ( ALL + col1 ) * - - 23 AS col0 FROM tab2 WHERE NOT + - 30 IS NULL
----
69

query II rowsort
SELECT ALL col1, 3 - - 79 * - 41 FROM tab0
----
1
-3236
21
-3236
81
-3236

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT SUM( - col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT SUM ( - col2 ) col2 FROM tab0
----
-156

query II rowsort
SELECT DISTINCT + col2, col2 + col0 FROM tab1 cor0
----
59
144
68
159
96
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL + COUNT( ALL 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + COUNT ( ALL 97 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 98 + + COUNT( * ) AS col0 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-5558
SELECT 98 + + COUNT ( * ) AS col0 FROM tab1
----
101

query I rowsort
SELECT + - col0 + col1 * + - col1 * - 9 + - - col1 FROM tab0 AS cor0
----
-87
3903
59115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * 73 + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 17 * - col0 * - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + 1 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT + 1 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 78 * col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - COUNT( ALL + 1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5564
SELECT - COUNT ( ALL + 1 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT ALL col1 * 21 DIV + 17 AS col0 FROM tab0
----
1
100
25

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL col1 * 21 / + 17 AS col0 FROM tab0
----
1
100
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT + ( - SUM( ALL + col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + ( - SUM ( ALL + col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 72 DIV - 17 + col0 FROM tab2 AS cor0
----
42
60
71

skipif mysql # not compatible
query I rowsort label-5568
SELECT 72 / - 17 + col0 FROM tab2 AS cor0
----
42
60
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL - - 57 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - - 57 / - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 94 + - col2 - - - 97 FROM tab0 AS cor0 WHERE + col1 / + - col1 * - col1 IS NOT NULL
----
-201
-238
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT ALL - + col0 DIV - 73 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - + col0 / - 73 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT + - col0 + - col1 + - - ( - col1 ) + + 85 DIV 8 FROM tab0 AS cor0
----
-119
-167
-89

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + - col0 + - col1 + - - ( - col1 ) + + 85 / 8 FROM tab0 AS cor0
----
-119
-167
-89

query I rowsort
SELECT col2 * + 93 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT DISTINCT + col2 + + + ( + col0 ) FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT col1 + + - ( - col2 ) FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query II rowsort label-5581
SELECT DISTINCT - 11 DIV + 45 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT - 11 / + 45 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - - col2 col0, - col2 * - - col0 FROM tab2
----
1600
-2560
3364
-4350
529
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - 37 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5583
SELECT - 37 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT - COUNT( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - COUNT ( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-13

query II rowsort
SELECT DISTINCT col0 + - 33 * + 66 * col2, - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-102351
225
-215525
9409
-21693
7569

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 + - 67 - 93 * - + ( + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + 73 * - 61 + - COUNT( ALL + col1 ) * - COUNT( * ) * 52 FROM tab2
----
-3985

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + 73 * - 61 + - COUNT ( ALL + col1 ) * - COUNT ( * ) * 52 FROM tab2
----
-3985

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL - MAX( ALL - - 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - MAX ( ALL - - 22 ) FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - COUNT( * ) - + COUNT( * ) col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5589
SELECT ALL - COUNT ( * ) - + COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL col0, 65 + + 40 FROM tab0 AS cor0
----
1