sqllogictest
Artifact Content
Not logged in

Artifact a680a9907a08cfa152163ad6b6e9a47dce2a0fe0:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT 63 / col1 AS col2 FROM tab2
----
0
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4
SELECT * FROM tab0 cor0 WHERE + 21 >= - - 76 * + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4
SELECT * FROM tab0 cor0 WHERE + 21 >= - - 76 * + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL 34 * + + ( - 75 ) + - 23 AS col2 FROM tab1 AS cor0
----
-2573
-2573
-2573

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

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

query I rowsort
SELECT - col2 + ( col1 ) AS col1 FROM tab0
----
-98
11
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL CAST( + 82 AS SIGNED ) AS col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL CAST ( + 82 AS INTEGER ) AS col0 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT + 9 * + - col1 + + 3 * - col1 * - col2 * + - col1 FROM tab1 AS cor0
----
-4470
-451059
-56574

query I rowsort
SELECT - ( 69 ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT ALL - + ( - 66 ) * + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - + ( - 66 ) * + col2 / + col2 AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT col0 * - 33 + col2 FROM tab0
----
-2861
-3102
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - MIN( + - 13 ) + - 77 AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-15
SELECT - MIN ( + - 13 ) + - 77 AS col1 FROM tab2 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, col0 - + 58 FROM tab2 AS cor0
----
NULL
-12
NULL
17
NULL
6

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0
----
NULL
-12
NULL
17
NULL
6

query I rowsort
SELECT - 6 * - col2 FROM tab0 AS cor0
----
282
594
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-18
SELECT - - col2 * col0 + + - 40, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
1018
NULL
2520
NULL
4310
NULL

skipif mysql # not compatible
query II rowsort label-18
SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
1018
NULL
2520
NULL
4310
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-20
SELECT + + col1 * - col0 / - col2 + - - CAST( NULL AS DECIMAL ) + - 95 * - - 98 col0, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-20
SELECT + + col1 * - col0 / - col2 + - - CAST ( NULL AS REAL ) + - 95 * - - 98 col0, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 10 FROM tab1
----
590
680
960

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT - 55 AS col0, COUNT( * ) AS col0 FROM tab0
----
-55
3

skipif mysql # not compatible
query II rowsort label-26
SELECT - 55 AS col0, COUNT ( * ) AS col0 FROM tab0
----
-55
3

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT + 73 AS col2, + SUM( ALL 66 ) FROM tab1
----
73
198

skipif mysql # not compatible
query II rowsort label-27
SELECT + 73 AS col2, + SUM ( ALL 66 ) FROM tab1
----
73
198

query II rowsort
SELECT - col0, 4 * 83 AS col2 FROM tab0
----
-15
332
-87
332
-97
332

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT - COUNT( * ) * - 39 * + + 95 AS col1 FROM tab1 AS cor0
----
11115

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - COUNT ( * ) * - 39 * + + 95 AS col1 FROM tab1 AS cor0
----
11115

query I rowsort
SELECT - col1 + 7 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL 76 - - ( - COUNT( * ) ) FROM tab1, tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL 76 - - ( - COUNT ( * ) ) FROM tab1, tab1 cor0
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT ALL + 59 + + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
110
144
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-35
SELECT ALL + 59 + + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT + col1 + 63 FROM tab2 AS cor0 WHERE ( 45 ) >= ( - 43 )
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT DISTINCT + + col1 + - col0 AS col1, - CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-8
75
13
64
5
46

skipif mysql # not compatible
query II rowsort label-37
SELECT DISTINCT + + col1 + - col0 AS col1, - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-8
75
13
64
5
46

query I rowsort
SELECT 85 FROM tab1 AS cor0 WHERE + col2 * + - col1 * + + col1 IS NULL
----

query II rowsort
SELECT ALL col2, + col0 * - - 25 AS col0 FROM tab0
----
10
2175
47
375
99
2425

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

query I rowsort
SELECT 42 * col0 FROM tab2
----
1932
2688
3150

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 * - 80 * + 0 * col1 * - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT MIN( DISTINCT + col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
2

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 72 * col0 <> - col0
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT col1 * + - 46 * + CAST( - + 33 AS SIGNED ) FROM tab1 AS cor0
----
21252
71346
7590

skipif mysql # not compatible
query I rowsort label-49
SELECT col1 * + - 46 * + CAST ( - + 33 AS INTEGER ) FROM tab1 AS cor0
----
21252
71346
7590

query I rowsort
SELECT ALL 61 * - - col0 FROM tab1 AS cor0
----
3111
5185
5551

query I rowsort
SELECT 3 * - col2 AS col0 FROM tab2 AS cor0
----
-120
-174
-69

query I rowsort
SELECT - 7 * - col1 AS col1 FROM tab2 WHERE NOT - + col1 * 42 IS NOT NULL
----

query I rowsort
SELECT AVG ( - 92 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-54
SELECT col2 AS col0, - 95 DIV 58 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-54
SELECT col2 AS col0, - 95 / 58 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 61 * + col1 >= + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT + CAST( - col2 AS SIGNED ) + + 37 + + + col2 + + 28 FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-58
SELECT + CAST ( - col2 AS INTEGER ) + + 37 + + + col2 + + 28 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT col0 * - 10 + - + col0 + col0 * - + 50 + + col0 * + col0 + - col1 * + - 0 AS col2 FROM tab1 AS cor0
----
-510
2040
2730

query I rowsort
SELECT - col1 + + col1 * - - col0 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT ALL + + col2 + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
141
33
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 77 col0 FROM tab2
----
19
37
54

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT 11 DIV 24 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-63
SELECT 11 / 24 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * 14 AS col1 FROM tab2
----
1078
714
938

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

query I rowsort
SELECT + 21 - - 4 - - col1 FROM tab2 AS cor0
----
102
76
92

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

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

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

skipif mysql # not compatible
query II rowsort label-68
SELECT ALL - CAST ( col1 AS INTEGER ) + - - col1 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab0 WHERE NOT - + col1 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab0 WHERE NOT - + col1 IS NULL
----
1

query I rowsort
SELECT + col1 * - col1 + col1 + - col2 + col0 FROM tab1 AS cor0
----
-2139
-227
6

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

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

skipif mysql # not compatible
query I rowsort label-73
SELECT + col0 / + + col0 FROM tab2 cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT ALL - - col0 + + col0 + - + 0 FROM tab0 AS cor0
----
174
194
30

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

query I rowsort
SELECT 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT - col1 + col1 DIV - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-79
SELECT - col1 + col1 / - col1 FROM tab2
----
-52
-68
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - - col1 * + col0, col1 + + ( - - 23 ) col1 FROM tab2 cor0
----
-119646
74
-336675
90
-379456
100

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

query I rowsort
SELECT DISTINCT + 5 + - - col2 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT ALL col1 - 40 FROM tab1 cor0
----
-26
-35
7

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col2 * - + 98 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - + col0 FROM tab0
----
-174
-194
-30

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

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

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

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

query II rowsort
SELECT + 87 + col0 AS col2, - 46 FROM tab2
----
133
-46
151
-46
162
-46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL col1 DIV - - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL col1 / - - col1 FROM tab0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT + 14 AS col2 FROM tab1 cor0 WHERE + CAST( + col1 AS SIGNED ) / + 87 + 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-95
SELECT + 14 AS col2 FROM tab1 cor0 WHERE + CAST ( + col1 AS INTEGER ) / + 87 + 63 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 22 + - col2 FROM tab2 AS cor0
----
1368
1592
989

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - 5 col1 FROM tab1 AS cor0
----
-100
-100
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT 40 DIV col1 FROM tab0 cor0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-100
SELECT 40 / col1 FROM tab0 cor0
----
0
1
40

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - 81 + + col1 - + 7 > NULL
----

query I rowsort
SELECT DISTINCT 20 FROM tab2 WHERE NOT NULL NOT BETWEEN + + 79 AND + - col2
----

query I rowsort
SELECT - 92 + - ( + col0 ) * col0 AS col2 FROM tab0
----
-317
-7661
-9501

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT 32 * + ( + + COUNT( * ) ) + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-105
SELECT 32 * + ( + + COUNT ( * ) ) + - COUNT ( * ) FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-106
SELECT - col1, + col1 * - + col1 AS col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-106
SELECT - col1, + col1 * - + col1 AS col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL CAST( + col0 AS SIGNED ) + - + col0 + + 8 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL CAST ( + col0 AS INTEGER ) + - + col0 + + 8 FROM tab1 AS cor0
----
8
8
8

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-110
SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 26 < ( - 62 )
----

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

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL OR - - col0 BETWEEN NULL AND NULL
----
23
40
58

query I rowsort
SELECT - - 47 + + col1 AS col0 FROM tab1 AS cor0
----
52
61
94

query I rowsort
SELECT + - 36 * - - ( - col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-63
2869
746

query II rowsort
SELECT - col1 + + + 76, col0 FROM tab1 AS cor0
----
29
91
62
51
71
85

query I rowsort
SELECT 40 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
139
250
3847

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

skipif mysql # not compatible
query I rowsort label-119
SELECT CAST ( NULL AS INTEGER ) * + ( - col0 ) + - 73 * - col0 + - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 29 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT DISTINCT + CAST( - + 37 AS SIGNED ) * - 83 + + + ( col0 ) + col2, + col2 AS col0 FROM tab0
----
3133
47
3168
10
3267
99

skipif mysql # not compatible
query II rowsort label-121
SELECT DISTINCT + CAST ( - + 37 AS INTEGER ) * - 83 + + + ( col0 ) + col2, + col2 AS col0 FROM tab0
----
3133
47
3168
10
3267
99

query I rowsort
SELECT ALL col1 - - 62 FROM tab0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + ( 89 ) + + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + ( 89 ) + + + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT ( 82 ) - + + 23 FROM tab0
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT ALL ( - col2 ) * + col2 + - col2 - col2 DIV - - ( - col1 ) AS col1 FROM tab2
----
-1640
-3422
-552

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL ( - col2 ) * + col2 + - col2 - col2 / - - ( - col1 ) AS col1 FROM tab2
----
-1640
-3422
-552

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

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

query I rowsort
SELECT 73 * + col1 + + - col2 - - col2 + col0 - + + 13 FROM tab0 AS cor0
----
157
1607
5915

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) FROM tab0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 + col1 * col1 FROM tab2
----
23
2647
40
5993
58
4564

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

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

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

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

query II rowsort
SELECT - col2 AS col2, col0 * + + 9 FROM tab1 AS cor0
----
-59
765
-68
819
-96
459

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

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT + 61 DIV col1 AS col0 FROM tab0 AS cor0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT + 61 / col1 AS col0 FROM tab0 AS cor0
----
0
2
61

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

query I rowsort
SELECT - 43 * - col1 AS col2 FROM tab2
----
2193
2881
3311

query II rowsort
SELECT ALL col1 * col1, + col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT 2 * + col1 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 + - ( - + 50 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-145
SELECT - CAST( col2 AS SIGNED ) AS col2, - col1 col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-145
SELECT - CAST ( col2 AS INTEGER ) AS col2, - col1 col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT 64 * 50 FROM tab0, tab0 AS cor0
----
9 values hashing to f8ed911b57331c4cf52f0fae7ceba87c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-147
SELECT MAX( ALL - + CAST( NULL AS DECIMAL ) ) / + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT MAX ( ALL - + CAST ( NULL AS REAL ) ) / + COUNT ( * ) AS col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT col0 + - 65 * + col2 FROM tab0 AS cor0
----
-3040
-563
-6338

query I rowsort
SELECT - ( + 14 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + 7 + MIN( DISTINCT + + 92 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-151
SELECT + 7 + MIN ( DISTINCT + + 92 ) AS col1 FROM tab1
----
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-153
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( 68 * - col1 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-153
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( 68 * - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT + - col2 <= col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 - - 86 col1 FROM tab1 AS cor0
----
151
151
151

query I rowsort
SELECT DISTINCT + 51 + col1 FROM tab0
----
132
52
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-158
SELECT * FROM tab0 WHERE ( - ( - 38 ) ) IN ( + + col1, + col0 + + col1 + + 11 * - 84, - ( col2 ), 30 + col0 - - CAST( - col2 AS SIGNED ) + - - 39, + col0, + CAST( NULL AS SIGNED ) + col1 * - - col0, - + col0 )
----

skipif mysql # not compatible
query III rowsort label-158
SELECT * FROM tab0 WHERE ( - ( - 38 ) ) IN ( + + col1, + col0 + + col1 + + 11 * - 84, - ( col2 ), 30 + col0 - - CAST ( - col2 AS INTEGER ) + - - 39, + col0, + CAST ( NULL AS INTEGER ) + col1 * - - col0, - + col0 )
----

query I rowsort
SELECT ( - col0 ) * + - 32 * ( - + col2 ) AS col0 FROM tab2
----
-139200
-33856
-81920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT DISTINCT - 25 * 14 * - CAST( + + COUNT( * ) AS SIGNED ) * ( - MIN( 88 ) ) AS col0 FROM tab1
----
-92400

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - 25 * 14 * - CAST ( + + COUNT ( * ) AS INTEGER ) * ( - MIN ( 88 ) ) AS col0 FROM tab1
----
-92400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col2 ) + ( col0 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1104
2624
4425

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

query II rowsort
SELECT - col0 * - 87 AS col1, + 67 FROM tab0 AS cor0
----
1305
67
7569
67
8439
67

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT + 43 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-164
SELECT + 43 / - col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT + MIN( + + CAST( + + 1 AS SIGNED ) ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT + MIN ( + + CAST ( + + 1 AS INTEGER ) ) col1 FROM tab1
----
1

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

query I rowsort
SELECT - 4 + + - 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 90 ) = + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + + SUM( ALL - - 81 ) + + + COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-171
SELECT + + SUM ( ALL - - 81 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT + + col1 * 44 * - col2 FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN + 66 * - + col1 AND + col2
----
15
81
47
87
21
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + MAX( + 47 ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-178
SELECT + MAX ( + 47 ) FROM tab2 cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 81 ) > 24
----

query I rowsort
SELECT - col0 + - col1 + - 51 AS col0 FROM tab1 AS cor0
----
-116
-141
-189

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL AND + col0
----
15
81
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 + - - col0, - col1 col2 FROM tab0 AS cor0
----
-49
-81
23
-21
33
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-185
SELECT + + col0 + CAST( + 59 AS SIGNED ) + + col2 + + 55, col0 * + + col2 AS col1 FROM tab1 cor0
----
258
5015
261
4896
273
6188

skipif mysql # not compatible
query II rowsort label-185
SELECT + + col0 + CAST ( + 59 AS INTEGER ) + + col2 + + 55, col0 * + + col2 AS col1 FROM tab1 cor0
----
258
5015
261
4896
273
6188

query I rowsort
SELECT DISTINCT - + col0 + - col2 * + 63 * 16 AS col1 FROM tab0 AS cor0
----
-10167
-47391
-99889

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

query I rowsort
SELECT ALL ( col0 ) * + + ( col2 ) - + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 * - + 34 IS NOT NULL
----

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

query II rowsort
SELECT ALL col0, - 65 * - col1 FROM tab2
----
46
3315
64
5005
75
4355

query I rowsort
SELECT ( 30 ) AS col2 FROM tab1
----
30
30
30

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

query II rowsort
SELECT ( 91 ) * - col0 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-4186
-23
-5824
-40
-6825
-58

query I rowsort
SELECT ALL - 29 * - col2 AS col0 FROM tab2 AS cor0
----
1160
1682
667

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT - 62 DIV ( + 52 * col1 ) + 30 * - col1 AS col2 FROM tab1
----
-1410
-150
-420

skipif mysql # not compatible
query I rowsort label-196
SELECT - 62 / ( + 52 * col1 ) + 30 * - col1 AS col2 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col0 / col1 = col0 * - 95
----
14
47
5

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-199
SELECT DISTINCT - COUNT ( ALL - col1 ) col0 FROM tab1
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT COUNT( * ) + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-202
SELECT COUNT ( * ) + 44 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL + 94 + - SUM( 89 ) AS col1 FROM tab1
----
-173

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + 94 + - SUM ( 89 ) AS col1 FROM tab1
----
-173

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

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

query I rowsort
SELECT + ( - 32 ) + col2 AS col1 FROM tab2
----
-9
26
8

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

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT MIN( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( ( col1 ) )
----

query I rowsort
SELECT DISTINCT - 35 * + col0 AS col2 FROM tab1
----
-1785
-2975
-3185

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT col1 * - CAST( - col2 AS SIGNED ) - 81 FROM tab2
----
1092
2999
3805

skipif mysql # not compatible
query I rowsort label-212
SELECT col1 * - CAST ( - col2 AS INTEGER ) - 81 FROM tab2
----
1092
2999
3805

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

query I rowsort
SELECT 76 * - col0 - col1 FROM tab1
----
-3890
-6465
-6963

query I rowsort
SELECT - 80 + + col0 * + col0 FROM tab0 WHERE NOT + col2 * - 99 + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT - ( - 47 ) FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT COUNT( * ) * - 44 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-219
SELECT COUNT ( * ) * - 44 FROM tab0
----
-132

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL ) IN ( 82 )
----

query I rowsort
SELECT DISTINCT 48 * 10 AS col2 FROM tab2 AS cor0
----
480

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-223
SELECT COUNT ( * ) + 13 col1 FROM tab2 AS cor0
----
16

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

query I rowsort
SELECT + 30 FROM tab0 AS cor0 WHERE ( col0 ) <= + col1
----
30

query I rowsort
SELECT ALL + 63 * 41 AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + col0 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL COUNT( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL COUNT ( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT col2 * col0 - col1 AS col1 FROM tab0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL 21 - - MIN( + col0 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL 21 - - MIN ( + col0 ) FROM tab0
----
36

query I rowsort
SELECT + 1 * + 45 FROM tab2
----
45
45
45

query I rowsort
SELECT ALL - 78 * + col2 FROM tab1
----
-4602
-5304
-7488

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

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

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

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

query I rowsort
SELECT - col2 * col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + COUNT( DISTINCT col1 ) + AVG ( DISTINCT + 63 ) * - 17 col0 FROM tab2 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-240
SELECT + COUNT ( DISTINCT col1 ) + AVG ( DISTINCT + 63 ) * - 17 col0 FROM tab2 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT - col1 * - col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col0 NOT IN ( - ( - 14 ) )
----

skipif mysql # not compatible
query I rowsort label-242
SELECT - col1 * - col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 NOT IN ( - ( - 14 ) )
----

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

query I rowsort
SELECT + col2 * 3 AS col2 FROM tab0 AS cor0
----
141
297
30

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 WHERE col0 > 45
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE col0 + col2 * 39 IN ( - 95 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT + COUNT( col0 ) FROM tab1 WHERE ( NULL ) = col0 OR col0 * ( 96 * + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-249
SELECT + COUNT ( col0 ) FROM tab1 WHERE ( NULL ) = col0 OR col0 * ( 96 * + col1 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 92 + + col0 ) BETWEEN NULL AND + 76 + 80
----
75
67
58

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-253
SELECT DISTINCT + SUM( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 35 ) NOT BETWEEN CAST( 68 AS DECIMAL ) / 13 AND + CAST( col0 AS SIGNED )
----
223

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 35 ) NOT BETWEEN CAST ( 68 AS REAL ) / 13 AND + CAST ( col0 AS INTEGER )
----
223

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT col2 DIV - + col1 + col2 DIV col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-255
SELECT col2 / - + col1 + col2 / col1 FROM tab2 cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-256
SELECT - - 61 col2, COUNT ( * ) FROM tab0 AS cor0
----
61
3

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

skipif mysql # not compatible
query III rowsort label-257
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( - 72 AS REAL ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT DISTINCT 4 AS col0, SUM( - 39 ) * 63 AS col2 FROM tab0 AS cor0
----
4
-7371

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT 4 AS col0, SUM ( - 39 ) * 63 AS col2 FROM tab0 AS cor0
----
4
-7371

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

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

query I rowsort
SELECT + col1 * + - 99 + - - 3 * - col2 + - col0 FROM tab1 AS cor0
----
-1725
-4948
-757

query I rowsort
SELECT - col0 * col1 * col0 + - col1 FROM tab0 AS cor0
----
-158970
-18306
-9410

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

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

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

query II rowsort
SELECT ALL col0, + col1 * - col1 AS col0 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + 31 * + MAX( ALL + + col2 ) + + SUM( ALL - col0 ) AS col2 FROM tab1
----
2749

skipif mysql # not compatible
query I rowsort label-267
SELECT + 31 * + MAX ( ALL + + col2 ) + + SUM ( ALL - col0 ) AS col2 FROM tab1
----
2749

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) <> NULL
----

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

query I rowsort
SELECT DISTINCT col1 + + 40 - + + 34 FROM tab0
----
27
7
87

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 81 / + ( - 40 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL - COUNT( * ) + - MIN( col0 ) - - - 0 + 86 * - 51 FROM tab1
----
-4440

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - COUNT ( * ) + - MIN ( col0 ) - - - 0 + 86 * - 51 FROM tab1
----
-4440

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

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

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

query I rowsort
SELECT ALL 58 + col2 AS col1 FROM tab1 AS cor0
----
117
126
154

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE - col1 NOT BETWEEN + col1 AND NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 44 * 13 AS col2 FROM tab2
----
572

query I rowsort
SELECT DISTINCT - col2 * 96 AS col0 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT ALL + 35 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + 35 / + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + ( - col0 ) ) * + col1 * 59 FROM tab1
----
-25075
-252343
-42126

query II rowsort
SELECT - col2 AS col0, 85 + col2 * - col0 * 24 FROM tab2 AS cor0
----
-23
-25307
-40
-61355
-58
-104315

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 54 AS col2 FROM tab1 cor0
----
14
54
47
54
5
54

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

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

skipif mysql # not compatible
query I rowsort label-285
SELECT - SUM ( + 80 ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 / + col2 FROM tab0 WHERE ( NOT + ( + 79 ) >= 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT col2 DIV - - 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-288
SELECT col2 / - - 69 FROM tab0
----
0
0
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT + 45 DIV + 52 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + 45 / + 52 AS col2 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL COUNT( * ) + 98 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( + col1 )
----
98

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL COUNT ( * ) + 98 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( + col1 )
----
98

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 80 + + ( - - col2 ) <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-299
SELECT ALL + 45 DIV + col2 + 89 AS col0, 23 AS col1 FROM tab2 AS cor0
----
89
23
90
23
90
23

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL + 45 / + col2 + 89 AS col0, 23 AS col1 FROM tab2 AS cor0
----
89
23
90
23
90
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + COUNT( * ) + + 33 * 62 AS col2 FROM tab0 cor0
----
2049

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COUNT ( * ) + + 33 * 62 AS col2 FROM tab0 cor0
----
2049

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - ( + MIN( + 12 ) ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-302
SELECT - ( + MIN ( + 12 ) ) FROM tab0 cor0
----
-12

query I rowsort
SELECT ALL - 74 * 33 * 84 FROM tab1
----
-205128
-205128
-205128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT - CAST( - + MAX( + - 55 ) AS SIGNED ) - - COUNT( * ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-304
SELECT - CAST ( - + MAX ( + - 55 ) AS INTEGER ) - - COUNT ( * ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL COUNT( * ) - - MAX( DISTINCT col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT col0 ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + + col2 - ( ( + 19 ) ) col2 FROM tab1
----
25056
290817
68525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 53 col1 FROM tab2
----
-7
11
22

query I rowsort
SELECT - 55 + - col0 * 32 FROM tab0
----
-2839
-3159
-535

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-310
SELECT ALL - - 83 DIV + col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
13
182
48

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - - 83 / + col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
13
182
48

onlyif mysql # DIV for integer division: 
query II rowsort label-311
SELECT ALL - 6 DIV - col0, + col1 + 25 AS col0 FROM tab0 AS cor0
----
0
106
0
26
0
46

skipif mysql # not compatible
query II rowsort label-311
SELECT ALL - 6 / - col0, + col1 + 25 AS col0 FROM tab0 AS cor0
----
0
106
0
26
0
46

query I rowsort
SELECT - 85 AS col2 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + col0 * - ( - col0 ) + + + 27 * + col2 AS col2 FROM tab0 AS cor0
----
12082
1494
7839

query II rowsort
SELECT ALL + - 51 * 4, col0 FROM tab2 AS cor0
----
-204
46
-204
64
-204
75

query I rowsort
SELECT ALL - col2 * - 17 AS col0 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-316
SELECT - COUNT( * ) * + 76 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-228
NULL

skipif mysql # not compatible
query II rowsort label-316
SELECT - COUNT ( * ) * + 76 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-228
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL 13 * COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL 13 * COUNT ( * ) FROM tab1
----
39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT + MAX( - col1 ) DIV + 26 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT + MAX ( - col1 ) / + 26 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT + col0 DIV + + 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-320
SELECT + col0 / + + 47 FROM tab0
----
0
1
2

query II rowsort
SELECT DISTINCT col0, 50 FROM tab0
----
15
50
87
50
97
50

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col1 FROM tab1
----
37
44
80

query II rowsort
SELECT ALL + col0, col1 + + + col1 * - + col1 * - + ( + 7 ) AS col2 FROM tab0 AS cor0
----
15
46008
87
3108
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT + 81 * - MIN( ALL 15 ) AS col0 FROM tab0
----
-1215

skipif mysql # not compatible
query I rowsort label-326
SELECT + 81 * - MIN ( ALL 15 ) AS col0 FROM tab0
----
-1215

query I rowsort
SELECT + + col2 + - 63 * col1 AS col2 FROM tab1 AS cor0
----
-256
-2893
-786

query I rowsort
SELECT ALL 64 + + 28 AS col0 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - col2 * - col0 + 36 FROM tab0 AS cor0
----
741
906
9639

query I rowsort
SELECT ALL + col2 + - 51 FROM tab2 AS cor0
----
-11
-28
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + col1 col2 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT DISTINCT + + 14 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-71
-77

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

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

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

query I rowsort
SELECT 56 AS col1 FROM tab2 WHERE - col1 * - col2 + + 89 - + 64 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 66 <> NULL
----

query II rowsort
SELECT - col0 * - col1, - col2 AS col2 FROM tab0
----
1215
-47
1827
-10
97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 - + 49 / - 37 + - 69 - + - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= ( 72 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 87 IN ( + 37, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - COUNT( + + col1 ) * - 12 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-342
SELECT - COUNT ( + + col1 ) * - 12 AS col2 FROM tab2 AS cor0
----
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col0 * 3 * - 53 AS col0 FROM tab0
----
1
-15423
21
-13833
81
-2385

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT SUM( ALL - + 33 ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT SUM ( ALL - + 33 ) AS col1 FROM tab2
----
-99

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

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

query II rowsort
SELECT DISTINCT + 14, col1 + + col1 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
14
-2244
14
-4774
14
-4891

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col0 * 73 FROM tab2 AS cor0
----
-23
3358
-40
4672
-58
5475

query I rowsort
SELECT - col0 * col1 + 82 AS col1 FROM tab1 AS cor0
----
-343
-4195
-632

query II rowsort
SELECT col2, + col2 - - + col2 - + + col2 + + 41 + - col2 * col1 * - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
23
-59810
40
-237156
58
-260330

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

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

query I rowsort
SELECT DISTINCT col1 * - 25 * + col2 AS col1 FROM tab1
----
-33600
-7375
-79900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT ALL + CAST( - - col2 AS SIGNED ) col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-358
SELECT ALL + CAST ( - - col2 AS INTEGER ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 35 + - col0 FROM tab1
----
-120
-126
-86

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

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

query I rowsort
SELECT ALL - + col1 * - - 81 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT + 13 + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + 13 + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT col2 * 47 + col0 AS col1 FROM tab1
----
2858
3287
4563

query III rowsort
SELECT * FROM tab0 WHERE col1 > ( - - ( + col0 ) )
----
15
81
47

query I rowsort
SELECT + - 70 FROM tab2 WHERE + col2 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * + 14 FROM tab2 AS cor0
----
-16422
-43120
-54404

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

query I rowsort
SELECT ALL + + 21 * - col1 FROM tab2 cor0
----
-1071
-1407
-1617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) * + + 40 * - - col0 + 66 col0 FROM tab1 AS cor0 WHERE NOT col1 * col0 * - + 46 IS NULL
----
104106
289066
331306

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

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

query I rowsort
SELECT - + 12 - + 14 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - 33 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
-25
-38
-46

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

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

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

query I rowsort
SELECT - col1 * - + ( - col1 ) + - 72 FROM tab1
----
-2281
-268
-97

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - - COUNT( - ( - col1 ) ) * - 59 col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-382
SELECT - - COUNT ( - ( - col1 ) ) * - 59 col0 FROM tab0 AS cor0
----
-177

query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 / col2 IS NULL
----
108
96
98

query I rowsort
SELECT - ( + col0 ) * - ( - + 94 ) + + - 49 * + + 26 FROM tab2 AS cor0
----
-5598
-7290
-8324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT DISTINCT + - CAST( + ( + 83 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT + - CAST ( + ( + 83 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT + 27 * - - col0 FROM tab2 AS cor0
----
1242
1728
2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT CAST( + + col2 AS SIGNED ) + - + 6 + + col0 FROM tab0
----
190
56
91

skipif mysql # not compatible
query I rowsort label-387
SELECT CAST ( + + col2 AS INTEGER ) + - + 6 + + col0 FROM tab0
----
190
56
91

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT DISTINCT 83 + + col1 DIV - - col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT 83 + + col1 / - - col1 FROM tab1 AS cor0
----
84

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

query I rowsort
SELECT ALL + - col2 * + - ( 45 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

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

query I rowsort
SELECT ALL 72 + - - col1 FROM tab0 AS cor0
----
153
73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT MAX( ALL - 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

skipif mysql # not compatible
query I rowsort label-393
SELECT MAX ( ALL - 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

query II rowsort
SELECT DISTINCT col1 + - - col2 AS col0, col2 AS col1 FROM tab0 cor0
----
100
99
128
47
31
10

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL MAX( + col1 ) * + SUM( + - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL MAX ( + col1 ) * + SUM ( + - 0 ) FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT COUNT ( * ) / + 24 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 55 * - col2 * - 30 + - col0 AS col2 FROM tab0 AS cor0
----
-163447
-16587
-77565

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

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

query I rowsort
SELECT ALL col0 - + - 77 FROM tab0 AS cor0
----
164
174
92

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

query I rowsort
SELECT ALL col0 - - + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - ( - - col2 )
----

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab2 WHERE - - 98 * - 75 IS NOT NULL
----
-2601
-4489
-5929

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT + - col1 DIV col1 + - 28 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-406
SELECT + - col1 / col1 + - 28 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-407
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) BETWEEN 65 * + - col1 / - 50 * - col2 * - col1 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-407
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) BETWEEN 65 * + - col1 / - 50 * - col2 * - col1 + + CAST ( NULL AS INTEGER ) AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - ( - - COUNT( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + ( + 35 ) + + col0 + + 49 FROM tab1 AS cor0
----
135
169
175

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL + SUM( - - 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 68 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + SUM ( - - 72 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 68 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ( + ( col1 ) ) DIV - 9 AS col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-417
SELECT ( + ( col1 ) ) / - 9 AS col0 FROM tab1
----
-1
-5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 90 * 31 * 25 * + 65 NOT BETWEEN NULL AND + col2
----

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

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

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

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

query II rowsort
SELECT ALL col1 * + ( + col0 ), col2 + + 42 * - col2 AS col0 FROM tab2
----
2346
-943
4928
-1640
5025
-2378

query I rowsort
SELECT DISTINCT + col1 + + + 26 FROM tab1
----
31
40
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL MAX( DISTINCT + col0 ) + MIN( ALL + col2 ) AS col2 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL MAX ( DISTINCT + col0 ) + MIN ( ALL + col2 ) AS col2 FROM tab0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT 8 + - + 83 - + + COUNT( * ) AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-425
SELECT 8 + - + 83 - + + COUNT ( * ) AS col2 FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT col0 + + 45 DIV col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-426
SELECT col0 + + 45 / col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + ( - - COUNT( * ) ) FROM tab0 WHERE - 6 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + ( - - COUNT ( * ) ) FROM tab0 WHERE - 6 NOT BETWEEN + - col0 AND NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - 77 + + 10 - - col2 FROM tab2 AS cor0
----
-27
-44
-9

query I rowsort
SELECT ALL - ( - 59 ) AS col2 FROM tab2 AS cor0
----
59
59
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - 77 col1, col1 AS col0 FROM tab0
----
1155
81
6699
21
7469
1

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

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

query I rowsort
SELECT DISTINCT - col2 * + col0 + 18 AS col1 FROM tab1 AS cor0
----
-4878
-4997
-6170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT ALL + CAST( + 91 AS SIGNED ) col1 FROM tab2 AS cor0
----
91
91
91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT ALL SUM( + CAST( + 61 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL SUM ( + CAST ( + 61 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT 85 * SUM( ALL 65 ) FROM tab2
----
16575

skipif mysql # not compatible
query I rowsort label-438
SELECT 85 * SUM ( ALL 65 ) FROM tab2
----
16575

query I rowsort
SELECT + ( - 35 ) FROM tab0
----
-35
-35
-35

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

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE + 96 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT + COUNT( DISTINCT 49 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( DISTINCT 49 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 94 * col1 + + col2 + + 2 FROM tab2 AS cor0
----
4819
6358
7280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-444
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 + + 41 * CAST( NULL AS SIGNED ) AND - col1 * - ( 47 ) + - col0
----

skipif mysql # not compatible
query III rowsort label-444
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 + + 41 * CAST ( NULL AS INTEGER ) AND - col1 * - ( 47 ) + - col0
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT + COUNT( * ) + 51 AS col1, COUNT( * ) FROM tab2
----
54
3

skipif mysql # not compatible
query II rowsort label-448
SELECT + COUNT ( * ) + 51 AS col1, COUNT ( * ) FROM tab2
----
54
3

query I rowsort
SELECT col0 + + 43 + - col2 FROM tab2
----
60
66
67

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL COUNT( DISTINCT 37 ) * - 61 - + - 48 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COUNT ( DISTINCT 37 ) * - 61 - + - 48 FROM tab0
----
-13

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

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

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

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

query I rowsort
SELECT DISTINCT - 74 + col0 + + col2 FROM tab2
----
-5
30
59

query II rowsort
SELECT col0 AS col2, + 0 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 19 col0, col2 AS col0 FROM tab1 cor0
----
-19
59
-19
68
-19
96

query II rowsort
SELECT DISTINCT - col2 AS col1, ( - - col2 ) * 68 + col1 AS col0 FROM tab0 AS cor0
----
-10
701
-47
3277
-99
6733

query I rowsort
SELECT ALL + col2 + + 34 + 2 FROM tab0 AS cor0
----
135
46
83

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

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

query II rowsort
SELECT ( + - 92 ) - - col1 AS col0, col1 AS col0 FROM tab1
----
-45
47
-78
14
-87
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-463
SELECT + COUNT( - 54 ) AS col2, - COUNT( ( + 53 ) ) + - 84 - - SUM( - + ( - + CAST( NULL AS SIGNED ) ) ) + - - 31 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-463
SELECT + COUNT ( - 54 ) AS col2, - COUNT ( ( + 53 ) ) + - 84 - - SUM ( - + ( - + CAST ( NULL AS INTEGER ) ) ) + - - 31 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT - + SUM( ALL col0 ), + COUNT( * ) * 42 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-227
129

skipif mysql # not compatible
query II rowsort label-464
SELECT - + SUM ( ALL col0 ), + COUNT ( * ) * 42 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-227
129

onlyif mysql # DIV for integer division: 
query II rowsort label-465
SELECT ALL col1 DIV + col0 * - col0 AS col1, 10 + 67 AS col2 FROM tab1
----
0
77
0
77
0
77

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL col1 / + col0 * - col0 AS col1, 10 + 67 AS col2 FROM tab1
----
0
77
0
77
0
77

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

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 9 AS col2 FROM tab0
----
-189
-729
-9

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

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

query I rowsort
SELECT 75 * + 13 AS col0 FROM tab0
----
975
975
975

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - 7 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-473
SELECT DISTINCT col2 DIV col0 AS col1, + 55 FROM tab2
----
0
55

skipif mysql # not compatible
query II rowsort label-473
SELECT DISTINCT col2 / col0 AS col1, + 55 FROM tab2
----
0
55

query I rowsort
SELECT ALL + col2 + - 96 AS col1 FROM tab2
----
-38
-56
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL + col1 * - - CAST( - - col1 AS SIGNED ) * col2 + + 48 AS col0 FROM tab0 cor0
----
147
308415
4458

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + col1 * - - CAST ( - - col1 AS INTEGER ) * col2 + + 48 AS col0 FROM tab0 cor0
----
147
308415
4458

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-476
SELECT ALL - col0 - CAST( NULL AS DECIMAL ) + - - 97 - - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - col0 - CAST ( NULL AS REAL ) + - - 97 - - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-477
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query I rowsort
SELECT col2 - - col0 * - col2 AS col0 FROM tab2
----
-1035
-2520
-4292

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT - 45 * + 12 * - MIN( ALL - + CAST( + col0 AS SIGNED ) ) + - - COUNT( - col2 ) AS col1 FROM tab1
----
-49137

skipif mysql # not compatible
query I rowsort label-481
SELECT - 45 * + 12 * - MIN ( ALL - + CAST ( + col0 AS INTEGER ) ) + - - COUNT ( - col2 ) AS col1 FROM tab1
----
-49137

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

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

query I rowsort
SELECT col1 * + col0 + 73 AS col1 FROM tab2
----
2419
5001
5098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ALL 91 DIV COUNT( * ) DIV - + COUNT( * ) FROM tab1, tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 91 / COUNT ( * ) / - + COUNT ( * ) FROM tab1, tab0 cor0
----
-1

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * + 33 * + col0 FROM tab1 AS cor0
----
-13885872
-15510528
-9764205

query I rowsort
SELECT DISTINCT - col2 * - - 58 FROM tab0 cor0
----
-2726
-5742
-580

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

query I rowsort
SELECT - col2 * + col1 + + + col2 AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL - ( 11 ) FROM tab2 WHERE + col1 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - ( 11 ) FROM tab2 WHERE + col1 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 57 ) FROM tab2
----
57

query I rowsort
SELECT + ( + - 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 13 FROM tab1 WHERE ( - - 21 ) IS NOT NULL
----
13

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 39
----

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

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

query I rowsort
SELECT col2 + - 77 * + + 43 AS col0 FROM tab2 AS cor0
----
-3253
-3271
-3288

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT + SUM( + 61 ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-504
SELECT + SUM ( + 61 ) FROM tab2
----
183

query II rowsort
SELECT DISTINCT + col1 * + - col0 AS col0, + col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 + - - 6 - 1 / - + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + 21, col1 col0 FROM tab2
----
1344
77
1575
67
966
51

query II rowsort
SELECT ALL - 40, - col1 AS col0 FROM tab1 WHERE NOT + 84 IS NULL
----
-40
-14
-40
-47
-40
-5

query I rowsort
SELECT col2 - - - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-100
-2141
34

query I rowsort
SELECT col1 - + 82 + - col2 FROM tab0 AS cor0
----
-180
-48
-71

query I rowsort
SELECT + ( 50 ) - - + col1 AS col2 FROM tab2 AS cor0
----
101
117
127

query I rowsort
SELECT ALL 98 * 29 + + 50 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-304
1548
2597

query I rowsort
SELECT + - col1 - - 49 + + + 35 FROM tab1 AS cor0
----
37
70
79

query I rowsort
SELECT col1 - - 54 FROM tab0 cor0
----
135
55
75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT + col2 DIV + + 21 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-517
SELECT + col2 / + + 21 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL MIN( - 50 ) * + + CAST( NULL AS SIGNED ) / + MAX( ALL 34 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL MIN ( - 50 ) * + + CAST ( NULL AS INTEGER ) / + MAX ( ALL 34 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 2 * col0 + - 6 + + col2 FROM tab1 AS cor0
----
-117
-12
-120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-521
SELECT DISTINCT COUNT( * ) AS col1, - 99 * + 9 + + ( + 42 ) DIV MIN( - 92 ) AS col2 FROM tab2 AS cor0
----
3
-891

skipif mysql # not compatible
query II rowsort label-521
SELECT DISTINCT COUNT ( * ) AS col1, - 99 * + 9 + + ( + 42 ) / MIN ( - 92 ) AS col2 FROM tab2 AS cor0
----
3
-891

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-522
SELECT ALL col2, CAST( NULL AS SIGNED ), + ( + col0 ) FROM tab1
----
9 values hashing to e16da2d2194968b4cfe4db03bcf4af08

skipif mysql # not compatible
query III rowsort label-522
SELECT ALL col2, CAST ( NULL AS INTEGER ), + ( + col0 ) FROM tab1
----
9 values hashing to e16da2d2194968b4cfe4db03bcf4af08

query I rowsort
SELECT ALL - col2 + ( + 29 ) FROM tab2 WHERE ( NOT ( NOT - col0 / + + col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL MIN( DISTINCT - 98 ) AS col2 FROM tab2, tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL MIN ( DISTINCT - 98 ) AS col2 FROM tab2, tab0 AS cor0
----
-98

query II rowsort
SELECT DISTINCT col2, 44 * - col0 FROM tab2
----
23
-2024
40
-2816
58
-3300

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

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

query II rowsort
SELECT - col1 AS col2, - col2 AS col1 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT - ( + ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 4 * + - col2 FROM tab0
----
188
396
40

query I rowsort
SELECT ALL 25 * - + col1 AS col2 FROM tab1
----
-1175
-125
-350

query II rowsort
SELECT ALL - 18, 45 * col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE col1 * 0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) * - 91 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) * - 91 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col2, + 45 * col0 * + - col1 * - + col2 - - col2 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

query I rowsort
SELECT DISTINCT - col0 + + - 51 * - col2 * - 11 FROM tab0 AS cor0
----
-26382
-55636
-5697

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT ALL 78 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE - - 45 < NULL
----

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

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

query I rowsort
SELECT ALL + col0 * 42 * - + 53 * ( + col0 ) - col2 AS col1 FROM tab1
----
-16082909
-18433574
-5789922

query I rowsort
SELECT col0 + + col2 + + col1 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL 76 * + col0 FROM tab2 AS cor0
----
3496
4864
5700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-545
SELECT DISTINCT + col0 DIV 14 + + 4 AS col1, 12 AS col1 FROM tab1 cor0
----
10
12
7
12

skipif mysql # not compatible
query II rowsort label-545
SELECT DISTINCT + col0 / 14 + + 4 AS col1, 12 AS col1 FROM tab1 cor0
----
10
12
7
12

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

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

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

query II rowsort
SELECT ( + col1 ) AS col0, - col2 * + col2 - + col2 FROM tab1 AS cor0
----
14
-9312
47
-4692
5
-3540

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-550
SELECT + - col0 DIV - - 50 AS col0, col0 - + 81 * + + col1 AS col0 FROM tab0 cor0
----
-1
-1614
-1
16
0
-6546

skipif mysql # not compatible
query II rowsort label-550
SELECT + - col0 / - - 50 AS col0, col0 - + 81 * + + col1 AS col0 FROM tab0 cor0
----
-1
-1614
-1
16
0
-6546

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 97 * MIN( ALL - col0 ) FROM tab2 AS cor0
----
-7275

skipif mysql # not compatible
query I rowsort label-551
SELECT + 97 * MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * 72 * + - col2 col0 FROM tab0
----
-247032
-520344
-52560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT + 87 * + - COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + 87 * + - COUNT ( * ) FROM tab0
----
-261

query I rowsort
SELECT 21 + 76 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 WHERE NULL = NULL
----

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

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

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

query I rowsort
SELECT ALL col0 + + col1 + 55 AS col0 FROM tab0
----
151
153
163

query I rowsort
SELECT DISTINCT - 60 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-4337
-485
-774

query I rowsort
SELECT - - col2 * + 60 + + + col0 AS col0 FROM tab2 AS cor0
----
1426
2464
3555

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT ALL 6 * - - COUNT( * ), + 85 AS col0 FROM tab1 AS cor0
----
18
85

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL 6 * - - COUNT ( * ), + 85 AS col0 FROM tab1 AS cor0
----
18
85

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL MAX( 32 ) + SUM( ALL + col1 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL MAX ( 32 ) + SUM ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT + - 55 + + - COUNT( * ) + + + MAX( + - col2 ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-565
SELECT + - 55 + + - COUNT ( * ) + + + MAX ( + - col2 ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-77

query I rowsort
SELECT - col1 + + + 38 * - 96 AS col0 FROM tab2 cor0
----
-3699
-3715
-3725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT MIN( col2 ) + 56 DIV 91 AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-567
SELECT MIN ( col2 ) + 56 / 91 AS col2 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col2 col0 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 * + ( col0 ) + - col1 col2 FROM tab0 AS cor0
----
15
1134
87
1806
97
96

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

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

query I rowsort
SELECT ALL - col1 + + - 73 AS col1 FROM tab1
----
-120
-78
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col2 + + 22 col1, col1 FROM tab1
----
-3459
5
-4602
47
-9194
14

query I rowsort
SELECT ALL 61 * - ( + col2 ) FROM tab1
----
-3599
-4148
-5856

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 < + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * 96 AS col1 FROM tab2
----
4896
6432
7392

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

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

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

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

query I rowsort
SELECT + 7 * + col1 + + + 84 + - col1 + col0 * - col1 + - + col2 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-4070
-455
-693

query I rowsort
SELECT DISTINCT 99 * - col0 + col0 + - - 16 FROM tab0 AS cor0
----
-1454
-8510
-9490

query I rowsort
SELECT DISTINCT + + col0 * + 19 FROM tab2 AS cor0
----
1216
1425
874

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-584
SELECT ALL - CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) * - + col1 + + col0 + 97 FROM tab1 AS cor0
----
-2021
-48
157

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) * - + col1 + + col0 + 97 FROM tab1 AS cor0
----
-2021
-48
157

query I rowsort
SELECT ALL - col2 * + col0 * - 47 + - col1 FROM tab1 AS cor0
----
230098
235700
290789

query II rowsort
SELECT ALL - 58 AS col1, col0 FROM tab0 AS cor0
----
-58
15
-58
87
-58
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + 65 * + + 70 - + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
4559

skipif mysql # not compatible
query I rowsort label-588
SELECT + 65 * + + 70 - + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
4559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT 42 * CAST( + 5 AS SIGNED ) FROM tab1
----
210
210
210

skipif mysql # not compatible
query I rowsort label-589
SELECT 42 * CAST ( + 5 AS INTEGER ) FROM tab1
----
210
210
210

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT - col0 DIV 13 DIV 96 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - col0 / 13 / 96 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ALL col1 DIV + + col1 * - + 97 DIV + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL col1 / + + col1 * - + 97 / + col2 AS col1 FROM tab1
----
-1
-1
-1

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

skipif mysql # not compatible
query II rowsort label-592
SELECT + CAST ( + col1 AS INTEGER ) AS col0, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col2 + + + 12 col1 FROM tab1 AS cor0
----
4908
5027
6200

query I rowsort
SELECT ALL 5 + - col0 - col2 FROM tab0 cor0
----
-191
-57
-92

query I rowsort
SELECT + col1 + - 73 AS col1 FROM tab1
----
-26
-59
-68

query I rowsort
SELECT - col2 * 84 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT - 51 * + - 33 FROM tab2
----
1683
1683
1683

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

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

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

query I rowsort
SELECT ALL - col1 + - 73 FROM tab1 AS cor0
----
-120
-78
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT 85 + + col2 DIV - - 81 AS col1 FROM tab1 cor0
----
85
86

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT 85 + + col2 / - - 81 AS col1 FROM tab1 cor0
----
85
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT ALL - + CAST( + 40 AS SIGNED ) + - ( + + col2 ) FROM tab0 AS cor0
----
-139
-50
-87

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - + CAST ( + 40 AS INTEGER ) + - ( + + col2 ) FROM tab0 AS cor0
----
-139
-50
-87

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

query I rowsort
SELECT DISTINCT - 60 + - 5 * + ( col1 ) FROM tab0 AS cor0
----
-165
-465
-65

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

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

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

query I rowsort
SELECT DISTINCT 84 * + + 12 AS col0 FROM tab1
----
1008

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT MAX( ALL + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-613
SELECT MAX ( ALL + col2 ) col0 FROM tab0
----
99

query III rowsort
SELECT ALL 79, 5 * + 56 * + - col1 AS col2, + 59 AS col0 FROM tab2
----
9 values hashing to 566f67e9c40d7d72bc7027aae2c8f55f

query I rowsort
SELECT + 63 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
63
63
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + SUM( ALL + col0 ) * + - 27 AS col1 FROM tab0 cor0
----
-5373

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + SUM ( ALL + col0 ) * + - 27 AS col1 FROM tab0 cor0
----
-5373

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT - ( + + 29 ) * - COUNT( - 5 ) * - - 45 AS col2 FROM tab0 AS cor0
----
3915

skipif mysql # not compatible
query I rowsort label-618
SELECT - ( + + 29 ) * - COUNT ( - 5 ) * - - 45 AS col2 FROM tab0 AS cor0
----
3915

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

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT + 4 / COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE + + col1 BETWEEN 5 + - col0 AND 72
----
2

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 BETWEEN 5 + - col0 AND 72
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT MAX( ALL 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-623
SELECT MAX ( ALL 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

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

query I rowsort
SELECT ALL - + col0 * + ( ( + 85 ) ) AS col1 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT ALL + col2 + - - col0 + - 23 AS col0 FROM tab1 AS cor0
----
121
124
136

query I rowsort
SELECT - col2 + col0 + + 94 AS col0 FROM tab1
----
117
120
49

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + + COUNT( + 73 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + + COUNT ( + 73 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 78 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 78 AS col2 FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE col1 > col0
----
46
51
23
64
77
40

query I rowsort
SELECT 16 * + col1 + 49 FROM tab1
----
129
273
801

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT col2 DIV + 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT col2 / + 64 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-635
SELECT - 19 DIV - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-635
SELECT - 19 / - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 30 + - 90 AS col0 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT DISTINCT + COUNT( + 15 ) - ( COUNT( * ) ) * + 74 AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT + COUNT ( + 15 ) - ( COUNT ( * ) ) * + 74 AS col1 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT + 8 + SUM( col2 ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-638
SELECT + 8 + SUM ( col2 ) FROM tab2
----
129

query I rowsort
SELECT 26 * + col2 + - col2 * + col0 FROM tab2
----
-1520
-2842
-460

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col0 * + 4 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-641
SELECT ALL 20 DIV COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 20 / COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT + 9 * - 27 AS col0 FROM tab0
----
-243
-243
-243

query I rowsort
SELECT + 43 * col0 AS col1 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT 59 * - 50 FROM tab2
----
-2950
-2950
-2950

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * 97 - col0 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - COUNT( * ) * + MIN( + col1 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-647
SELECT - COUNT ( * ) * + MIN ( + col1 ) col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT + CAST( 74 AS SIGNED ) * + col0 FROM tab2
----
3404
4736
5550

skipif mysql # not compatible
query I rowsort label-648
SELECT + CAST ( 74 AS INTEGER ) * + col0 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ( - col1 ) * col2 + 95 * col1 FROM tab0
----
-4
1785
3888

query I rowsort
SELECT col2 * 83 + col0 AS col0 FROM tab1
----
4982
5735
8019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - ( + col0 ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - ( + col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT - col0 DIV + ( + col0 ) - 48 FROM tab2
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-652
SELECT - col0 / + ( + col0 ) - 48 FROM tab2
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 95 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= 53
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 29 NOT BETWEEN NULL AND ( + 8 + col2 * 31 )
----

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

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE - 70 IN ( + 96 * + col2 + + col1 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT DISTINCT - 2 + COUNT( ALL CAST( 66 AS SIGNED ) - col0 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - 2 + COUNT ( ALL CAST ( 66 AS INTEGER ) - col0 ) FROM tab1
----
1

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

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0 WHERE ( - col1 * col2 ) IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + MIN( ALL 95 ) AS col1 FROM tab2 AS cor0 WHERE col2 * col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + MIN ( ALL 95 ) AS col1 FROM tab2 AS cor0 WHERE col2 * col0 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 24 * 79 + col1 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT MAX( ALL col1 ) * 33 FROM tab2 AS cor0
----
2541

skipif mysql # not compatible
query I rowsort label-667
SELECT MAX ( ALL col1 ) * 33 FROM tab2 AS cor0
----
2541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 + + CAST( + 34 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 + + CAST ( + 34 AS INTEGER ) < NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( 20 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-670
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN ( NULL ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-670
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN ( NULL ) AND - col0
----

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

query I rowsort
SELECT ALL - 77 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2483
4273
981

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col1 IS NULL
----

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

query I rowsort
SELECT ALL + 69 + 61 * + 78 AS col1 FROM tab0 cor0
----
4827
4827
4827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT DISTINCT + col1 * + col2 + CAST( col1 AS SIGNED ) FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + col1 * + col2 + CAST ( col1 AS INTEGER ) FROM tab0
----
100
231
3888

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

query I rowsort
SELECT DISTINCT col1 * + 28 FROM tab0
----
2268
28
588

query I rowsort
SELECT col0 + 31 + col2 * - col2 FROM tab0
----
-2163
-9673
18

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

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

query III rowsort
SELECT * FROM tab2 WHERE col1 <> ( col2 - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - col2 + 5 FROM tab0
----
-27
3
82

query I rowsort
SELECT + col2 + - - 52 * col2 FROM tab1
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + SUM( - + 24 ) + - 64 AS col1 FROM tab2 cor0
----
-136

skipif mysql # not compatible
query I rowsort label-686
SELECT + SUM ( - + 24 ) + - 64 AS col1 FROM tab2 cor0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + 97 + + + COUNT( * ) AS col2 FROM tab1 cor0
----
100

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + 97 + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT * FROM tab2 cor0 WHERE NULL <= CAST( - 73 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-688
SELECT * FROM tab2 cor0 WHERE NULL <= CAST ( - 73 AS INTEGER )
----

query I rowsort
SELECT ALL 90 * - col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 * 16 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - SUM( DISTINCT + - 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-693
SELECT - SUM ( DISTINCT + - 37 ) FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-694
SELECT ALL * FROM tab2 WHERE NOT ( - 38 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-694
SELECT ALL * FROM tab2 WHERE NOT ( - 38 ) = - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT DISTINCT + 94 + 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 + + col0 ) IS NULL
----
164

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

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

query I rowsort
SELECT ALL + ( 97 ) * + 83 + col2 * + col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
12947
13066
14239

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 77 IS NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT + - 60 DIV - + COUNT( * ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-701
SELECT + - 60 / - + COUNT ( * ) FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT ALL 22 DIV + MIN( DISTINCT 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 22 / + MIN ( DISTINCT 6 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 cor0 WHERE NOT + ( - 93 ) / - col0 >= ( col1 - + 1 )
----
10
47

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + ( + + col1 ) * col2 + 59
----

query II rowsort
SELECT DISTINCT ( - col2 ), col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 < - + col2
----

query I rowsort
SELECT ALL col1 * - 49 AS col1 FROM tab1
----
-2303
-245
-686

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT + + col0 * col0 + + - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
222
7569
9408

skipif mysql # not compatible
query I rowsort label-712
SELECT + + col0 * col0 + + - col2 / + col0 AS col0 FROM tab0 AS cor0
----
222
7569
9408

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - - 63 * 92 + - 58 * MAX( DISTINCT + 91 ) AS col1 FROM tab2 cor0
----
518

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - - 63 * 92 + - 58 * MAX ( DISTINCT + 91 ) AS col1 FROM tab2 cor0
----
518

query I rowsort
SELECT ALL + - ( - 4 ) * col2 + col2 FROM tab1 AS cor0
----
295
340
480

query I rowsort
SELECT 5 + + col1 FROM tab2 AS cor0
----
56
72
82

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

query I rowsort
SELECT DISTINCT col2 + + 99 AS col1 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( col0 * col1 * - col0 / - + col1 + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + col2 + 59 + + + col2 * + col1 FROM tab2 AS cor0
----
1232
3139
3945

query I rowsort
SELECT + - col1 + + + col2 * - - col0 - - + col0 FROM tab0 cor0
----
639
936
9699

query II rowsort
SELECT DISTINCT 50 + + + 79 AS col2, + col0 FROM tab0
----
129
15
129
87
129
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 90 col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT ALL 37 * col2 FROM tab2
----
1480
2146
851

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT COUNT( * ) * + 36 AS col2 FROM tab2 WHERE ( NULL > + col0 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-727
SELECT COUNT ( * ) * + 36 AS col2 FROM tab2 WHERE ( NULL > + col0 * + col1 )
----
0

query I rowsort
SELECT DISTINCT 93 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT DISTINCT 22 DIV 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 22 / 82 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + ( + COUNT ( * ) ) * 15 - + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
48

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 35 - + 85 AS col0 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT 49 - - - col2 FROM tab0 AS cor0
----
-50
2
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 34 * - 74 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL col1 DIV + 61 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL col1 / + 61 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE - col2 * + col0 * - col2 - + + ( + col2 ) * - col1 IS NOT NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT 44 + SUM( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - col1 IS NULL ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-741
SELECT 44 + SUM ( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - col1 IS NULL ) ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + MAX( ALL - - 31 ) * - 3 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-742
SELECT + MAX ( ALL - - 31 ) * - 3 FROM tab0 cor0
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - - COUNT( * ) FROM tab2 cor0 WHERE NOT 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - - COUNT ( * ) FROM tab2 cor0 WHERE NOT 13 IS NOT NULL
----
0

query I rowsort
SELECT + - col1 * + 80 + + ( - - 33 ) FROM tab0 AS cor0
----
-1647
-47
-6447

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN - ( col1 ) AND 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 AS col2 FROM tab1
----
3481
4624
9216

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - - - col1 * + - 65 FROM tab0 cor0 WHERE col2 * col1 < + - col1 + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL SUM( - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL SUM ( - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 80 )
----
NULL

query I rowsort
SELECT DISTINCT + - 94 + col1 AS col1 FROM tab0 AS cor0
----
-13
-73
-93

query I rowsort
SELECT col2 + - + col1 + + 32 AS col1 FROM tab0
----
-2
130
21

query I rowsort
SELECT + 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE + 6 * col0 / - - 46 > - 5
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2, - 81 col2 FROM tab0 AS cor0
----
9
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-763
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2, - 81 col2 FROM tab0 AS cor0
----
9
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-764
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-764
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 38 + - 70 + - col1 * + 67 AS col1 FROM tab1 AS cor0
----
-1046
-3257
-443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE CAST( - 60 AS SIGNED ) <= ( - col1 + - + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE CAST ( - 60 AS INTEGER ) <= ( - col1 + - + col1 )
----
2

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE 30 = col2
----

query I rowsort
SELECT ALL - col2 + 83 - + ( + col2 ) AS col2 FROM tab0 cor0
----
-11
-115
63

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT SUM( + col0 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT SUM ( + col0 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL - ( + 68 ) - - col2 FROM tab2 AS cor0
----
-10
-28
-45

query I rowsort
SELECT - col1 + - col1 - + col2 * - + 79 AS col0 FROM tab0
----
3551
748
7819

query I rowsort
SELECT + col0 + + + 42 + - 43 AS col2 FROM tab0
----
14
86
96

query I rowsort
SELECT 75 * 36 * - col1 + + col0 AS col2 FROM tab1
----
-126809
-13415
-37749

query I rowsort
SELECT ALL col1 * + 22 FROM tab1
----
1034
110
308

query I rowsort
SELECT ALL + - col0 * - 54 FROM tab0 AS cor0
----
4698
5238
810

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col2 >= ( 81 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL 32 * MAX( ALL + col0 ) AS col0 FROM tab1
----
2912

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 32 * MAX ( ALL + col0 ) AS col0 FROM tab1
----
2912

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

query I rowsort
SELECT + 99 * - 33 AS col2 FROM tab0
----
-3267
-3267
-3267

query I rowsort
SELECT ALL - 19 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

query II rowsort
SELECT - col0 AS col0, 49 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + + 87 * - 77 / + - col2 + + 76 * col2 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-784
SELECT CAST ( + + 87 AS INTEGER ) AS col0 FROM tab0
----
87
87
87

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

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

query I rowsort
SELECT - col1 * - col2 * - 66 + + col2 AS col0 FROM tab1
----
-19411
-210868
-88608

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

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

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

query I rowsort
SELECT DISTINCT - + col0 + 0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

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

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

query I rowsort
SELECT + 27 * col2 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ( - col0 ) DIV 10 col2 FROM tab0 AS cor0
----
-1
-8
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-792
SELECT ( - col0 ) / 10 col2 FROM tab0 AS cor0
----
-1
-8
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + ( + col2 ) * + 61 * - ( + col1 ) - - col1 * + col1 col0 FROM tab0 AS cor0
----
13272
238869
6041

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

skipif mysql # not compatible
query I rowsort label-794
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query II rowsort
SELECT ALL col0, - 92 AS col0 FROM tab1
----
51
-92
85
-92
91
-92

query II rowsort
SELECT ALL 0, col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT DISTINCT + 56 DIV col2 * col1 + col1 - - col1 * + col2 FROM tab0 AS cor0
----
100
336
3969

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + 56 / col2 * col1 + col1 - - col1 * + col2 FROM tab0 AS cor0
----
100
336
3969

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT + - 65 * 26 * col1 DIV col2 + - 17 FROM tab1 AS cor0
----
-1185
-160
-263

skipif mysql # not compatible
query I rowsort label-800
SELECT + - 65 * 26 * col1 / col2 + - 17 FROM tab1 AS cor0
----
-1185
-160
-263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT DISTINCT - SUM( DISTINCT 21 ) + CAST( AVG ( - 31 ) AS SIGNED ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT - SUM ( DISTINCT 21 ) + CAST ( AVG ( - 31 ) AS INTEGER ) FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - col1 + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT ALL - 62 * + col1 - - + col1 FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT - col0 + - 11 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-102
-62
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <= + ( + 66 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT - + SUM( - - ( - + col2 ) ) DIV + MIN( - col0 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-808
SELECT - + SUM ( - - ( - + col2 ) ) / + MIN ( - col0 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL - 2 * + + col2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT + - col0 DIV + 56 + + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-810
SELECT + - col0 / + 56 + + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

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

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

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

query I rowsort
SELECT + - col1 / - + 93 * + 68 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-814
SELECT ALL COUNT ( * ), + 8 col1 FROM tab1
----
3
8

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

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - CAST ( 16 AS INTEGER ) FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL ( + 60 ) * 44 FROM tab2 AS cor0
----
2640
2640
2640

query I rowsort
SELECT - 64 * - - 87 FROM tab0 AS cor0
----
-5568
-5568
-5568

query I rowsort
SELECT - + col1 * + 63 FROM tab0 AS cor0
----
-1323
-5103
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * 38 * col1 * - col2 * + ( + col1 ) col0 FROM tab2 AS cor0
----
-168222276
-666893920
-732137944

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT ALL 49 DIV COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL 49 / COUNT ( * ) FROM tab0 AS cor0
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL - col2 DIV - 1 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - col2 / - 1 AS col2 FROM tab0 AS cor0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL COUNT( * ) * - MAX( col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL COUNT ( * ) * - MAX ( col0 ) FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-826
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-826
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-828
SELECT + col1 AS col0, CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab2
----
9 values hashing to c5e30744665dd7cc427e3888bee2df4a

skipif mysql # not compatible
query III rowsort label-828
SELECT + col1 AS col0, CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2
----
9 values hashing to c5e30744665dd7cc427e3888bee2df4a

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab2
----
-51

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

query I rowsort
SELECT DISTINCT - - col1 + + col2 - 91 AS col1 FROM tab0 AS cor0
----
-60
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT CAST( - col2 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-832
SELECT CAST ( - col2 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT - MIN( - + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - MIN ( - + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
12

query I rowsort
SELECT - 61 FROM tab1 WHERE NULL <> + col2
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 * - col2 AND ( 46 * col2 + + + col2 )
----
46
64
75

query I rowsort
SELECT col1 - - - 96 * - 64 AS col1 FROM tab1 AS cor0
----
6149
6158
6191

query I rowsort
SELECT - 31 - - col1 AS col0 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - - SUM( DISTINCT ( - col2 ) ) + 66 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - - SUM ( DISTINCT ( - col2 ) ) + 66 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL + 60 * + 59 - col0 - - 49 + - 59 * + - col0 * - col1 AS col0 FROM tab0
----
-104291
-2231
-68111

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 75 + COUNT( * ) + - 95 + - + SUM( ALL col0 ) * 10 col2 FROM tab2
----
-1867

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT 75 + COUNT ( * ) + - 95 + - + SUM ( ALL col0 ) * 10 col2 FROM tab2
----
-1867

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <> + ( + - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT + col0 * 43 + - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
1927
2675
3158

skipif mysql # not compatible
query I rowsort label-842
SELECT + col0 * 43 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
1927
2675
3158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT ALL 93 DIV - 48 - - SUM( col1 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL 93 / - 48 - - SUM ( col1 ) FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT COUNT( * ) - + - 54 AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT COUNT ( * ) - + - 54 AS col0 FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 10 ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT COUNT( * ) * 62 AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-846
SELECT COUNT ( * ) * 62 AS col0 FROM tab1
----
186

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-848
SELECT + + col0 DIV col1 DIV - col0, CAST( 47 AS SIGNED ) AS col1 FROM tab1 cor0
----
0
47
0
47
0
47

skipif mysql # not compatible
query II rowsort label-848
SELECT + + col0 / col1 / - col0, CAST ( 47 AS INTEGER ) AS col1 FROM tab1 cor0
----
0
47
0
47
0
47

query I rowsort
SELECT DISTINCT - + 68 * 36 * - 89 FROM tab2 AS cor0
----
217872

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 48 NOT IN ( col0 )
----

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

query I rowsort
SELECT col0 * 3 AS col1 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT DISTINCT - 51 + - col1 FROM tab2 AS cor0
----
-102
-118
-128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT - col1 AS col1, + col2 DIV + col1 FROM tab2 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) IS NOT NULL )
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - col1 AS col1, + col2 / + col1 FROM tab2 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-51
0
-67
0
-77
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-856
SELECT + col1 * 53 DIV - 20 + - col0 * + 66 AS col0, col2 * + col2 AS col0 FROM tab1
----
-3403
9216
-5623
3481
-6130
4624

skipif mysql # not compatible
query II rowsort label-856
SELECT + col1 * 53 / - 20 + - col0 * + 66 AS col0, col2 * + col2 AS col0 FROM tab1
----
-3403
9216
-5623
3481
-6130
4624

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

query I rowsort
SELECT DISTINCT - ( + ( - ( - 15 ) ) ) AS col1 FROM tab2 WHERE col1 > ( - + 94 - - + col0 )
----
-15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col1 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL + - col0 + + - col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT + - ( - col1 ) * + - 97 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab2 AS cor0 WHERE 5 IS NOT NULL
----
1058
2560
4350

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

query I rowsort
SELECT ALL col1 + + - col2 - - ( 76 ) + 71 + - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
165
203
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT - 33 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
26
35
63

skipif mysql # not compatible
query I rowsort label-866
SELECT - 33 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
26
35
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT - 90 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-869
SELECT - 90 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 80 = + + 60
----

query I rowsort
SELECT DISTINCT - 98 * + col1 - - col1 - col2 * - col2 FROM tab2 WHERE NULL < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - 38 * + + SUM( DISTINCT - col1 ) FROM tab1
----
2508

skipif mysql # not compatible
query I rowsort label-873
SELECT - 38 * + + SUM ( DISTINCT - col1 ) FROM tab1
----
2508

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

query I rowsort
SELECT - ( + 88 ) AS col1 FROM tab2
----
-88
-88
-88

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT - MAX( 27 ) col2 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT DISTINCT - MAX ( 27 ) col2 FROM tab2
----
-27

query I rowsort
SELECT col0 * + 28 * + col0 FROM tab2
----
114688
157500
59248

query II rowsort
SELECT ALL - col0 * + - 23 + + 54, + 10 AS col1 FROM tab2 AS cor0
----
1112
10
1526
10
1779
10

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + + col0 col2 FROM tab2 cor0
----
106
124
135

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT + COUNT( * ) DIV + ( 65 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT + COUNT ( * ) / + ( 65 ) FROM tab0
----
0

query I rowsort
SELECT col2 + + col1 * + + col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - col0 + + 43 FROM tab2
----
-21
-3
-32

query I rowsort
SELECT + col1 * + - col0 + - col0 FROM tab1
----
-4368
-510
-765

query II rowsort
SELECT col2 + + 96 - col1 + + + col1 * - 91, 84 AS col0 FROM tab2
----
-4573
84
-6010
84
-6948
84

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MAX( 36 ) AS col0 FROM tab1, tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-891
SELECT + MAX ( 36 ) AS col0 FROM tab1, tab0 AS cor0
----
36

query I rowsort
SELECT - 87 * col1 * - col2 + + 19 + - col0 AS col0 FROM tab2 AS cor0
----
102024
267915
338026

query I rowsort
SELECT 91 + + + 56 FROM tab0 AS cor0
----
147
147
147

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

query I rowsort
SELECT 52 * + - col2 AS col1 FROM tab0
----
-2444
-5148
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT + 22 * 27 FROM tab1
----
594
594
594

query I rowsort
SELECT col0 * - - col2 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - - col2 - col2 AS col0 FROM tab1 cor0
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-904
SELECT - CAST( NULL AS DECIMAL ) * - 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-904
SELECT - CAST ( NULL AS REAL ) * - 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT - 67 * 81 FROM tab2 AS cor0
----
-5427
-5427
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - SUM( ALL - col2 ) FROM tab0 WHERE + col2 / 73 IS NOT NULL OR NOT NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-908
SELECT - SUM ( ALL - col2 ) FROM tab0 WHERE + col2 / 73 IS NOT NULL OR NOT NULL IS NULL
----
156

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-910
SELECT 85, 48 * + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
85
48

skipif mysql # not compatible
query II rowsort label-910
SELECT 85, 48 * + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
85
48

query II rowsort
SELECT 92 AS col0, 66 AS col2 FROM tab2
----
92
66
92
66
92
66

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

query II rowsort
SELECT DISTINCT - ( + col2 ) * - col2 * - + col2 AS col2, 47 AS col0 FROM tab1
----
-205379
47
-314432
47
-884736
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL + MIN( ( + 36 ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + MIN ( ( + 36 ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL - col1 / + 99 / + + 33 * + 54 + + + CAST( - 93 AS SIGNED ) col1 FROM tab0 WHERE ( NOT - 11 <= - - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-920
SELECT ALL - col1 / + 99 / + + 33 * + 54 + + + CAST ( - 93 AS INTEGER ) col1 FROM tab0 WHERE ( NOT - 11 <= - - col1 )
----

query I rowsort
SELECT + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query II rowsort
SELECT - + 80 * - 38 AS col2, + 96 FROM tab2 AS cor0
----
3040
96
3040
96
3040
96

query I rowsort
SELECT ALL col1 + + col0 + + col1 AS col0 FROM tab2 cor0
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 47 ) + + col0 col0 FROM tab0 AS cor0
----
-32
40
50

query II rowsort
SELECT - col2 + + col1, col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

query I rowsort
SELECT ALL + - col2 + - col0 * + 40 * col2 + - ( 57 ) AS col1 FROM tab0 AS cor0
----
-28304
-34867
-384276

query I rowsort
SELECT col1 + + col1 * col1 * - - ( col2 ) AS col0 FROM tab1
----
1480
150259
18830

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

query I rowsort
SELECT ALL + ( - 52 ) + + + 6 FROM tab0 WHERE NOT + col2 + - - col2 + + - ( - + col2 ) / + col2 + + 44 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL + COUNT( * ) FROM tab2 WHERE col0 <= + 39 * 48 * 22
----
3

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col0 <= + 39 * 48 * 22
----
3

query I rowsort
SELECT DISTINCT - 52 + - ( 80 ) + - - col0 FROM tab0 AS cor0
----
-117
-35
-45

query I rowsort
SELECT DISTINCT + - 66 + - + 90 * + col0 AS col0 FROM tab2 AS cor0
----
-4206
-5826
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + 90 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + 90 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-934
SELECT + AVG ( ALL + col1 ) FROM tab2 WHERE - 55 * + + 65 * - CAST( - col0 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT + AVG ( ALL + col1 ) FROM tab2 WHERE - 55 * + + 65 * - CAST ( - col0 AS REAL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - + 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

query I rowsort
SELECT ALL AVG ( + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL + - COUNT( * ) * + 69 FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + - COUNT ( * ) * + 69 FROM tab2 cor0
----
-207

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

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

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

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NOT - + ( + + col2 ) * + 70 / col0 IS NOT NULL
----

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

query II rowsort
SELECT + col2, col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - - SUM( ALL + 84 ) AS col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-947
SELECT - - SUM ( ALL + 84 ) AS col0 FROM tab2 AS cor0
----
252

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

query I rowsort
SELECT - col2 * + - col2 + + col1 FROM tab1
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - - 57 + + + COUNT( ALL + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - - 57 + + + COUNT ( ALL + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + 23 / - SUM( ALL col2 ) FROM tab0 WHERE ( + - 14 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + 23 / - SUM ( ALL col2 ) FROM tab0 WHERE ( + - 14 ) IS NULL
----
NULL

query I rowsort
SELECT + ( 34 ) FROM tab1
----
34
34
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL CAST( col0 AS SIGNED ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
237224
38
260437
38
59869
38

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL CAST ( col0 AS INTEGER ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
237224
38
260437
38
59869
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - 35 + 50 * - ( + 22 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
-1132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-956
SELECT DISTINCT - 35 + 50 * - ( + 22 ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-1132

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE + 63 * - col0 IS NOT NULL
----
10
47
99

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

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

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

query I rowsort
SELECT col1 + + - ( - 33 ) AS col2 FROM tab0
----
114
34
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT + CAST( - + SUM( - 71 ) AS SIGNED ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT COUNT( + - col0 ) + - 91 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( + - col0 ) + - 91 FROM tab1
----
-88

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <> - - 13 * - - col0
----

query I rowsort
SELECT + - 14 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, + 35 * - 13 FROM tab0 AS cor0
----
-15
-455
-87
-455
-97
-455

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 21 * - 78 col0, col2 AS col0 FROM tab0 AS cor0
----
-142506
10
-158886
99
-24570
47

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

query II rowsort
SELECT DISTINCT - - col1 * col1 + - - 0 AS col0, - col1 FROM tab1 AS cor0
----
196
-14
2209
-47
25
-5

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

query I rowsort
SELECT DISTINCT 33 * - - ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-66
2626
683

query II rowsort
SELECT col1 * col0 AS col2, col1 * - 13 FROM tab2
----
2346
-663
4928
-1001
5025
-871

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + 75 ) / - - col0 + col1 * + - col2 NOT IN ( + col0, 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT - MIN( + 50 ) FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-978
SELECT - MIN ( + 50 ) FROM tab0
----
-50

query I rowsort
SELECT col1 * - - 77 FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL col0 * - CAST( - - col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL col0 * - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 WHERE + col2 + + 10 BETWEEN NULL AND 74 * - 86
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL - MAX( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 39 >= - 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - MAX ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 39 >= - 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + col2 + - 70 AS col0 FROM tab0 AS cor0
----
-23
-60
29

query I rowsort
SELECT DISTINCT + ( - - col1 ) + - + 69 FROM tab0 cor0
----
-48
-68
12

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

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

query I rowsort
SELECT DISTINCT + 9 / + + 29 * - col2 + col2 AS col0 FROM tab0 WHERE NOT + ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 * + col1 * col2 FROM tab0 AS cor0
----
-308286
-4389
-98

query I rowsort
SELECT ALL + 57 + - 33 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT - 15 + - 28 FROM tab0 AS cor0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > col2 / + - 65 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - + SUM( - col0 ) + 37 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - + SUM ( - col0 ) + 37 FROM tab2 AS cor0
----
222

query I rowsort
SELECT ( - - col2 ) + - col1 + - - 41 - - col0 * + - 12 * + 89 FROM tab2 AS cor0
----
-49115
-68348
-80068

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-996
SELECT - 46 AS col0, ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
-46
NULL
-46
NULL
-46
NULL

skipif mysql # not compatible
query II rowsort label-996
SELECT - 46 AS col0, ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
-46
NULL
-46
NULL
-46
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL 58 * - - COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL 58 * - - COUNT ( * ) AS col0 FROM tab1
----
174

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL - SUM( DISTINCT - col1 ) AS col1, SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
195
121

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL - SUM ( DISTINCT - col1 ) AS col1, SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
195
121

query I rowsort
SELECT DISTINCT + 3 - + ( + 70 ) AS col1 FROM tab1 AS cor0
----
-67

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

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

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

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

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

query I rowsort
SELECT ALL col1 * + ( + col0 ) - 95 FROM tab1 AS cor0
----
330
4182
619

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT - - 34 * + + 85, MAX( DISTINCT + col1 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2890
84

skipif mysql # not compatible
query II rowsort label-1009
SELECT - - 34 * + + 85, MAX ( DISTINCT + col1 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2890
84

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

query I rowsort
SELECT + ( + 4 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 63, 89, - col0 * - col2 * - + col2 )
----

query I rowsort
SELECT col1 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

query II rowsort
SELECT + 21, + col0 * + 24 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
21
2088
21
2328
21
360

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

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

query I rowsort
SELECT ALL - col2 * + 80 * + - col0 AS col1 FROM tab1 WHERE NOT NULL >= - col2 * - col0
----

query II rowsort
SELECT ALL col0, - 42 FROM tab0
----
15
-42
87
-42
97
-42

query I rowsort
SELECT col0 - - col0 FROM tab2 WHERE NOT + col2 IS NULL
----
128
150
92

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT + MIN ( 39 ) AS col1 FROM tab1
----
39

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 cor0 WHERE 27 + + 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE 27 + + 89 IS NULL
----
0

query II rowsort
SELECT ALL col1, - col1 + - 35 + + + col2 FROM tab1 cor0
----
14
47
47
-14
5
19

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

query I rowsort
SELECT + + 47 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL SUM( ALL + col2 ) + MAX( - col0 ) AS col1 FROM tab0 WHERE + - col0 + - col2 > + + 59 * ( + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL SUM ( ALL + col2 ) + MAX ( - col0 ) AS col1 FROM tab0 WHERE + - col0 + - col2 > + + 59 * ( + + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + MIN( + col1 ) * COUNT( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + MIN ( + col1 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col0 AND NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col0 + - + 35 * + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT ALL + col0 + + + col0 DIV col2 AS col0 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + col0 + + + col0 / col2 AS col0 FROM tab2 AS cor0
----
48
65
76

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

query I rowsort
SELECT DISTINCT col2 * + - ( 84 ) * + - 25 + + col0 * col2 * col0 - + col2 AS col1 FROM tab0 cor0
----
109228
1139292
96680

query I rowsort
SELECT + col2 * - col1 - + + 91 FROM tab0 AS cor0
----
-190
-301
-3898

query I rowsort
SELECT ALL + col0 - - + col0 * + + col1 + + col1 AS col0 FROM tab2
----
2443
5069
5167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ALL - COUNT( * ) * + - CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - COUNT ( * ) * + - CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 * ( 25 ) FROM tab0
----
2025
25
525

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + - SUM( 71 ) AS col2 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1040
SELECT + - SUM ( 71 ) AS col2 FROM tab1 cor0
----
-213

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + ( col2 ) > + 24 + + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT - col2, + ( + - 41 ) * CAST( + ( - 87 ) AS SIGNED ) col0 FROM tab0
----
-10
3567
-47
3567
-99
3567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1043
SELECT - col2, + ( + - 41 ) * CAST ( + ( - 87 ) AS INTEGER ) col0 FROM tab0
----
-10
3567
-47
3567
-99
3567

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 35 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 80 + + ( col0 ) FROM tab2 cor0
----
4126
5435
6224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT 3 * - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-141
-297
-30

skipif mysql # not compatible
query I rowsort label-1048
SELECT 3 * - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-141
-297
-30

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

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

query I rowsort
SELECT + + 3 * + 6 FROM tab1 AS cor0
----
18
18
18

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

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

query I rowsort
SELECT + 94 + col0 FROM tab1
----
145
179
185

query I rowsort
SELECT - 73 + - col1 FROM tab1
----
-120
-78
-87

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT ALL - - CAST( 30 AS SIGNED ) + COUNT( - + col2 ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - - CAST ( 30 AS INTEGER ) + COUNT ( - + col2 ) FROM tab2 cor0
----
33

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

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

query II rowsort
SELECT ALL 67, + col2 AS col1 FROM tab2
----
67
23
67
40
67
58

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 * - - ( + 55 ) FROM tab0
----
-4785
-5335
-825

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

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

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

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

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

query I rowsort
SELECT - col0 + + ( + 3 ) AS col2 FROM tab0 AS cor0
----
-12
-84
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT - col0 DIV + col0 + + + 46 + + 80 - - - 10 AS col1 FROM tab2 AS cor0
----
115
115
115

skipif mysql # not compatible
query I rowsort label-1066
SELECT - col0 / + col0 + + + 46 + + 80 - - - 10 AS col1 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + + CAST( NULL AS DECIMAL ) + - col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-1067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + + CAST ( NULL AS REAL ) + - col1 = NULL
----

query I rowsort
SELECT DISTINCT col2 - - - col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT ALL + + 18 + col1 - + + col1 + - col1 * 77 DIV + ( + + 58 ) AS col2 FROM tab2 AS cor0
----
-49
-70
-84

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + + 18 + col1 - + + col1 + - col1 * 77 / + ( + + 58 ) AS col2 FROM tab2 AS cor0
----
-49
-70
-84

query I rowsort
SELECT ALL col2 - 22 FROM tab0 AS cor0
----
-12
25
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - + + 33 col1 FROM tab1
----
-8
163
2176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT - - col0 + + 34 - + - CAST( 27 AS SIGNED ) - + - col0 * col0 AS col0 FROM tab1 WHERE - col1 <= - col0
----

skipif mysql # not compatible
query I rowsort label-1073
SELECT - - col0 + + 34 - + - CAST ( 27 AS INTEGER ) - + - col0 * col0 AS col0 FROM tab1 WHERE - col1 <= - col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT + 0 * + 27 DIV col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT + 0 * + 27 / col1 FROM tab1
----
0

query I rowsort
SELECT - 19 * + + col0 AS col2 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT col2 * - + 34 FROM tab2
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT DISTINCT - 84 * - 51 col2, + MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
4284
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1079
SELECT DISTINCT - 84 * - 51 col2, + MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
4284
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL SUM( DISTINCT 97 ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1080
SELECT ALL SUM ( DISTINCT 97 ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
291

query I rowsort
SELECT ALL - col2 * - 5 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - 28 + + col0 IS NULL
----

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

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

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

query II rowsort
SELECT + 65 * col1 * - col1, + col0 - - col1 AS col1 FROM tab2 AS cor0
----
-169065
97
-291785
142
-385385
141

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT DISTINCT - 35 + + col2 DIV + ( - - col2 ) FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - 35 + + col2 / + ( - - col2 ) FROM tab2 cor0
----
-34

query II rowsort
SELECT ALL + + 55 AS col1, - 85 FROM tab0 AS cor0
----
55
-85
55
-85
55
-85

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT + SUM( ALL + + 15 ) col1 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT DISTINCT + SUM ( ALL + + 15 ) col1 FROM tab0
----
45

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

query III rowsort
SELECT * FROM tab2 WHERE - 91 BETWEEN ( + 31 ) AND ( NULL )
----

query I rowsort
SELECT ALL ( - 28 ) FROM tab2
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1096
SELECT * FROM tab1 WHERE 72 * + 91 IN ( + + col0 + - col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1096
SELECT * FROM tab1 WHERE 72 * + 91 IN ( + + col0 + - col2, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE col0 * 40 + + 5 + - - 1 IS NOT NULL
----
15
87
97

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

query II rowsort
SELECT ALL 39 AS col0, + col2 AS col0 FROM tab0
----
39
10
39
47
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT + COUNT( * ) + - 86 AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + COUNT ( * ) + - 86 AS col2 FROM tab2
----
-83

query I rowsort
SELECT + col1 * - - col1 + + + 69 + col0 * - 65 AS col2 FROM tab0
----
-5145
-6235
5655

query I rowsort
SELECT DISTINCT - col1 + + + col0 * + 47 AS col2 FROM tab2 AS cor0
----
2111
2931
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + COUNT( * ) + - - SUM( 98 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + COUNT ( * ) + - - SUM ( 98 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - - ( col2 ) * + col0 <> + - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1105
SELECT ALL MIN ( + 77 ) col2 FROM tab0 AS cor0
----
77

query II rowsort
SELECT ALL - col1 + + 40 AS col2, + col2 * - 75 * - col0 + + col2 * - col0 FROM tab1 AS cor0
----
-7
457912
26
362304
35
371110

query I rowsort
SELECT - col2 + + + 71 FROM tab2 AS cor0
----
13
31
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - MIN( DISTINCT + col1 ) * 51 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - MIN ( DISTINCT + col1 ) * 51 FROM tab0 cor0
----
-51

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

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

query II rowsort
SELECT DISTINCT - 30, ( - 49 ) AS col1 FROM tab2
----
-30
-49

query I rowsort
SELECT ALL + 39 * - + col2 AS col1 FROM tab0
----
-1833
-3861
-390

query II rowsort
SELECT col2, - ( col1 ) FROM tab0
----
10
-21
47
-81
99
-1

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

skipif mysql # not compatible
query I rowsort label-1114
SELECT + CAST ( - 80 AS INTEGER ) FROM tab2
----
-80
-80
-80

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

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

query I rowsort
SELECT + 8 * + + 94 * - col2 * 89 * 58 FROM tab0 cor0
----
-182445728
-384300576
-38818240

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1119
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + 5 + CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1119
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + 5 + CAST ( col1 AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + + col0 col0 FROM tab0
----
103
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL MIN( 17 ) + - ( + 31 + + COUNT( * ) ) * + MAX( col2 ) AS col2 FROM tab1
----
-3247

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL MIN ( 17 ) + - ( + 31 + + COUNT ( * ) ) * + MAX ( col2 ) AS col2 FROM tab1
----
-3247

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

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

query I rowsort
SELECT - 27 FROM tab2 WHERE NOT ( NULL ) >= ( - 69 )
----

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

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

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col2 * - 79 <> ( - ( - 38 ) ) + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + COUNT( * ) + MAX( ALL + ( col1 ) ) AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) + MAX ( ALL + ( col1 ) ) AS col2 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT + 58 + - col0 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 58 + - col0 IN ( + col1 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * + 33 ) IN ( + 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 57 * col1 AS col2 FROM tab1
----
2679
285
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT CAST( + AVG ( ( + 67 ) ) AS SIGNED ) / COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 18 ) * 22 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT CAST ( + AVG ( ( + 67 ) ) AS INTEGER ) / COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 18 ) * 22 = NULL
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 WHERE ( col1 ) >= - 43
----
92

query I rowsort
SELECT DISTINCT + 98 * col2 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - COUNT( * ) - - 28 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - COUNT ( * ) - - 28 AS col0 FROM tab2
----
25

query I rowsort
SELECT 43 - col1 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT col1 * - ( 28 ) - + 58 FROM tab1
----
-1374
-198
-450

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( * ) * 19 AS col0 FROM tab0
----
57

query I rowsort
SELECT col1 + ( + 46 ) AS col2 FROM tab0
----
127
47
67

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

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

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

query I rowsort
SELECT DISTINCT - 28 FROM tab2 WHERE col1 <= ( 61 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL < - 83 - - 45
----
0

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL < - 83 - - 45
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE 50 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 WHERE NOT col0 + - 0 / - col1 > + 77 - col0 * col1
----

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1 WHERE NOT - 27 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + MAX( DISTINCT - 74 ) AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1148
SELECT + MAX ( DISTINCT - 74 ) AS col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - MAX( DISTINCT col1 ) FROM tab0 WHERE ( NULL ) < ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - MAX ( DISTINCT col1 ) FROM tab0 WHERE ( NULL ) < ( 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT + ( + col1 ) * - col0 FROM tab1 WHERE NOT - 46 <= CAST( NULL AS SIGNED ) * + 93
----

skipif mysql # not compatible
query I rowsort label-1150
SELECT + ( + col1 ) * - col0 FROM tab1 WHERE NOT - 46 <= CAST ( NULL AS INTEGER ) * + 93
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN ( 58 ) - 79 AND NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1154
SELECT ( COUNT ( * ) ) / 14 col1 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT col0 - 75 AS col0 FROM tab0 AS cor0
----
-60
12
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT ALL ( col0 ) + 37 AS col1 FROM tab2 AS cor0
----
101
112
83

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + 51 / + ( 33 * 67 ) - ( col1 ) FROM tab2 AS cor0
----
-51
-67
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT ALL + col2 DIV + col0 - col0 * col1 FROM tab1
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + col2 / + col0 - col0 * col1 FROM tab1
----
-425
-4277
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( * ) + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
18

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( * ) + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
18

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

query I rowsort
SELECT ALL + col0 + 75 * 63 FROM tab2 AS cor0
----
4771
4789
4800

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 60 col0 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 44 * SUM( + col1 ) FROM tab2 AS cor0
----
-8580

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 44 * SUM ( + col1 ) FROM tab2 AS cor0
----
-8580

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT ( MIN ( ALL col0 ) ) FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT col1 * 84 FROM tab0 AS cor0 WHERE NOT + 8 + 62 * + col2 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT + CAST( - col2 AS SIGNED ) * 97 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-2231
-3880
-5626

skipif mysql # not compatible
query I rowsort label-1172
SELECT + CAST ( - col2 AS INTEGER ) * 97 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-2231
-3880
-5626

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 72 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT + 22 * + - COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT + 22 * + - COUNT ( * ) FROM tab2
----
-66

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

query I rowsort
SELECT ALL - 29 * col2 AS col0 FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT + col0 * 76 AS col2 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 43 * col2 BETWEEN col2 AND NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - 14 FROM tab2 cor0
----
-322
-560
-812

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 + + 27 BETWEEN - col0 AND col0
----
51
14
96

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT + 98 + - - MIN( ALL + - col0 ) + ( + MIN( ALL + col0 ) ) DIV 90 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 98 + - - MIN ( ALL + - col0 ) + ( + MIN ( ALL + col0 ) ) / 90 AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - MIN( ALL 10 ) FROM tab2 WHERE NOT + - col0 >= - col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT - MIN ( ALL 10 ) FROM tab2 WHERE NOT + - col0 >= - col0 * col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - + col1 + 79 + 81 * - col1 FROM tab1 AS cor0
----
-272
-3707
-973

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

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

skipif mysql # not compatible
query II rowsort label-1188
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

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

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

query I rowsort
SELECT col2 * - 96 AS col1 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT - 8 + 52 AS col1 FROM tab0 WHERE - 15 IS NOT NULL
----
44
44
44

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

query I rowsort
SELECT + col2 + col0 + 92 * - col1 AS col1 FROM tab2
----
-4623
-6031
-6980

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT 63 * - - COUNT( * ) AS col2 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT 63 * - - COUNT ( * ) AS col2 FROM tab2
----
189

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

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

query I rowsort
SELECT - col0 / col2 AS col2 FROM tab2 cor0 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1198
SELECT DISTINCT - + col2 + 21 AS col2, - CAST( 5 AS SIGNED ) FROM tab2 AS cor0
----
-19
-5
-2
-5
-37
-5

skipif mysql # not compatible
query II rowsort label-1198
SELECT DISTINCT - + col2 + 21 AS col2, - CAST ( 5 AS INTEGER ) FROM tab2 AS cor0
----
-19
-5
-2
-5
-37
-5

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

query I rowsort
SELECT ALL col1 - + 13 AS col0 FROM tab2
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + + COUNT( ALL 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1201
SELECT + + COUNT ( ALL 6 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT - COUNT( * ) + - SUM( - 33 ) AS col2 FROM tab0 WHERE ( NULL ) = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 33 ) AS col2 FROM tab0 WHERE ( NULL ) = col0
----
NULL

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

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

query I rowsort
SELECT ( + 34 ) AS col0 FROM tab1 cor0
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 79 * + + col0 / - + 50 + - + col2 + col0 * + ( col1 ) ) NOT BETWEEN - col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - MAX( DISTINCT 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-1207
SELECT - MAX ( DISTINCT 67 ) FROM tab1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1208
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL + CAST ( NULL AS REAL ) AS col0, COUNT ( * ) FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1209
SELECT 29, COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1209
SELECT 29, COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
29
NULL

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

skipif mysql # not compatible
query II rowsort label-1210
SELECT DISTINCT - col2 AS col0, col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 22 ) col2 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT DISTINCT + 8 DIV - - SUM( 54 ) + 46 AS col2 FROM tab2 AS cor0 WHERE + 48 * - col1 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + 8 / - - SUM ( 54 ) + 46 AS col2 FROM tab2 AS cor0 WHERE + 48 * - col1 IS NOT NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL col1 + 73 FROM tab1 WHERE NOT ( - col2 * col1 * + 56 + - + CAST( + + col2 AS SIGNED ) ) = - 59
----
120
78
87

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL col1 + 73 FROM tab1 WHERE NOT ( - col2 * col1 * + 56 + - + CAST ( + + col2 AS INTEGER ) ) = - 59
----
120
78
87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT DISTINCT - col2 * col2 DIV + + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - col2 * col2 / + + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 84 + - - SUM( - 94 ) * 83 + 21 * 34 AS col2 FROM tab1 AS cor0
----
-22608

skipif mysql # not compatible
query I rowsort label-1216
SELECT 84 + - - SUM ( - 94 ) * 83 + 21 * 34 AS col2 FROM tab1 AS cor0
----
-22608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 28 col2, + col1 FROM tab2 AS cor0
----
23
51
39
67
49
77

query I rowsort
SELECT col0 + + col0 + + + col0 + - col0 + - - col1 * + + 55 AS col1 FROM tab1 AS cor0
----
2767
445
872

query I rowsort
SELECT - col1 * - 88 + + + 55 FROM tab0 AS cor0
----
143
1903
7183

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - 76 ) * - col2 + - 77 ) <> col1 * 21 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - col2 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - col2 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT - col0 * + 93 + + 43 FROM tab0 WHERE - col1 * + ( - - col1 ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1225
SELECT - col0 * + 93 + + 43 FROM tab0 WHERE - col1 * + ( - - col1 ) = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * col0 col2 FROM tab1
----
1377
2295
2457

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

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

query I rowsort
SELECT ALL - col0 * - + 99 * + 59 FROM tab0
----
508167
566577
87615

query I rowsort
SELECT ALL - 39 + - 46 * + 32 FROM tab1 AS cor0
----
-1511
-1511
-1511

query I rowsort
SELECT + - 49 - + col1 FROM tab1 cor0
----
-54
-63
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + 83 + + col1 * - - 18 * - col0 + - + col0 * + 40 * + 84 - - col1 col1 FROM tab2 cor0
----
-195481
-300504
-338414

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + ( - - 72 ) + + MIN ( DISTINCT col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT + MIN( ALL - 29 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + MIN ( ALL - 29 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

query I rowsort
SELECT col1 * - col1 * - 89 FROM tab1 cor0
----
17444
196601
2225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL OR NOT - 52 BETWEEN + - col2 AND + 23 * + 97 + - - col1 * - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL OR NOT - 52 BETWEEN + - col2 AND + 23 * + 97 + - - col1 * - + col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT + 51 DIV ( 72 ) + - SUM( - ( - - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-1237
SELECT + 51 / ( 72 ) + - SUM ( - ( - - col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-1238
SELECT - - col2 DIV + col0 AS col1, + col1 + - col2 + + col2 * - 66 AS col0 FROM tab1 AS cor0
----
0
-3948
0
-4509
1
-6418

skipif mysql # not compatible
query II rowsort label-1238
SELECT - - col2 / + col0 AS col1, + col1 + - col2 + + col2 * - 66 AS col0 FROM tab1 AS cor0
----
0
-3948
0
-4509
1
-6418

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT DISTINCT + MAX( DISTINCT + col1 ) + - MAX( ALL - + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT + - col1 IS NULL
----
123

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

query II rowsort
SELECT ALL - 19 AS col0, + col1 + - 15 + - - col1 * - - col2 AS col2 FROM tab1
----
-19
1343
-19
285
-19
3228

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 61 + + col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL - SUM( - 38 ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - SUM ( - 38 ) AS col0 FROM tab2
----
114

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT COUNT( + col0 ) + - MAX( + col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1247
SELECT COUNT ( + col0 ) + - MAX ( + col0 ) FROM tab2 AS cor0
----
-72

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 + col2 + 25 + - 98, + col0 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1250
SELECT col0 DIV + col2 AS col0, + 90 + - - 85 FROM tab2
----
1
175
1
175
2
175

skipif mysql # not compatible
query II rowsort label-1250
SELECT col0 / + col2 AS col0, + 90 + - - 85 FROM tab2
----
1
175
1
175
2
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col1 * col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-51
-810
-85
-484
-91
-4345

query I rowsort
SELECT DISTINCT + + col0 + 3 AS col2 FROM tab0 AS cor0
----
100
18
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1254
SELECT - - 41 AS col1, 66 DIV col2 FROM tab1 AS cor0
----
41
0
41
0
41
1

skipif mysql # not compatible
query II rowsort label-1254
SELECT - - 41 AS col1, 66 / col2 FROM tab1 AS cor0
----
41
0
41
0
41
1

query II rowsort
SELECT - col1 + 26 * col2 - + - ( - col1 ) AS col0, + 67 - 34 + - col2 * + + ( col2 ) FROM tab2
----
1374
-3331
496
-496
886
-1567

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

query II rowsort
SELECT - 70 + + col1 AS col0, - ( col0 ) * + ( + col2 ) FROM tab0
----
-49
-870
-69
-9603
11
-705

query I rowsort
SELECT DISTINCT col1 - - - col0 AS col1 FROM tab0
----
-66
-96
66

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT col0 AS col2 FROM tab1 WHERE - + 13 IN ( col0 * CAST( - 25 AS SIGNED ) + - 2 + - 4 )
----

skipif mysql # not compatible
query I rowsort label-1261
SELECT col0 AS col2 FROM tab1 WHERE - + 13 IN ( col0 * CAST ( - 25 AS INTEGER ) + - 2 + - 4 )
----

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

skipif mysql # not compatible
query I rowsort label-1262
SELECT - MAX ( ALL 51 ) FROM tab2 AS cor0
----
-51

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

query I rowsort
SELECT 25 * - 34 AS col0 FROM tab0
----
-850
-850
-850

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT + col1 <= 61
----
-81

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1273
SELECT * FROM tab0 WHERE NOT col1 - - + 87 <= + + col2 * - + CAST( NULL AS SIGNED ) * + 5 / + 86
----

skipif mysql # not compatible
query III rowsort label-1273
SELECT * FROM tab0 WHERE NOT col1 - - + 87 <= + + col2 * - + CAST ( NULL AS INTEGER ) * + 5 / + 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT + col0 DIV 32 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1274
SELECT + col0 / 32 FROM tab0
----
0
2
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1275
SELECT ALL + 67 DIV + col0 AS col0, col2 * + col0 FROM tab2
----
0
4350
1
1058
1
2560

skipif mysql # not compatible
query II rowsort label-1275
SELECT ALL + 67 / + col0 AS col0, col2 * + col0 FROM tab2
----
0
4350
1
1058
1
2560

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

query I rowsort
SELECT + col0 * - col0 * - + 92 FROM tab2
----
194672
376832
517500

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col2 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col2 + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT MAX( + ( + - CAST( - 78 AS SIGNED ) ) ) * - ( COUNT( * ) ) + 12 AS col2 FROM tab0 AS cor0 WHERE + col0 * - 58 * + + col0 IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-1279
SELECT MAX ( + ( + - CAST ( - 78 AS INTEGER ) ) ) * - ( COUNT ( * ) ) + 12 AS col2 FROM tab0 AS cor0 WHERE + col0 * - 58 * + + col0 IS NOT NULL
----
-222

query I rowsort
SELECT - - col2 * col0 + + col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT ALL + col0 + + 4 FROM tab2 AS cor0
----
50
68
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1282
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT + CAST( + + 69 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT + CAST ( + + 69 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT - + col2 DIV - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1283
SELECT - + col2 / - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-1284
SELECT DISTINCT 9 AS col1, col1 DIV + col1 FROM tab2 AS cor0
----
9
1

skipif mysql # not compatible
query II rowsort label-1284
SELECT DISTINCT 9 AS col1, col1 / + col1 FROM tab2 AS cor0
----
9
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1285
SELECT ALL ( col2 ) + - - col2 AS col2, + CAST( NULL AS DECIMAL ) * - col2 * col0 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL ( col2 ) + - - col2 AS col2, + CAST ( NULL AS REAL ) * - col2 * col0 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

query I rowsort
SELECT DISTINCT - + 48 + - - col0 AS col1 FROM tab1 AS cor0
----
3
37
43

query II rowsort
SELECT - 94 AS col1, 98 AS col2 FROM tab2 cor0
----
-94
98
-94
98
-94
98

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

skipif mysql # not compatible
query II rowsort label-1288
SELECT - COUNT ( * ) AS col0, 1 AS col2 FROM tab2 AS cor0
----
-3
1

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

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

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

query I rowsort
SELECT DISTINCT + 87 FROM tab2 WHERE NULL IS NULL
----
87

query II rowsort
SELECT ALL col1 + 6 AS col0, - col2 FROM tab2
----
57
-23
73
-58
83
-40

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

query I rowsort
SELECT DISTINCT + col2 * + col0 - col2 + - + col2 AS col1 FROM tab1
----
4704
4897
6052

query I rowsort
SELECT 33 - 39 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT 38 * + - 30 - col0 FROM tab2
----
-1186
-1204
-1215

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

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

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

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

query II rowsort
SELECT ALL ( + col2 ) * - col2 + col1 * + col0 + + 30 AS col0, col0 + + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-3026
5
-317
47
-8472
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + COUNT( ALL - 69 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1300
SELECT + COUNT ( ALL - 69 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT + col2 * + col0 + CAST( - 1 AS SIGNED ) FROM tab1 AS cor0
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-1303
SELECT + col2 * + col0 + CAST ( - 1 AS INTEGER ) FROM tab1 AS cor0
----
4895
5014
6187

query I rowsort
SELECT DISTINCT - col1 * 39 + + + col2 AS col1 FROM tab0 AS cor0
----
-3112
-809
60

query I rowsort
SELECT ( 22 ) * + - col2 + - 77 FROM tab1 cor0
----
-1375
-1573
-2189

query I rowsort
SELECT DISTINCT - - 46 / - - ( + + 8 ) / + + col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 * + 23 col0 FROM tab2 AS cor0
----
1058
1058
1058

query I rowsort
SELECT ALL + col1 * + - 18 + + 21 * - - 59 * 95 FROM tab2 AS cor0
----
116319
116499
116787

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT col1 AS col0, col2 + + + 64 * col1 FROM tab0
----
1
163
21
1354
81
5231

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

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

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

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

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

query I rowsort
SELECT 47 * + 96 AS col1 FROM tab2
----
4512
4512
4512

onlyif mysql # DIV for integer division: 
query II rowsort label-1324
SELECT - + col1 * - col0 - - col2 DIV col2 AS col0, 76 * - col1 * - + col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1216
-23435845
1828
-335150
98
-7425

skipif mysql # not compatible
query II rowsort label-1324
SELECT - + col1 * - col0 - - col2 / col2 AS col0, 76 * - col1 * - + col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1216
-23435845
1828
-335150
98
-7425

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN + 99 AND NULL
----

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL < col0 / 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT + - COUNT( * ) + + SUM( DISTINCT - 94 ) * + ( + - MAX( + col2 ) ) FROM tab2 AS cor0
----
5449

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT + - COUNT ( * ) + + SUM ( DISTINCT - 94 ) * + ( + - MAX ( + col2 ) ) FROM tab2 AS cor0
----
5449

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL - + COUNT( * ) + - + 51 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - + COUNT ( * ) + - + 51 FROM tab2 cor0
----
-54

query I rowsort
SELECT ALL - - 29 * + 81 - + 7 * + col1 * + 76 + col0 AS col1 FROM tab0 cor0
----
-40728
-8736
1914

query I rowsort
SELECT 15 + 97 FROM tab1
----
112
112
112

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE - + col0 > NULL
----

query I rowsort
SELECT - col0 + 28 * + ( col0 ) AS col1 FROM tab0
----
2349
2619
405

query I rowsort
SELECT 23 + + + ( + col2 ) AS col1 FROM tab2
----
46
63
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT DISTINCT - col0 - - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT - col0 - - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL col2 AS col1, col2 * + 65 + - col0 FROM tab2
----
23
1449
40
2536
58
3695

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 col0 FROM tab0
----
1215
1827
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT - COUNT( * ) AS col2, 88 AS col2 FROM tab1 cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-1340
SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 cor0
----
-3
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - 75 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT DISTINCT + + col0 DIV col2 col1 FROM tab2 cor0
----
1
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - SUM( DISTINCT - 59 ) + COUNT( DISTINCT col0 ) - - COUNT( * ) * + 95 * 9 FROM tab2 AS cor0
----
2627

skipif mysql # not compatible
query I rowsort label-1343
SELECT - SUM ( DISTINCT - 59 ) + COUNT ( DISTINCT col0 ) - - COUNT ( * ) * + 95 * 9 FROM tab2 AS cor0
----
2627

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL <= col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1345
SELECT DISTINCT col2 DIV - + col2 AS col2, - col0 + - CAST( + + col1 AS SIGNED ) + 70 + - 98 * + 84 FROM tab0
----
-1
-8258
-1
-8260
-1
-8270

skipif mysql # not compatible
query II rowsort label-1345
SELECT DISTINCT col2 / - + col2 AS col2, - col0 + - CAST ( + + col1 AS INTEGER ) + 70 + - 98 * + 84 FROM tab0
----
-1
-8258
-1
-8260
-1
-8270

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT col0 + + col2 DIV + - col1 AS col0 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-1346
SELECT col0 + + col2 / + - col1 AS col0 FROM tab1
----
45
74
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 62 DIV col2 * 95 AS col2 FROM tab0
----
0
570
95

skipif mysql # not compatible
query I rowsort label-1347
SELECT 62 / col2 * 95 AS col2 FROM tab0
----
0
570
95

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-1348
SELECT * FROM tab1 WHERE - col2 + col2 <> 57 DIV - 11 - - + CAST( col1 AS DECIMAL )
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-1348
SELECT * FROM tab1 WHERE - col2 + col2 <> 57 / - 11 - - + CAST ( col1 AS REAL )
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT MIN( DISTINCT - 33 ) * - COUNT( * ) col2 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1349
SELECT DISTINCT MIN ( DISTINCT - 33 ) * - COUNT ( * ) col2 FROM tab2
----
99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT DISTINCT - 20 + - col0 * col2 + 37 FROM tab2 cor0
----
-1041
-2543
-4333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1, 26, - 38 + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + - col2 < - 43
----

query I rowsort
SELECT - col0 + - + 8 * - col1 + + 79 FROM tab2
----
441
540
631

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - + 37 + - 67 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - + 37 + - 67 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-107

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

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

query I rowsort
SELECT DISTINCT + 5 + - 28 + + + ( + ( 46 ) ) * + col0 + + - col1 AS col0 FROM tab1 AS cor0
----
2309
3882
4116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT - + 15 DIV + COUNT( * ) AS col2 FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1361
SELECT - + 15 / + COUNT ( * ) AS col2 FROM tab0 cor0
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT ALL + col0 + - - 41 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
103
138
237

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + col0 + - - 41 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
103
138
237

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 15 ), col1 + - 38 col0 FROM tab1 WHERE col0 IS NOT NULL
----
15
-24
15
-33
15
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT COUNT( ALL ( - - 82 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1367
SELECT COUNT ( ALL ( - - 82 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1368
SELECT CAST( NULL AS DECIMAL ) * + col2 AS col1, + 90 FROM tab0
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
query II rowsort label-1368
SELECT CAST ( NULL AS REAL ) * + col2 AS col1, + 90 FROM tab0
----
NULL
90
NULL
90
NULL
90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1371
SELECT + - 91 * + + CAST( NULL AS SIGNED ) AS col2, 7 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-1371
SELECT + - 91 * + + CAST ( NULL AS INTEGER ) AS col2, 7 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - 61 + - - COUNT( * ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - 61 + - - COUNT ( * ) FROM tab0 AS cor0
----
-58

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

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

query I rowsort
SELECT - ( + 62 ) FROM tab2 AS cor0 WHERE - col2 + + 92 IS NULL
----

query I rowsort
SELECT ALL 86 + + col0 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT DISTINCT - + col1 * - col0 + + col0 AS col1 FROM tab2 cor0
----
2392
4992
5100

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

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

query I rowsort
SELECT - col0 FROM tab0 WHERE + col2 = + 71
----

query I rowsort
SELECT col0 + + 74 * + col0 AS col0 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - - 95 * - - col0 + + 76 + col0 / - col0 * 25 NOT IN ( + ( + + col1 ) + - + col1 )
----

query III rowsort
SELECT - col1 + + col0 AS col0, - col0 AS col1, - + col0 - + + 15 AS col1 FROM tab2 WHERE - 80 + + col1 + - col1 / col2 = - col1 * - 38 + - col2
----

query I rowsort
SELECT ALL ( + - col1 ) + col0 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT ALL - col0 * + ( col0 ) DIV col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - col0 * + ( col0 ) / col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - - 1 + 69 - - col2 FROM tab0 AS cor0
----
117
169
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT + - CAST( NULL AS SIGNED ) + + AVG ( DISTINCT + 22 ) * + 54 col1 FROM tab0 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

query I rowsort
SELECT ALL - col0 + - - 0 * + 44 + 81 FROM tab2 AS cor0
----
17
35
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - - MIN( - 81 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT ALL - - MIN ( - 81 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1400
SELECT * FROM tab2 WHERE NOT 15 * - + col2 + - CAST( NULL AS SIGNED ) - - col1 + - 50 < + 97 * + col2 + - 0 * - 50
----

skipif mysql # not compatible
query III rowsort label-1400
SELECT * FROM tab2 WHERE NOT 15 * - + col2 + - CAST ( NULL AS INTEGER ) - - col1 + - 50 < + 97 * + col2 + - 0 * - 50
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT COUNT( * ) AS col0, + ( 80 ) FROM tab2
----
3
80

skipif mysql # not compatible
query II rowsort label-1402
SELECT COUNT ( * ) AS col0, + ( 80 ) FROM tab2
----
3
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + col2 DIV - 22 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + col2 / - 22 AS col2 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT ( 54 ) AS col0 FROM tab0
----
54

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

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

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

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

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

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

query II rowsort
SELECT - col0, - 87 * - 35 AS col2 FROM tab0 AS cor0
----
-15
3045
-87
3045
-97
3045

query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL - MAX( + col0 ) + COUNT( DISTINCT - col2 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - MAX ( + col0 ) + COUNT ( DISTINCT - col2 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - col0 + col0 AS col0, col0 * + 35 * + - ( - 71 ) AS col1 FROM tab2 cor0
----
0
114310
0
159040
0
186375

query I rowsort
SELECT ALL + col0 + - 83 + col0 * + 23 * 10 FROM tab1 AS cor0
----
11698
19552
20938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 + col1, col2 col0 FROM tab0 AS cor0
----
-24
10
-44
99
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT COUNT( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT COUNT ( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + - + 2 AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + - + 2 AS col2 FROM tab2 AS cor0
----
7

query I rowsort
SELECT - col2 + ( 68 ) AS col0 FROM tab0 AS cor0
----
-31
21
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - 14 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + CAST( - 15 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 14 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + CAST ( - 15 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + - + col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT ( - 32 ) AS col1 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT - 55 DIV col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 55 / col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL > 98 * 94 + + col1 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL > 98 * 94 + + col1 + - + col2
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 NOT IN ( + col0 / - 75 )
----

query I rowsort
SELECT + 62 * col0 AS col1 FROM tab0
----
5394
6014
930

query I rowsort
SELECT ALL - col0 + - - 5 FROM tab0
----
-10
-82
-92

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 95 <= + 92 - + + 55 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT MAX( col0 ) + - + SUM( ALL + + 50 ) * - + COUNT( * ) AS col0 FROM tab1
----
541

skipif mysql # not compatible
query I rowsort label-1433
SELECT MAX ( col0 ) + - + SUM ( ALL + + 50 ) * - + COUNT ( * ) AS col0 FROM tab1
----
541

query II rowsort
SELECT - - col2 AS col1, col2 + + col0 FROM tab1 WHERE NOT + 46 IS NULL
----
59
144
68
159
96
147

query I rowsort
SELECT + 40 * + ( + col0 ) FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + COUNT( * ) * - - 79 AS col2 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + COUNT ( * ) * - - 79 AS col2 FROM tab2 AS cor0
----
237

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT - + ( - + 8 ) * - 43 * + col0 * + CAST( NULL AS SIGNED ) + + 39 + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT - + ( - + 8 ) * - 43 * + col0 * + CAST ( NULL AS INTEGER ) + + 39 + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 17 * - 54 + 94 AS col1 FROM tab1 AS cor0
----
-824
-824
-824

query I rowsort
SELECT ALL + ( + 40 ) * + col0 * 37 FROM tab1
----
125800
134680
75480

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL + col1 DIV - 13 AS col0 FROM tab2
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + col1 / - 13 AS col0 FROM tab2
----
-3
-5
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + ( - - MIN( DISTINCT + col1 ) ) col1 FROM tab2
----
51

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 84 + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

skipif mysql # not compatible
query I rowsort label-1450
SELECT - MIN ( - + 22 ) AS col1 FROM tab1
----
22

query I rowsort
SELECT ALL - 43 + - 17 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT + 72 + - COUNT( * ) col0 FROM tab0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1452
SELECT + 72 + - COUNT ( * ) col0 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 4 ) + + col1 col1 FROM tab2
----
47
63
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * + col0 * col1 col1 FROM tab2
----
107865
315315
376808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT DISTINCT - + ( + MAX( DISTINCT - 2 ) ) + - - CAST( NULL AS SIGNED ) / + 11 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - + ( + MAX ( DISTINCT - 2 ) ) + - - CAST ( NULL AS INTEGER ) / + 11 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 24 + - - col2 FROM tab1 AS cor0
----
35
44
72

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

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

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT MIN ( col0 ) * MAX ( DISTINCT + - col1 ) / + COUNT ( * ) AS col1 FROM tab2 cor0
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - 14 * COUNT( * ) col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1460
SELECT - 14 * COUNT ( * ) col2 FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1461
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + - CAST( NULL AS DECIMAL ) > - - 17 + + 45 * + col0 / + + col1
----

skipif mysql # not compatible
query III rowsort label-1461
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + - CAST ( NULL AS REAL ) > - - 17 + + 45 * + col0 / + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT SUM( 3 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1463
SELECT SUM ( 3 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT - 43 * - col0 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT + 57 AS col2, SUM( DISTINCT col0 ) FROM tab2
----
57
185

skipif mysql # not compatible
query II rowsort label-1465
SELECT + 57 AS col2, SUM ( DISTINCT col0 ) FROM tab2
----
57
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL - - MIN( DISTINCT col2 ) * + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + 66 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - - MIN ( DISTINCT col2 ) * + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + 66 IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + - COUNT( * ) * + 20 - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + - COUNT ( * ) * + 20 - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

query II rowsort
SELECT - col0 + - col0 AS col0, 31 FROM tab1
----
-102
31
-170
31
-182
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL 9 + + + col0 + + CAST( - CAST( - - col2 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
-23
7
86

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL 9 + + + col0 + + CAST ( - CAST ( - - col2 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
-23
7
86

query I rowsort
SELECT DISTINCT + 95 + col1 AS col2 FROM tab1 AS cor0
----
100
109
142

query I rowsort
SELECT - - ( + - col0 ) + 97 * + col1 + + + 42 * ( - 61 ) AS col0 FROM tab2 AS cor0
----
2339
3862
4843

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

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

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

query I rowsort
SELECT ALL + - col1 + 41 AS col2 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT ALL 94 + + - col2 * - + ( + + col1 ) FROM tab2 AS cor0
----
1267
3174
3980

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

query I rowsort
SELECT DISTINCT - col1 + - - 8 FROM tab1
----
-39
-6
3

query II rowsort
SELECT + col1, + ( col0 ) * - - 36 AS col0 FROM tab1
----
14
1836
47
3276
5
3060

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

query I rowsort
SELECT ALL - col1 - col1 + - 14 AS col2 FROM tab0
----
-16
-176
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT ALL 41 AS col2, + MAX( + 24 ) AS col2 FROM tab2
----
41
24

skipif mysql # not compatible
query II rowsort label-1481
SELECT ALL 41 AS col2, + MAX ( + 24 ) AS col2 FROM tab2
----
41
24

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

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

query II rowsort
SELECT ALL 48, col0 FROM tab0
----
48
15
48
87
48
97

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1488
SELECT - COUNT( * ) DIV + ( + 53 ) AS col0, + COUNT( * ) * - + COUNT( * ) FROM tab1 cor0
----
0
-9

skipif mysql # not compatible
query II rowsort label-1488
SELECT - COUNT ( * ) / + ( + 53 ) AS col0, + COUNT ( * ) * - + COUNT ( * ) FROM tab1 cor0
----
0
-9

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT 5 * + - COUNT( DISTINCT - 34 ) - 93 AS col1 FROM tab1, tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1490
SELECT 5 * + - COUNT ( DISTINCT - 34 ) - 93 AS col1 FROM tab1, tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT 11 + 33 FROM tab0 WHERE + col2 + 39 * + + col0 * - col1 IS NOT NULL
----
44

query I rowsort
SELECT 11 - + 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT ALL * FROM tab2 WHERE 62 * + col1 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 * + col1 col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 < 72 + - + 22
----

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

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

query I rowsort
SELECT ALL - col0 + - 32 AS col1 FROM tab2
----
-107
-78
-96

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) * 43 + - CAST ( NULL AS INTEGER ) * col1 ) = NULL
----

query I rowsort
SELECT - 52 + 56 FROM tab0 AS cor0
----
4
4
4

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

query I rowsort
SELECT DISTINCT - 43 + - - 67 FROM tab0 AS cor0
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT SUM( DISTINCT - 14 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT SUM ( DISTINCT - 14 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + - 67 * 13 * + col2 AS col0 FROM tab2 AS cor0
----
-20033
-34840
-50518

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

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

query I rowsort
SELECT DISTINCT - 63 * + 73 + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-4541
-4559
-4576

query I rowsort
SELECT DISTINCT + + col0 * + - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-4368
-510
-765

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

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

query I rowsort
SELECT ALL - col2 - + 44 FROM tab2 AS cor0
----
-102
-67
-84

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

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

query I rowsort
SELECT - ( + + col1 ) * ( + + 19 ) AS col0 FROM tab2 AS cor0
----
-1273
-1463
-969

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

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

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

query II rowsort
SELECT DISTINCT + 33, - 71 AS col1 FROM tab2
----
33
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - - col0
----
0

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1524
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

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

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

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

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

query I rowsort
SELECT col2 + - + 29 + + col2 * col0 * 58 * + 8 * ( - + 62 ) FROM tab2
----
-125140771
-30436550
-73646069

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - 8 + - + 91 FROM tab0
----
-99

query I rowsort
SELECT - 26 - + 43 FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT MIN( 48 ) * + - 10 + SUM( - col0 ) AS col0 FROM tab2
----
-665

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT MIN ( 48 ) * + - 10 + SUM ( - col0 ) AS col0 FROM tab2
----
-665

query I rowsort
SELECT ALL col2 + - - 49 AS col1 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT + COUNT( * ) DIV + 70 AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1537
SELECT ALL + + CAST( + - CAST( + ( col0 ) AS SIGNED ) AS SIGNED ) DIV + col0 + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + + CAST ( + - CAST ( + ( col0 ) AS INTEGER ) AS INTEGER ) / + col0 + col0 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT DISTINCT 49 - 62 FROM tab1 AS cor0
----
-13

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

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

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

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

query I rowsort
SELECT DISTINCT - 34 * - + 84 + - 30 AS col0 FROM tab0
----
2826

query I rowsort
SELECT ALL col0 - - + 87 FROM tab0
----
102
174
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MAX( DISTINCT - + 21 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - + 21 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT CAST( + 21 AS SIGNED ) DIV + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT CAST ( + 21 AS INTEGER ) / + - col0 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT 28 * + - COUNT ( * ) FROM tab1
----
-84

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT col0 > NULL
----

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

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

query I rowsort
SELECT + ( + - col1 ) * 54 AS col2 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT ALL - - col1 + + + col0 FROM tab1 cor0
----
138
65
90

query II rowsort
SELECT + 31 AS col2, col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
2601
31
7225
31
8281

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 * - col0 + col0 col1, 93 * - col0 FROM tab1 AS cor0
----
-1275
-4743
-2125
-7905
-2275
-8463

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 * + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT COUNT( * ) * - 6 AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-1558
SELECT COUNT ( * ) * - 6 AS col2 FROM tab1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col1 + - - col2 + - col0 + - - 5 + - + col2 * - - col1, + 84 * + col0, + col1, col2, - col1, col2 )
----

query I rowsort
SELECT + col2 + - col0 * + + col1 * col2 AS col1 FROM tab0
----
-18260
-57058
-9504

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

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

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

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

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

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

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

query I rowsort
SELECT 58 + 63 * + col0 AS col2 FROM tab0
----
1003
5539
6169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT 95 + CAST( - MIN( ALL - col2 ) + 90 AS SIGNED ) AS col2 FROM tab1
----
281

skipif mysql # not compatible
query I rowsort label-1566
SELECT 95 + CAST ( - MIN ( ALL - col2 ) + 90 AS INTEGER ) AS col2 FROM tab1
----
281

query I rowsort
SELECT col1 * 63 + col1 AS col1 FROM tab0
----
1344
5184
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT - 83 DIV col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 83 / col1 FROM tab1
----
-1
-16
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - MAX( ALL 39 ) * - MAX( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3744

skipif mysql # not compatible
query I rowsort label-1570
SELECT - MAX ( ALL 39 ) * - MAX ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT + col2 DIV - col2 - 62 AS col2 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-1571
SELECT + col2 / - col2 - 62 AS col2 FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL + col0 FROM tab1 WHERE + col0 / col1 + CAST( - 74 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + col0 FROM tab1 WHERE + col0 / col1 + CAST ( - 74 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT - 7 + - COUNT( * ) DIV MAX( col1 * + 86 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1573
SELECT - 7 + - COUNT ( * ) / MAX ( col1 * + 86 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 56 + COUNT( * ) FROM tab1 WHERE ( + col2 ) >= 42
----
59

skipif mysql # not compatible
query I rowsort label-1574
SELECT 56 + COUNT ( * ) FROM tab1 WHERE ( + col2 ) >= 42
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col2 col1 FROM tab0 WHERE NOT 42 > ( col2 * + col0 )
----
-658
-860
-9504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT BETWEEN - 10 AND - 40 / + 75
----

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT BETWEEN - 10 AND - 40 / + 75
----

query I rowsort
SELECT ALL + ( ( - 26 ) ) AS col1 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT ALL - col2 * + col1 + + col1 FROM tab1 WHERE NOT NULL >= col2 / col0 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT CAST( 99 AS SIGNED ) FROM tab1 WHERE - 36 / - ( col1 ) = + col0
----

skipif mysql # not compatible
query I rowsort label-1580
SELECT CAST ( 99 AS INTEGER ) FROM tab1 WHERE - 36 / - ( col1 ) = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT - COUNT( * ) DIV 77 AS col2 FROM tab1 WHERE NOT ( - col0 ) >= 91 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - COUNT ( * ) / 77 AS col2 FROM tab1 WHERE NOT ( - col0 ) >= 91 / 12
----
0

query III rowsort
SELECT * FROM tab0 WHERE 23 + + col1 BETWEEN col1 * 41 + col2 * + 47 AND NULL
----

query I rowsort
SELECT ALL ( + 13 ) AS col1 FROM tab1
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - ( - col2 ) col2 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - COUNT( * ) FROM tab1 WHERE - col1 - - 7 * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1586
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 - - 7 * col0 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 86 - col1 ) BETWEEN col1 / - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1589
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT COUNT( * ) * + 31 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 + - col2 ) = - col1 + col0 * + 49
----
93

skipif mysql # not compatible
query I rowsort label-1590
SELECT COUNT ( * ) * + 31 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 + - col2 ) = - col1 + col0 * + 49
----
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT + - 26 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1593
SELECT + - 26 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT ALL - col0 DIV 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - col0 / 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - + COUNT( * ) + + COUNT( * ) * - 60 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1597
SELECT - + COUNT ( * ) + + COUNT ( * ) * - 60 FROM tab1 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1598
SELECT ALL - col0 DIV - 39 + CAST( col2 AS SIGNED ) FROM tab1
----
61
70
97

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - col0 / - 39 + CAST ( col2 AS INTEGER ) FROM tab1
----
61
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT + col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-1599
SELECT + col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 88 ) IS NOT NULL
----

query I rowsort
SELECT - 58 * + + 26 FROM tab0
----
-1508
-1508
-1508

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1605
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT ( col2 * - ( col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT ( col2 * - ( col2 ) ) IS NOT NULL
----

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

query I rowsort
SELECT 79 FROM tab1 WHERE ( 67 + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL MIN( + 50 ) AS col0 FROM tab2 WHERE col0 + + 25 NOT BETWEEN - col2 AND + col2 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL MIN ( + 50 ) AS col0 FROM tab2 WHERE col0 + + 25 NOT BETWEEN - col2 AND + col2 * 65
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col0 / ( - ( - ( col1 ) ) ) + col1 IS NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ( + + COUNT( * ) ) - 28 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1614
SELECT ( + + COUNT ( * ) ) - 28 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT + - col0 - - CAST( + 60 AS SIGNED ) * col1 FROM tab1 AS cor0
----
215
2729
789

skipif mysql # not compatible
query I rowsort label-1615
SELECT + - col0 - - CAST ( + 60 AS INTEGER ) * col1 FROM tab1 AS cor0
----
215
2729
789

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

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

skipif mysql # not compatible
query III rowsort label-1617
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 50 + - - col2 ) >= ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1618
SELECT - 58 AS col2, col2 DIV + 40 AS col2 FROM tab2 AS cor0
----
-58
0
-58
1
-58
1

skipif mysql # not compatible
query II rowsort label-1618
SELECT - 58 AS col2, col2 / + 40 AS col2 FROM tab2 AS cor0
----
-58
0
-58
1
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT 94 * + COUNT( * ) * - - MAX( + 45 ) AS col0 FROM tab0 AS cor0
----
12690

skipif mysql # not compatible
query I rowsort label-1619
SELECT 94 * + COUNT ( * ) * - - MAX ( + 45 ) AS col0 FROM tab0 AS cor0
----
12690

query I rowsort
SELECT DISTINCT 56 + + 40 AS col0 FROM tab2 AS cor0 WHERE 10 IN ( - + ( col1 ) * - col1 )
----

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

query I rowsort
SELECT 4 * col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IN ( ( col0 ) * - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( * ) * + 20 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) * + 20 AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab1 WHERE col2 < NULL AND NULL < ( NULL )
----

query I rowsort
SELECT - ( 48 ) * + col0 + + col1 FROM tab2 WHERE NOT + + col2 IS NULL
----
-2157
-2995
-3533

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL >= - - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT - col0 + + CAST( - col1 AS SIGNED ) * - 39 col1 FROM tab0 WHERE NOT ( + + 66 ) IS NULL
----
-58
3144
732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT - col0 + + CAST ( - col1 AS INTEGER ) * - 39 col1 FROM tab0 WHERE NOT ( + + 66 ) IS NULL
----
-58
3144
732

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 70 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 70 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + SUM( + 23 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1633
SELECT + SUM ( + 23 ) FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col1 + + - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1635
SELECT DISTINCT + col1 * + + CAST( 48 AS SIGNED ) AS col1, + 37 * - ( col1 ) AS col2 FROM tab0
----
1008
-777
3888
-2997
48
-37

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT + col1 * + + CAST ( 48 AS INTEGER ) AS col1, + 37 * - ( col1 ) AS col2 FROM tab0
----
1008
-777
3888
-2997
48
-37

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

query II rowsort
SELECT - 28, - 36 AS col0 FROM tab0 AS cor0
----
-28
-36
-28
-36
-28
-36

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 99 ) <= ( ( - 32 ) + col0 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1644
SELECT col2 * - - 36 + - CAST( 21 AS SIGNED ), 96 * col1 col2 FROM tab2
----
1419
7392
2067
6432
807
4896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1644
SELECT col2 * - - 36 + - CAST ( 21 AS INTEGER ), 96 * col1 col2 FROM tab2
----
1419
7392
2067
6432
807
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1645
SELECT DISTINCT - COUNT( * ), 38 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT - COUNT ( * ), 38 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT DISTINCT + MAX( - + CAST( - + col0 AS SIGNED ) ) * + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + MAX ( - + CAST ( - + col0 AS INTEGER ) ) * + COUNT ( * ) FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT DISTINCT + + 39 + + + col1 * - + 30 + + 26 + - - col0 * 37 * CAST( - 99 * - 41 AS SIGNED ) FROM tab2 AS cor0
----
11261780
6906953
9609467

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + + 39 + + + col1 * - + 30 + + 26 + - - col0 * 37 * CAST ( - 99 * - 41 AS INTEGER ) FROM tab2 AS cor0
----
11261780
6906953
9609467

query I rowsort
SELECT DISTINCT - 9 + + 5 AS col1 FROM tab2 cor0
----
-4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1649
SELECT - MIN ( + 54 ) col1 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 FROM tab2 WHERE - 10 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - 55 * + - col2 BETWEEN ( + + col2 * - + 73 + - 64 ) AND ( + col0 / col1 )
----
91

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - 55 * + - col2 BETWEEN ( + + col2 * - + 73 + - 64 ) AND ( + col0 / col1 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - + COUNT( + - 54 ) + + - 3 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 * + col0 AND NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT - + COUNT ( + - 54 ) + + - 3 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 * + col0 AND NULL
----
-3

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + MAX( ALL - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1657
SELECT + MAX ( ALL - col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT col2, col1 * - + col0 AS col2 FROM tab1
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL - SUM( + - 99 ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - SUM ( + - 99 ) AS col0 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - - COUNT( * ) FROM tab2 WHERE NOT + - col0 <= + 65
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT + - col0 <= + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT - col2 DIV - 15 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1661
SELECT - col2 / - 15 AS col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT COUNT( * ) * + 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT COUNT ( * ) * + 53 FROM tab0
----
159

query I rowsort
SELECT DISTINCT - 68 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-68

query I rowsort
SELECT ALL - col0 * + 39 * col0 FROM tab2
----
-159744
-219375
-82524

query I rowsort
SELECT DISTINCT col0 * + col0 * + + col1 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * col0 * - col1 * + + col2 * col2 FROM tab0 cor0
----
217398735
3836700
950697

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * col0 * - col1 * + + col2 * col2 FROM tab0 cor0
----
217398735
3836700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT - 45 AS col0 FROM tab0 AS cor0 WHERE + col1 * col2 - + CAST( NULL AS SIGNED ) IS NULL
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 45 AS col0 FROM tab0 AS cor0 WHERE + col1 * col2 - + CAST ( NULL AS INTEGER ) IS NULL
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 8 * + col1 * - 23 NOT BETWEEN ( + - col1 * - + ( + col1 ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 70 * 66 + col2 FROM tab2 AS cor0
----
-4562
-4580
-4597

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN + col1 * 78 + 43 AND ( - ( col2 ) * + + col1 + col0 + col0 * col2 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT + ( + 8 ) * - CAST( + - 25 AS SIGNED ) * + + 60 + - 9 FROM tab1 AS cor0
----
11991
11991
11991

skipif mysql # not compatible
query I rowsort label-1671
SELECT + ( + 8 ) * - CAST ( + - 25 AS INTEGER ) * + + 60 + - 9 FROM tab1 AS cor0
----
11991
11991
11991

query I rowsort
SELECT DISTINCT - 18 + col0 FROM tab0
----
-3
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT 37 * - 19 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 37 * - 19 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 85 * - col1 <> + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT DISTINCT - COUNT( * ) DIV + 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - COUNT ( * ) / + 71 FROM tab2
----
0

query I rowsort
SELECT + col1 - col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * 70 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT 37 DIV + col1 FROM tab0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT 37 / + col1 FROM tab0
----
0
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + COUNT( * ) * + 74 col1 FROM tab2
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1679
SELECT + COUNT ( * ) * + 74 col1 FROM tab2
----
222

query I rowsort
SELECT - col2 * 73 AS col1 FROM tab0 AS cor0
----
-3431
-7227
-730

query II rowsort
SELECT DISTINCT - + ( + col1 ) AS col0, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1682
SELECT ALL + 58 AS col1, + 90 * - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-1682
SELECT ALL + 58 AS col1, + 90 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
58
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT + + COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1684
SELECT + + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT - col0 DIV + 61 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT - col0 / + 61 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab1 WHERE NULL IS NULL
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col2 * col1 / 35
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL - MAX( ALL - + col2 ) AS col0, - 36 * - COUNT( * ) FROM tab0
----
10
108

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL - MAX ( ALL - + col2 ) AS col0, - 36 * - COUNT ( * ) FROM tab0
----
10
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT - + MAX( + + 15 ) / + - 84 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - + MAX ( + + 15 ) / + - 84 FROM tab2 WHERE NULL = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= + - col2 * - col0 / - ( - + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * col0 * - col1 col2 FROM tab1 AS cor0
----
24225
243789
40698

query I rowsort
SELECT - col0 + 85 AS col1 FROM tab2 AS cor0
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT col2 * ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT col2 * ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + - 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + + COUNT( * ) AS col0 FROM tab1 WHERE + col0 + - - 52 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT + + COUNT ( * ) AS col0 FROM tab1 WHERE + col0 + - - 52 < NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - 45 AS col1 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT COUNT( * ) DIV - 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) / - 19 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL - col1 + - col1 + - ( - CAST( NULL AS SIGNED ) ) + ( + ( - col0 ) ) / col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - col1 + - col1 + - ( - CAST ( NULL AS INTEGER ) ) + ( + ( - col0 ) ) / col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + MIN( + + col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1701
SELECT + MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + - col1 * + + col2 + col0 * col2 + + col1 FROM tab1 AS cor0
----
3039
3566
4725

query I rowsort
SELECT DISTINCT col2 + - col1 * + - col2 AS col0 FROM tab2 cor0
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + + 44 col0 FROM tab0 AS cor0
----
-3
-55
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1705
SELECT DISTINCT - 34 - + 75 + CAST( 56 AS SIGNED ) DIV col2 DIV - + 76 FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - 34 - + 75 + CAST ( 56 AS INTEGER ) / col2 / - + 76 FROM tab1 AS cor0
----
-109

query I rowsort
SELECT DISTINCT - 95 + 61 + col2 AS col0 FROM tab2 cor0
----
-11
24
6

query I rowsort
SELECT ALL - - 52 + - - col1 AS col0 FROM tab1 AS cor0
----
57
66
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT COUNT( * ) - MIN( DISTINCT + CAST( + 21 AS SIGNED ) ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT COUNT ( * ) - MIN ( DISTINCT + CAST ( + 21 AS INTEGER ) ) FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( ALL - col1 ) + + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( ALL - col1 ) + + 84 FROM tab1
----
87

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + 71 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL - 66 + + COUNT( * ) FROM tab0 WHERE + - col0 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - 66 + + COUNT ( * ) FROM tab0 WHERE + - col0 IS NULL
----
-66

query I rowsort
SELECT col0 + + col0 * - 58 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL + MIN( + col0 ) * MIN( + 63 ) - + + 28 AS col1 FROM tab2
----
2870

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + MIN ( + col0 ) * MIN ( + 63 ) - + + 28 AS col1 FROM tab2
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 78 + + - COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1715
SELECT 78 + + - COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT + - ( - + col1 ) + + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 10 * + ( + - col2 ) / 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT 36 + - col1 + col0 / col1 / - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1718
SELECT 36 + - col1 + col0 / col1 / - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 * - + col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT + + MIN( DISTINCT + 5 ) DIV + ( - - MIN( - - col2 ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1720
SELECT + + MIN ( DISTINCT + 5 ) / + ( - - MIN ( - - col2 ) ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + ( + 71 ) FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 75 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT ( + + MAX( DISTINCT + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT ( + + MAX ( DISTINCT + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL + - ( - MIN( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + - ( - MIN ( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT ALL - ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT MIN( + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * ( + col2 ) AS col1 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT col2, 75 FROM tab1
----
59
75
68
75
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + 99 * - + COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1729
SELECT + 99 * - + COUNT ( * ) FROM tab0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 14 AS col1 FROM tab1
----
59
-14
68
-14
96
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 * + - ( - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1733
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT - COUNT( ( + CAST( 51 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1734
SELECT - COUNT ( ( + CAST ( 51 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1735
SELECT CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - 18 FROM tab2 AS cor0
----
-1618
-3382
-547

query I rowsort
SELECT ALL - 86 * col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query II rowsort
SELECT - col2 + + col2 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL 11 * 62 DIV + col1 + - col0 AS col0 FROM tab2 cor0
----
-33
-56
-65

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 11 * 62 / + col1 + - col0 AS col0 FROM tab2 cor0
----
-33
-56
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - ( - - col1 ) BETWEEN + + col2 + - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1742
SELECT ALL + 63 - - - col1 AS col0, col1 * + + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-14
77
-4
67
12
51

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + 63 - - - col1 AS col0, col1 * + + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-14
77
-4
67
12
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1743
SELECT DISTINCT - + SUM( col2 ) * - COUNT( * ) AS col1, 22 DIV - + MAX( ALL 94 ) FROM tab1 AS cor0
----
669
0

skipif mysql # not compatible
query II rowsort label-1743
SELECT DISTINCT - + SUM ( col2 ) * - COUNT ( * ) AS col1, 22 / - + MAX ( ALL 94 ) FROM tab1 AS cor0
----
669
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 - - - col0 col0 FROM tab2
----
-4
25
7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL - - COUNT( * ) col2 FROM tab1 WHERE NULL = - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1746
SELECT ALL - - COUNT ( * ) col2 FROM tab1 WHERE NULL = - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1747
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - 70 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - col0 )
----

query I rowsort
SELECT ALL col2 - + + 89 + - - 82 + - col0 - col2 * col0 * + - col2 * col2 FROM tab0
----
1557370
86916
94118998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT - col1 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NOT NULL ) OR NOT NULL < NULL
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1750
SELECT - col1 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NOT NULL ) OR NOT NULL < NULL
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col1 * + + 93 FROM tab1 AS cor0
----
1302
4371
465

query II rowsort
SELECT - 32 * + 38, + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1216
-46
-1216
-64
-1216
-75

query I rowsort
SELECT - 82 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 IS NULL
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT - CAST( NULL AS SIGNED ) * + 76 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1755
SELECT - CAST ( NULL AS INTEGER ) * + 76 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * col2 * col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL + col0 DIV 75 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + col0 / 75 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 ) NOT IN ( - 51 / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT ALL col2 DIV - + 90 + + col1 col0 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1759
SELECT ALL col2 / - + 90 + + col1 col0 FROM tab1 AS cor0
----
13
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - - + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 7 col2 FROM tab2 WHERE NULL IS NULL
----
7

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT DISTINCT 71, - 72 + + COUNT( * ) AS col0 FROM tab1
----
71
-69

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT 71, - 72 + + COUNT ( * ) AS col0 FROM tab1
----
71
-69

query I rowsort
SELECT 49 + - + 54 FROM tab0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + - col2 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT col2 + 11 AS col1 FROM tab1 AS cor0
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL COUNT( * ) * COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( * ) * COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 70 + 71 AS col2 FROM tab0 AS cor0
----
141
141
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT ALL - - col2 DIV + + 40 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - - col2 / + + 40 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1771
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT ( + - CAST( + + col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT ( + - CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 2 + + col2 + - 17 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 BETWEEN + 41 AND NULL
----

query I rowsort
SELECT 4 * - 15 - col0 FROM tab1 AS cor0
----
-111
-145
-151

query I rowsort
SELECT col1 - - ( col1 ) AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 / - col2 + col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 / - col2 + col1 AND - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT + col1 DIV 40 - ( + + col0 ) AS col1 FROM tab0 cor0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT + col1 / 40 - ( + + col0 ) AS col1 FROM tab0 cor0
----
-13
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1780
SELECT DISTINCT - ( + - CAST( - + 59 AS SIGNED ) ) + - SUM( DISTINCT col2 ) FROM tab0 cor0
----
-215

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - ( + - CAST ( - + 59 AS INTEGER ) ) + - SUM ( DISTINCT col2 ) FROM tab0 cor0
----
-215

query I rowsort
SELECT DISTINCT 40 * - 88 + + 0 AS col2 FROM tab0
----
-3520

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> + col1
----
0

query I rowsort
SELECT - col2 * - 49 AS col1 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT ( 79 ) * + 10 * + - col2 * 58 FROM tab0
----
-2153540
-4536180
-458200

query I rowsort
SELECT DISTINCT - + ( - 66 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1788
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col2 ) * + ( - - col2 ) AS col1 FROM tab0
----
100
2209
9801

query II rowsort
SELECT 90 + col0 + - col2 + + - col1, + 95 * col1 AS col0 FROM tab1 AS cor0
----
111
475
31
1330
66
4465

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 83 IS NULL
----

query I rowsort
SELECT DISTINCT - ( 82 ) * - - ( - + 52 ) FROM tab0 cor0
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 / 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 / 94 )
----
0

query I rowsort
SELECT 5 + - - col0 FROM tab1 AS cor0
----
56
90
96

query I rowsort
SELECT + col1 + - ( - - 71 ) * + - col2 FROM tab2 AS cor0
----
1684
2917
4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT ALL - COUNT( * ) DIV - 45 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - COUNT ( * ) / - 45 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT + CAST( NULL AS SIGNED ) + - ( + col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT + CAST ( NULL AS INTEGER ) + - ( + col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT - COUNT( + col0 ) AS col0, COUNT( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-1798
SELECT - COUNT ( + col0 ) AS col0, COUNT ( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
-3
3

query II rowsort
SELECT - ( col2 ), 51 AS col0 FROM tab1
----
-59
51
-68
51
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE ( 83 IS NOT NULL )
----
42
42
42

query I rowsort
SELECT DISTINCT + 61 * col2 + + 15 FROM tab1 cor0
----
3614
4163
5871

query I rowsort
SELECT + 36 - - + col2 AS col1 FROM tab0 AS cor0
----
135
46
83

query I rowsort
SELECT + 39 - + + col1 + - - 4 AS col0 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT DISTINCT + col2 - - 47 FROM tab0 AS cor0
----
146
57
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT ALL - COUNT( * ), 24 AS col1 FROM tab2
----
-3
24

skipif mysql # not compatible
query II rowsort label-1806
SELECT ALL - COUNT ( * ), 24 AS col1 FROM tab2
----
-3
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT - COUNT( + + 80 ) DIV + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1807
SELECT - COUNT ( + + 80 ) / + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + + - 94 FROM tab1 AS cor0
----
-47
-80
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) * - col2 / 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 * + - col1 + 88 FROM tab0 AS cor0
----
1303
185
1915

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL 85 + + + COUNT( ALL + 0 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL 85 + + + COUNT ( ALL + 0 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL + 38 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + 38 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + + MAX( ALL - - 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1814
SELECT + + MAX ( ALL - - 11 ) FROM tab1 AS cor0
----
11

query II rowsort
SELECT - - 67 AS col1, col2 AS col2 FROM tab1 AS cor0
----
67
59
67
68
67
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + + col0 <= NULL
----

query II rowsort
SELECT ALL + 27 AS col0, + col1 + + 54 FROM tab1
----
27
101
27
59
27
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - COUNT( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab0
----
-3

query I rowsort
SELECT col0 / - + col1 * ( - 44 ) - - - 58 * - col2 + col2 AS col1 FROM tab2 WHERE NOT + 54 + + - 21 + col0 <= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, ( + ( - - col0 ) ) AS col1 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT col0, - col0 * - col1 AS col0 FROM tab0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT + 18 * + COUNT( * ) - - 25 AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + 18 * + COUNT ( * ) - - 25 AS col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND + col0
----

query II rowsort
SELECT DISTINCT + + col0, 88 * - col2 - - + 10 AS col1 FROM tab0 AS cor0
----
15
-4126
87
-870
97
-8702

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col2 * col0 + + 30 - col0 FROM tab0 AS cor0
----
-1589547
-856560
-931558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - col2 + + + CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - col2 + + + CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT - 11 DIV + - 89 * + - ( 57 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 11 / + - 89 * + - ( 57 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL + ( - 76 ) + + col2 + + col2 FROM tab1 AS cor0
----
116
42
60

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - 84 )
----

query I rowsort
SELECT DISTINCT ( + 40 ) AS col0 FROM tab2
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 18 col1 FROM tab1
----
114
77
86

query I rowsort
SELECT ALL - col0 * + 58 AS col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT ALL - col2 * - col1 * col1 * + - col2 FROM tab0
----
-14493249
-44100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - 42 + + COUNT( * ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 42 + + COUNT ( * ) FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 27 * - + 31 AS col1 FROM tab0
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL 12 * COUNT( * ) col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT ALL 12 * COUNT ( * ) col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 93 + col0 FROM tab2 AS cor0
----
-18
-29
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col2, 13 col0 FROM tab1
----
0
13
0
13
0
13

query I rowsort
SELECT ALL col2 * + + col1 * - - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT 69 DIV + ( - 21 ) - - 96 * + - 60 FROM tab1
----
-5763
-5763
-5763

skipif mysql # not compatible
query I rowsort label-1844
SELECT 69 / + ( - 21 ) - - 96 * + - 60 FROM tab1
----
-5763
-5763
-5763

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - + col0 DIV - 76 + + - col1 AS col0 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - + col0 / - 76 + + - col1 AS col0 FROM tab0 AS cor0
----
-20
-81
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN + 23 + + - col0 AND - - col1
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * 90 IS NOT NULL
----

query I rowsort
SELECT col1 / 33 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL CAST( 85 AS SIGNED ) col0 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1849
SELECT ALL CAST ( 85 AS INTEGER ) col0 FROM tab0 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * - col2 col1 FROM tab1 cor0
----
2773
3196
4512

query I rowsort
SELECT DISTINCT col2 * - 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND + col0
----

query II rowsort
SELECT ALL col1, - col0 + - col1 AS col2 FROM tab1
----
14
-65
47
-138
5
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT SUM( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1854
SELECT SUM ( DISTINCT + ( - col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - COUNT( * ) * - - 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1855
SELECT - COUNT ( * ) * - - 69 FROM tab2
----
-207

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2 + + + col0 - + col1 * 22 * col1 * col2 * 6 )
----

query I rowsort
SELECT DISTINCT - 50 * 34 FROM tab1 AS cor0
----
-1700

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 62, col1 AS col0 FROM tab1 AS cor0
----
62
14
62
47
62
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - + 40 ) FROM tab2 AS cor0 WHERE - col0 = NULL
----

query I rowsort
SELECT ALL + - AVG ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT + + col1 DIV + 24 + col2 - + col1 AS col2 FROM tab1 cor0
----
22
54
82

skipif mysql # not compatible
query I rowsort label-1863
SELECT + + col1 / + 24 + col2 - + col1 AS col2 FROM tab1 cor0
----
22
54
82

query I rowsort
SELECT 51 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1865
SELECT - - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col0 * ( - 34 ) * - + 28 - - col1 + - + col2 + + + col0 * + 75 * 85 BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL + 77 * - + col0 * 71, - col1 AS col2 FROM tab2
----
-251482
-51
-349888
-77
-410025
-67

query I rowsort
SELECT ALL + col1 + + col2 * - ( 66 ) AS col0 FROM tab1 AS cor0
----
-3889
-4441
-6322

query I rowsort
SELECT + ( col1 ) - - col0 * - ( - col2 ) FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT + 4 DIV + 21 * + 51 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1870
SELECT + 4 / + 21 * + 51 - + - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * + col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT + 85 + - - col1 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT - col2 + 27 FROM tab0
----
-20
-72
17

query I rowsort
SELECT DISTINCT ( 97 ) AS col2 FROM tab2
----
97

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 35 * 80 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 * - + 41 + + - col2 + + + col1 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col2 * + CAST( NULL AS SIGNED ) * 43 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT col2 * + CAST ( NULL AS INTEGER ) * 43 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT - + 24 * + 20 FROM tab1 AS cor0
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL - 50 * - COUNT( * ) - - CAST( NULL AS SIGNED ) * + 22 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - 50 * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 22 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL CAST( NULL AS SIGNED ) * + - col0 FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL CAST ( NULL AS INTEGER ) * + - col0 FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT - ( CAST( + col2 AS SIGNED ) ) * - col2 + + 47 AS col0 FROM tab1 WHERE NOT - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-1882
SELECT - ( CAST ( + col2 AS INTEGER ) ) * - col2 + + 47 AS col0 FROM tab1 WHERE NOT - + col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - 97 + - - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT COUNT( 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT COUNT ( 30 ) FROM tab1
----
3

query I rowsort
SELECT 91 * + 48 FROM tab1
----
4368
4368
4368

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT + + col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - + col0 * - ( - 66 ) AS col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1888
SELECT + col2 + - - CAST( NULL AS SIGNED ) - + + ( + + col0 ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1888
SELECT + col2 + - - CAST ( NULL AS INTEGER ) - + + ( + + col0 ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT ( - + 55 ) AS col0 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL - 69 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - 69 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col2 col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - col0 + + + col2 * - col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT MIN( DISTINCT col0 ) + - 9 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT MIN ( DISTINCT col0 ) + - 9 FROM tab1 cor0
----
42

query I rowsort
SELECT 50 - - col2 FROM tab1 AS cor0
----
109
118
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - - ( + COUNT( * ) ) * ( + COUNT( - col0 ) ) + + 66 AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1896
SELECT - - ( + COUNT ( * ) ) * ( + COUNT ( - col0 ) ) + + 66 AS col0 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - - ( + 95 ) - - 7 AS col2, - 97 col2 FROM tab2
----
4852
-97
6372
-97
7322
-97

query I rowsort
SELECT + + 92 + - + col0 + col2 / col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT CAST( 19 AS SIGNED ) + - + col1 FROM tab0
----
-2
-62
18

skipif mysql # not compatible
query I rowsort label-1899
SELECT CAST ( 19 AS INTEGER ) + - + col1 FROM tab0
----
-2
-62
18

query I rowsort
SELECT ALL 50 - - - 83 AS col1 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND 38
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT - CAST( - - 36 AS SIGNED ) * - + col2 FROM tab1
----
2124
2448
3456

skipif mysql # not compatible
query I rowsort label-1903
SELECT - CAST ( - - 36 AS INTEGER ) * - + col2 FROM tab1
----
2124
2448
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 col1, 32 FROM tab1 cor0
----
-26
32
-26
32
-26
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT 97 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT 97 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 * + col2, - col1 AS col0 FROM tab0 AS cor0
----
-705
-81
-870
-21
-9603
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT SUM( - - 97 ) * + 32 AS col1 FROM tab2 AS cor0
----
9312

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT SUM ( - - 97 ) * + 32 AS col1 FROM tab2 AS cor0
----
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * - - col1 col0, 65 - - col1 + + - col0 + col0 AS col0 FROM tab2 cor0
----
2601
116
4489
132
5929
142

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col2 ) ) > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT 45 DIV - COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1912
SELECT 45 / - COUNT ( * ) AS col2 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1913
SELECT - 49 DIV 82 DIV ( + + col0 ) col1, + col0 + - 83 FROM tab1
----
0
-32
0
2
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1913
SELECT - 49 / 82 / ( + + col0 ) col1, + col0 + - 83 FROM tab1
----
0
-32
0
2
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL + 17 DIV - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 17 / - + col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 0 AS col1 FROM tab2
----
-51
0
-67
0
-77
0

query II rowsort
SELECT + col0, + col0 * - ( + 27 ) AS col2 FROM tab0
----
15
-405
87
-2349
97
-2619

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - col1 ) = + 67 + 9
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) + + col2 * - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT - COUNT( * ) AS col2, MAX( col1 ) FROM tab1 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-1920
SELECT - COUNT ( * ) AS col2, MAX ( col1 ) FROM tab1 AS cor0
----
-3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * 35 + - + col1 - + col0 * 91 + + col2 col2, + 92 + - col1 AS col2 FROM tab1 AS cor0
----
-5049
78
-7856
87
-9905
45

query I rowsort
SELECT ALL col2 * - + col0 - ( - col2 ) * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-179634
-19404
-2970

query I rowsort
SELECT 87 + - col1 AS col0 FROM tab1 AS cor0
----
40
73
82

query I rowsort
SELECT DISTINCT col0 - ( - col1 ) AS col2 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT 54, - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54
-51
54
-85
54
-91

query I rowsort
SELECT ALL col1 - - 94 AS col2 FROM tab0
----
115
175
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col0 * 61 - - col1 * + col1 FROM tab2
----
162089
269839
67139

onlyif mysql # DIV for integer division: 
query II rowsort label-1929
SELECT DISTINCT + col1 col0, - 8 DIV + + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1929
SELECT DISTINCT + col1 col0, - 8 / + + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( 17 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL - COUNT( * ) * - 6 * COUNT( * ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - COUNT ( * ) * - 6 * COUNT ( * ) AS col2 FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT + 1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 1 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - COUNT( * ) * - - 98 AS col0 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1934
SELECT - COUNT ( * ) * - - 98 AS col0 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT - - col1 * - col2 * col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) > 24 + + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + - col1 ) * 82 BETWEEN - col0 + - CAST( col2 AS SIGNED ) + + + 66 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1937
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + - col1 ) * 82 BETWEEN - col0 + - CAST ( col2 AS INTEGER ) + + + 66 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 36 * - col2 col1 FROM tab0 AS cor0
----
352836
3600
79524

query I rowsort
SELECT - col2 * - col1 + - + 34 FROM tab0 cor0
----
176
3773
65

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT + - 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT MIN( - + 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT MIN ( - + 26 ) FROM tab0
----
-26

query I rowsort
SELECT ALL col1 * - 86 * col1 FROM tab2
----
-223686
-386054
-509894

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT + col0 DIV + 26 + + col1 AS col0 FROM tab0
----
24
4
81

skipif mysql # not compatible
query I rowsort label-1943
SELECT + col0 / + 26 + + col1 AS col0 FROM tab0
----
24
4
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * + col1 * - + col1 * - col1 * col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1944
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * + col1 * - + col1 * - col1 * col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + MAX( ALL - - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1946
SELECT + MAX ( ALL - - col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

query I rowsort
SELECT ALL 73 + - col0 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT DISTINCT + col0 + - - 93 AS col1 FROM tab1 cor0
----
144
178
184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL > + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT + + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + 12 + ( + + SUM( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 12 + ( + + SUM ( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
133

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( 24 ) + + col0 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col1 * col2 + col1
----

query I rowsort
SELECT ALL - col2 + ( - 54 ) FROM tab0 WHERE - 22 + + 22 IN ( - + col0 )
----

query I rowsort
SELECT ALL 23 * ( + col0 ) FROM tab0
----
2001
2231
345

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - + MAX( DISTINCT 4 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT - + MAX ( DISTINCT 4 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

query II rowsort
SELECT col2 * - col2, 98 AS col2 FROM tab0
----
-100
98
-2209
98
-9801
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT DISTINCT - MAX( ALL + + col2 ), - CAST( NULL AS SIGNED ) / - - SUM( ALL - col0 ) AS col0 FROM tab1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1960
SELECT DISTINCT - MAX ( ALL + + col2 ), - CAST ( NULL AS INTEGER ) / - - SUM ( ALL - col0 ) AS col0 FROM tab1
----
-96
NULL

query II rowsort
SELECT DISTINCT - ( - - col0 ) AS col1, col0 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < + ( + col0 ) + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + col2 * - 95 NOT BETWEEN col2 - + - col0 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT MIN( 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT MIN ( 58 ) FROM tab1 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 73 * + + col2 * 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT col2 + + 35 FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - COUNT( * ) * + 36 AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - COUNT ( * ) * + 36 AS col1 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT - 30 + - - col0 AS col2 FROM tab2 AS cor0
----
16
34
45

query I rowsort
SELECT - col2 * + - 66 + + 26 AS col1 FROM tab0 cor0
----
3128
6560
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + - 30 col2 FROM tab0
----
-29
411
6531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1974
SELECT col0 * + + col2 / - col0 / CAST( NULL AS SIGNED ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0
----
NULL
-66
NULL
-66
NULL
-66

skipif mysql # not compatible
query II rowsort label-1974
SELECT col0 * + + col2 / - col0 / CAST ( NULL AS INTEGER ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0
----
NULL
-66
NULL
-66
NULL
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + 83 AS col1, col2 col1 FROM tab2
----
-1909
23
-3320
40
-4814
58

query I rowsort
SELECT ALL + col1 * - 23 * col0 AS col2 FROM tab1
----
-16422
-9775
-98371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT DISTINCT - 57 * + col1 + + ( - col2 ) * + CAST( NULL AS SIGNED ) * - col1 - + + col0, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1977
SELECT DISTINCT - 57 * + col1 + + ( - col2 ) * + CAST ( NULL AS INTEGER ) * - col1 - + + col0, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL 16 + - - col2 AS col2 FROM tab2 AS cor0
----
39
56
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - CAST( NULL AS SIGNED ) + - MIN( - col0 ) * + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - CAST ( NULL AS INTEGER ) + - MIN ( - col0 ) * + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - + MIN( ALL - + col1 ) + - 69 AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1980
SELECT - + MIN ( ALL - + col1 ) + - 69 AS col0 FROM tab1 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 IS NOT NULL ) OR + 77 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * + col2 FROM tab0 AS cor0
----
786
891
9604

query II rowsort
SELECT + + ( 81 ), + col0 AS col0 FROM tab0 cor0
----
81
15
81
87
81
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT + + CAST( + + COUNT( DISTINCT + + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1984
SELECT + + CAST ( + + COUNT ( DISTINCT + + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT col1 - - ( + + 77 ) AS col1 FROM tab0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL COUNT( + col1 ) FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( + col1 ) FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + 32 * - + ( - col2 ) AS col1 FROM tab2
----
1280
1856
736

query I rowsort
SELECT DISTINCT + col2 * + 7 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT - 2 FROM tab0 WHERE NOT + col2 IN ( - + 16, 55 )
----
-2

query I rowsort
SELECT ( ( - + col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT - CAST( 51 AS SIGNED ) / + 32 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col1
----

skipif mysql # not compatible
query I rowsort label-1992
SELECT - CAST ( 51 AS INTEGER ) / + 32 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( * ) * 23 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( * ) * 23 AS col1 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT DISTINCT - - 94 DIV + - 31 col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT DISTINCT - - 94 / + - 31 col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 * + col2 <> col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + 31 ) AND col2 * 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab2 WHERE 36 + col0 / + CAST( NULL AS SIGNED ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab2 WHERE 36 + col0 / + CAST ( NULL AS INTEGER ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col0 ) col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE 73 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 + - col1 < - col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + 32 FROM tab0
----
-119
-129
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT * FROM tab2 WHERE NOT + col2 > + 19 - CAST( + 10 AS SIGNED ) * + 52
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT * FROM tab2 WHERE NOT + col2 > + 19 - CAST ( + 10 AS INTEGER ) * + 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + col0 + - col0 col2 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT ALL + col1 * - 60 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT 17 - col2 DIV + col2 AS col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2006
SELECT 17 - col2 / + col2 AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL col2 + + col1 * 10 AS col2 FROM tab1
----
109
236
538

query I rowsort
SELECT col2 * + col1 + + 52 * ( + col2 ) AS col0 FROM tab0
----
5247
6251
730

query I rowsort
SELECT col2 + - col0 FROM tab0 WHERE ( 13 + col0 ) IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT 45 > + col0 / 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT 28 * COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT 28 * COUNT ( * ) AS col1 FROM tab1
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 66 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT - col1 DIV + 3 + 16 AS col1 FROM tab2
----
-1
-6
-9

skipif mysql # not compatible
query I rowsort label-2013
SELECT - col1 / + 3 + 16 AS col1 FROM tab2
----
-1
-6
-9

query I rowsort
SELECT ALL 89 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * ( 45 ) + 24 * - 70 FROM tab1
----
-3975
-5505
-5775

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 * + ( - 76 ) FROM tab2
----
-6764
-6764
-6764

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 + - 4 = ( col0 )
----

query I rowsort
SELECT + col2 * + 54 AS col2 FROM tab0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT ( - MIN( col1 ) ) AS col1 FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT ( - MIN ( col1 ) ) AS col1 FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT 1 * - col1 AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - 32 + - col0 AS col0 FROM tab1
----
-117
-123
-83

query I rowsort
SELECT - col0 * + 89 AS col1 FROM tab1
----
-4539
-7565
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE ( + col2 ) BETWEEN ( + col0 - 74 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT COUNT( * ) + 12 FROM tab0 WHERE ( - col2 * col1 ) > NULL
----
12

skipif mysql # not compatible
query I rowsort label-2026
SELECT COUNT ( * ) + 12 FROM tab0 WHERE ( - col2 * col1 ) > NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2027
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col0 + + CAST( col2 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2027
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col0 + + CAST ( col2 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 76 FROM tab1 WHERE NOT - 77 BETWEEN ( NULL ) AND - 79
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT + 9 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + 9 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - SUM( ALL 65 ) AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-2030
SELECT - SUM ( ALL 65 ) AS col2 FROM tab1
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT DISTINCT col1 DIV - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT col1 / - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL + SUM( - 83 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + SUM ( - 83 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-246

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT col2 + - 7 FROM tab0 AS cor0 WHERE NOT ( col2 ) >= - 97 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 - + CAST( + col0 AS SIGNED ) <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 - + CAST ( + col0 AS INTEGER ) <> ( col1 )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 WHERE ( col0 + - 76 ) NOT BETWEEN - 87 + - col2 AND - col1 + 61
----
34
34

query I rowsort
SELECT ALL + col1 * ( col1 ) AS col2 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( 1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( 2 ) FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2043
SELECT DISTINCT + col2 + - CAST( - col1 + - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + col2 + - CAST ( - col1 + - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 - - ( col2 ) < - col1 + + 78
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 42 + - CAST( NULL AS SIGNED ) > col2
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 42 + - CAST ( NULL AS INTEGER ) > col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 86 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL - MIN( ALL col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - MIN( 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2050
SELECT - MIN ( 53 ) FROM tab0 AS cor0
----
-53

query II rowsort
SELECT 65, 45 AS col1 FROM tab1
----
65
45
65
45
65
45

query II rowsort
SELECT + 17 AS col2, col0 AS col2 FROM tab0
----
17
15
17
87
17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - MIN( + + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2053
SELECT - MIN ( + + col1 ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + - col0 * + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2055
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col1 + + 41 > + CAST( - col0 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2055
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col1 + + 41 > + CAST ( - col0 AS INTEGER )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 * col1 <= ( col0 )
----

query I rowsort
SELECT + - col0 + + 58 * col2 * col1 AS col0 FROM tab2 AS cor0
----
178576
225313
67988

query I rowsort
SELECT col2 + + - col0 * - 44 AS col0 FROM tab0 AS cor0
----
3838
4367
707

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2059
SELECT ALL CAST( NULL AS DECIMAL ) + + 58 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL CAST ( NULL AS REAL ) + + 58 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 50 ) = col1
----

query I rowsort
SELECT - - 49 + - 3 * - - col1 AS col1 FROM tab2 AS cor0
----
-104
-152
-182

query II rowsort
SELECT ALL - - 96 AS col1, + col2 + + - col0 + col0 * 71 AS col0 FROM tab0 AS cor0
----
96
1097
96
6100
96
6889

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT DISTINCT - COUNT( * ), 87 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT - COUNT ( * ), 87 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT + 1 * + + col1 DIV 40 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 1 * + + col1 / 40 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 96 * - COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2066
SELECT 96 * - COUNT ( * ) AS col0 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + AVG ( DISTINCT col2 ) + - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT + AVG ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL - ( 93 ) FROM tab0 WHERE NOT ( col0 * + CAST( + col0 AS SIGNED ) + 47 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - ( 93 ) FROM tab0 WHERE NOT ( col0 * + CAST ( + col0 AS INTEGER ) + 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT COUNT( * ) + + ( + 8 ) col0 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2069
SELECT DISTINCT COUNT ( * ) + + ( + 8 ) col0 FROM tab0
----
11

query I rowsort
SELECT + ( - - 17 ) / - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 55 + + 69 AS col1 FROM tab1 AS cor0
----
-3176
-3671
-5211

query III rowsort
SELECT * FROM tab2 cor0 WHERE 85 <= - col1 * - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 58 + ( - col0 ) FROM tab1 AS cor0
----
-27
-33
7

query I rowsort
SELECT col0 - 33 + + 42 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT ALL - col2 + - - ( col0 ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT MAX( DISTINCT + 24 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2076
SELECT MAX ( DISTINCT + 24 ) FROM tab2 AS cor0
----
24

query II rowsort
SELECT + col2, - col0 + - col0 + + col2 * + 78 AS col0 FROM tab1 AS cor0
----
59
4432
68
5122
96
7386

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 9 * + + col2 + 25 - col0 IS NOT NULL
----

query II rowsort
SELECT + - col1 * - col0 - col2 AS col2, - col2 FROM tab2 AS cor0
----
2323
-23
4888
-40
4967
-58

query I rowsort
SELECT - col0 * - 74 AS col0 FROM tab2 cor0
----
3404
4736
5550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 >= - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT COUNT( * ) * - ( - 45 ) * 8 + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT COUNT ( * ) * - ( - 45 ) * 8 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + + MIN( DISTINCT 14 ) * ( - + 30 ) FROM tab0 AS cor0
----
-420

skipif mysql # not compatible
query I rowsort label-2083
SELECT + + MIN ( DISTINCT 14 ) * ( - + 30 ) FROM tab0 AS cor0
----
-420

query I rowsort
SELECT ALL col0 * + - 60 AS col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * - + col2 NOT IN ( + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col1, - col0 + col2 col0 FROM tab2
----
-2601
-23
-4489
-17
-5929
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + CAST( + MIN( + col0 ) AS SIGNED ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + CAST ( + MIN ( + col0 ) AS INTEGER ) AS col1 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 8 AS col0, - 18 AS col1 FROM tab2
----
8
-18
8
-18
8
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2090
SELECT ALL MIN( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL MIN ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2091
SELECT DISTINCT 64 AS col2, CAST( - ( + col0 ) AS SIGNED ) DIV col1 FROM tab1
----
64
-1
64
-17
64
-3

skipif mysql # not compatible
query II rowsort label-2091
SELECT DISTINCT 64 AS col2, CAST ( - ( + col0 ) AS INTEGER ) / col1 FROM tab1
----
64
-1
64
-17
64
-3

query II rowsort
SELECT ALL col0, 61 AS col1 FROM tab2
----
46
61
64
61
75
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL 28 * - COUNT( * ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 28 * - COUNT ( * ) AS col1 FROM tab1
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2094
SELECT ALL - AVG ( ALL + 37 ) + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - AVG ( ALL + 37 ) + - CAST ( NULL AS REAL ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 23 + - - 14
----

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 23 + - - 14
----

query I rowsort
SELECT + - 96 AS col2 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - - 52 * - - col1 AS col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) * + + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - - ( + col2 ) + + col2 + + col1 + col0 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL 13 * + 36 FROM tab0
----
468
468
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col1 * + col2 col0 FROM tab0
----
-14280
-258876
-6732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2103
SELECT ( - - CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2103
SELECT ( - - CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

query II rowsort
SELECT DISTINCT + 21 + - 31, col0 AS col2 FROM tab1 AS cor0
----
-10
51
-10
85
-10
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + col0 AND + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + - SUM( 24 ) col1 FROM tab2 cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2106
SELECT ALL + - SUM ( 24 ) col1 FROM tab2 cor0
----
-72

query I rowsort
SELECT DISTINCT - + col0 + - ( - 52 ) FROM tab2 cor0
----
-12
-23
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2109
SELECT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 99 ) IS NULL )
----

query II rowsort
SELECT DISTINCT - 14, + 85 AS col2 FROM tab1
----
-14
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT 73 + - COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2112
SELECT 73 + - COUNT ( * ) AS col1 FROM tab0
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-2113
SELECT col2 DIV - + col2 + 83 AS col0, col0 AS col2 FROM tab2
----
82
46
82
64
82
75

skipif mysql # not compatible
query II rowsort label-2113
SELECT col2 / - + col2 + 83 AS col0, col0 AS col2 FROM tab2
----
82
46
82
64
82
75

query I rowsort
SELECT + col2 + + ( - 10 ) FROM tab1
----
49
58
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2116
SELECT 89 / + col0 + + + CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2116
SELECT 89 / + col0 + + + CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT ALL - 3, COUNT( * ) col0 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2117
SELECT ALL - 3, COUNT ( * ) col0 FROM tab1
----
-3
3

query I rowsort
SELECT DISTINCT + - 64 + - ( + 35 ) FROM tab1 cor0
----
-99

query I rowsort
SELECT DISTINCT col2 + 42 FROM tab1 AS cor0
----
101
110
138

query I rowsort
SELECT - - 13 * 96 AS col0 FROM tab0 AS cor0
----
1248
1248
1248

query I rowsort
SELECT + col2 * - col0 - col1 FROM tab0
----
-786
-891
-9604

query I rowsort
SELECT 79 * - - col2 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT ALL - 25 * - - 16 + - + 17 FROM tab1 AS cor0 WHERE - col1 * 14 / - 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col1 FROM tab0
----
30

query I rowsort
SELECT DISTINCT 79 * col0 FROM tab0 WHERE NOT - - 66 * col2 NOT BETWEEN col0 - - col1 AND ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT - col2 / + ( + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 WHERE NULL IN ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - col2 / + ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 WHERE NULL IN ( + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT - COUNT( ALL - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL col2 * + - 23 FROM tab2
----
-1334
-529
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 25 FROM tab1 cor0
----
25

query II rowsort
SELECT ALL - 33 * col1 * + + 60, col2 FROM tab0 AS cor0
----
-160380
47
-1980
99
-41580
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL - 34 DIV 11 + - col0 FROM tab1 AS cor0
----
-54
-88
-94

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - 34 / 11 + - col0 FROM tab1 AS cor0
----
-54
-88
-94

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + + COUNT( * ) * COUNT( * ) * 0 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT + + COUNT ( * ) * COUNT ( * ) * 0 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col1 * col1 * 23 AS col0 FROM tab1 AS cor0
----
4508
50807
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT + CAST( NULL AS SIGNED ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT + CAST ( NULL AS INTEGER ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - MIN( ALL + + 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - MIN ( ALL + + 8 ) FROM tab1
----
-8

query I rowsort
SELECT ALL - 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT - 23 * - 9 AS col1, 26 AS col2 FROM tab1
----
207
26
207
26
207
26

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - COUNT( * ) + 84 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - COUNT ( * ) + 84 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + 28 + 2 * + col2 / - - col2 + + - 74 * col0 / col0 IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + 28 + 2 * + col2 / - - col2 + + - 74 * col0 / col0 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - - col0 + - col0 + col2 + col2 * - + 55 AS col1 FROM tab1 AS cor0
----
-3186
-3672
-5184

query I rowsort
SELECT ALL + col1 + - col0 + + col1 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + CAST( NULL AS SIGNED ) + + 60 AS col2 FROM tab2 AS cor0 WHERE ( - + 69 ) + - 92 + - col1 / col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + CAST ( NULL AS INTEGER ) + + 60 AS col2 FROM tab2 AS cor0 WHERE ( - + 69 ) + - 92 + - col1 / col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT COUNT( * ) * MIN( - + 8 ) + + 19 AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2147
SELECT COUNT ( * ) * MIN ( - + 8 ) + + 19 AS col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT - COUNT( DISTINCT + 40 ) + 22 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT - COUNT ( DISTINCT + 40 ) + 22 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2149
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND - + 93
----

skipif mysql # not compatible
query III rowsort label-2149
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND - + 93
----

query I rowsort
SELECT + 89 * - 30 AS col0 FROM tab1
----
-2670
-2670
-2670

query I rowsort
SELECT ALL + col2 * - + col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - col0 ) * + - 80 * - - 1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 26 * + col0 + col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + MAX( ALL 19 ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2155
SELECT + MAX ( ALL 19 ) AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT col1 * + 83 AS col1 FROM tab1
----
1162
3901
415

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2159
SELECT DISTINCT 21 - - - 47 + + - col0 + + col0 * - col1 * + + col1 + 76 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 * + + CAST( NULL AS DECIMAL ), - 0, + 15 )
----

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT 21 - - - 47 + + - col0 + + col0 * - col1 * + + col1 + 76 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 * + + CAST ( NULL AS REAL ), - 0, + 15 )
----

query I rowsort
SELECT - 43 * - + col1 AS col0 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT - col0 * + col0 + - col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT ALL + - ( - + 69 ) AS col0 FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 + - - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + COUNT( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2164
SELECT + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + + 94 ) AS col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL ( + + 56 ) FROM tab0
----
56
56
56

query I rowsort
SELECT ( + 17 ) * ( - ( + 11 ) ) AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 23 ) col0, 91 - + 22 * + col0 + col1 AS col2 FROM tab0
----
23
-158
23
-1802
23
-2042

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) IN ( + col1, ( - col2 ), + 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2172
SELECT ALL + CAST( - - AVG ( DISTINCT col2 ) AS SIGNED ) * - 22 AS col1, + COUNT( * ) AS col0 FROM tab1
----
-1628
3

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL + CAST ( - - AVG ( DISTINCT col2 ) AS INTEGER ) * - 22 AS col1, + COUNT ( * ) AS col0 FROM tab1
----
-1628
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + COUNT( * ) + + 33 FROM tab2 WHERE NOT NULL < + + col1 - + - 58
----
33

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + COUNT ( * ) + + 33 FROM tab2 WHERE NOT NULL < + + col1 - + - 58
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 37 < NULL
----

query I rowsort
SELECT DISTINCT 46 * 13 * + col0 FROM tab1
----
30498
50830
54418

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT COUNT( * ) + + MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) + + MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + col0 * + col1 + - - col2 + - - col2 - + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2177
SELECT + col0 * + col1 + - - col2 + - - col2 - + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT ( + col2 ) + 98 FROM tab0 AS cor0
----
108
145
197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2179
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-2179
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col0
----

query I rowsort
SELECT - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - col2 + + col0 * - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT COUNT( DISTINCT + + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT COUNT ( DISTINCT + + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col1 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 35 * col2 col1 FROM tab0 AS cor0
----
-1564
-329
-3464

query I rowsort
SELECT - col0 - + 50 + - 83 AS col1 FROM tab0 AS cor0
----
-148
-220
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT ALL - 26 DIV - + 37 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - 26 / - + 37 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 12 + - - col2 AS col2 FROM tab0 AS cor0
----
-2
35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL - + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT SUM( + col1 ) FROM tab1 AS cor0 WHERE + 68 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT SUM ( + col1 ) FROM tab1 AS cor0 WHERE + 68 IS NOT NULL
----
66

query I rowsort
SELECT 30 FROM tab2 cor0 WHERE col0 + + 72 >= + col0 * - + 53 / + col2 - + col2
----
30
30
30

query III rowsort
SELECT * FROM tab2 WHERE col2 >= - 58 * - + 98 - + col0 * + col1
----

query I rowsort
SELECT ALL col0 - col2 * - - col2 FROM tab0
----
-13
-2194
-9704

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( + 61 ), ( col0 ), + 85, col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= ( - col2 ) / - + col2
----

query I rowsort
SELECT DISTINCT + col1 - - ( col0 ) FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - col2 DIV + col1 + 99 FROM tab0
----
0
99
99

skipif mysql # not compatible
query I rowsort label-2199
SELECT - col2 / + col1 + 99 FROM tab0
----
0
99
99

query I rowsort
SELECT + ( + - col0 ) + - - col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col0 + ( + 14 ) * col2 AS col2 FROM tab2
----
276
496
737

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT + COUNT( - ( col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + COUNT ( - ( col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ( + - MIN( DISTINCT - - col0 ) ) col1 FROM tab2 WHERE NULL IS NULL
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT ( + - MIN ( DISTINCT - - col0 ) ) col1 FROM tab2 WHERE NULL IS NULL
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT ALL + + CAST( col1 AS SIGNED ) AS col0, col0 - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + - - col2 * - col0
----

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL + + CAST ( col1 AS INTEGER ) AS col0, col0 - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + - - col2 * - col0
----

query II rowsort
SELECT DISTINCT col1 AS col0, col1 + 4 FROM tab2 cor0
----
51
55
67
71
77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ( + - col2 ) DIV - col1 + 95 AS col0 FROM tab0
----
194
95
95

skipif mysql # not compatible
query I rowsort label-2209
SELECT ( + - col2 ) / - col1 + 95 AS col0 FROM tab0
----
194
95
95

query I rowsort
SELECT - col2 * + 54 * + - col2 FROM tab2
----
181656
28566
86400

onlyif mysql # DIV for integer division: 
query II rowsort label-2211
SELECT DISTINCT col1 DIV + col2, col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-2211
SELECT DISTINCT col1 / + col2, col0 FROM tab2
----
1
64
1
75
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - SUM( ALL + - 88 ) * - COUNT( - col1 ) FROM tab0
----
-792

skipif mysql # not compatible
query I rowsort label-2212
SELECT - SUM ( ALL + - 88 ) * - COUNT ( - col1 ) FROM tab0
----
-792

query I rowsort
SELECT ALL - 41 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 64 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2214
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 64 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + + col1 * 53, 88 AS col0 FROM tab0 AS cor0
----
1113
88
4293
88
53
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + - ( - MAX( DISTINCT + - col0 ) ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT + - ( - MAX ( DISTINCT + - col0 ) ) col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37

query I rowsort
SELECT - 62 * 61 AS col2 FROM tab2 AS cor0
----
-3782
-3782
-3782

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - - col1
----

query II rowsort
SELECT col0 AS col1, col1 FROM tab2 cor0 WHERE 89 > - - col0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT + COUNT( * ) + - 90 DIV SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COUNT ( * ) + - 90 / SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 52 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 + - - col0 + col1 * + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 + - - col0 + col1 * + - col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - COUNT( DISTINCT - + 11 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - COUNT ( DISTINCT - + 11 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 98 + col2 FROM tab1 cor0
----
-2
-30
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2231
SELECT - + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2231
SELECT - + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + MIN( ALL + 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2232
SELECT + MIN ( ALL + 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 55 * col1 + - + col0 col0 FROM tab1 AS cor0
----
-2676
-360
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT MAX( - + 28 ) + - COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT MAX ( - + 28 ) + - COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2235
SELECT ALL * FROM tab2 AS cor0 WHERE 81 BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 91 * col2
----

skipif mysql # not compatible
query III rowsort label-2235
SELECT ALL * FROM tab2 AS cor0 WHERE 81 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 91 * col2
----

query I rowsort
SELECT ALL col2 - - - col0 * col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT ALL - col2 * - CAST( + - 7 AS SIGNED ) * + - ( col1 ) AS col1 FROM tab0
----
1470
26649
693

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - col2 * - CAST ( + - 7 AS INTEGER ) * + - ( col1 ) AS col1 FROM tab0
----
1470
26649
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 - - col1 + + + col0 FROM tab0
----
111
195
195

query I rowsort
SELECT ALL - ( - col0 ) - - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL SUM ( ALL - col0 ) FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
59
68
96

query II rowsort
SELECT + + 23, + col0 + + 20 AS col2 FROM tab2 AS cor0
----
23
66
23
84
23
95

query I rowsort
SELECT + + col1 * - ( + + 98 ) AS col2 FROM tab2 AS cor0
----
-4998
-6566
-7546

onlyif mysql # DIV for integer division: 
query II rowsort label-2246
SELECT 39 DIV + - 58 + + 95, + col1 col1 FROM tab0 cor0
----
95
1
95
21
95
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2246
SELECT 39 / + - 58 + + 95, + col1 col1 FROM tab0 cor0
----
95
1
95
21
95
81

query I rowsort
SELECT - col2 - - + col2 AS col2 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - MIN( 17 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2248
SELECT - MIN ( 17 ) FROM tab0
----
-17

query II rowsort
SELECT ALL col0, - 91 AS col2 FROM tab2
----
46
-91
64
-91
75
-91

query III rowsort
SELECT ALL - col1 AS col0, col0 * col2 * col2 AS col2, + - 32 + + 3 + - 65 + - col0 * + 78 FROM tab1 AS cor0
----
9 values hashing to 9e010f4193441e57aa7b9c6fcf3e39c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT DISTINCT + 70 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3290
6930
700

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 70 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - COUNT( * ) * + 73 + - 93 AS col1 FROM tab1 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-2254
SELECT - COUNT ( * ) * + 73 + - 93 AS col1 FROM tab1 AS cor0
----
-312

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + + col2 / + + col2 <= NULL
----

query II rowsort
SELECT - 53, col1 AS col1 FROM tab0 AS cor0
----
-53
1
-53
21
-53
81

query I rowsort
SELECT DISTINCT - 27 FROM tab0 AS cor0 WHERE NOT col1 - col1 >= - ( + - 84 )
----
-27

query I rowsort
SELECT - col1 * 31 - 66 + - - col2 + 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - col2 AND + col2
----

query I rowsort
SELECT + - 39 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 68, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2261
SELECT DISTINCT 54 DIV COUNT( * ) AS col2, - ( - CAST( COUNT( * ) AS SIGNED ) ) col0 FROM tab1
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2261
SELECT DISTINCT 54 / COUNT ( * ) AS col2, - ( - CAST ( COUNT ( * ) AS INTEGER ) ) col0 FROM tab1
----
18
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - col2 DIV 78 + ( - col0 ) + - col1 - + 68 AS col0 FROM tab2
----
-165
-209
-210

skipif mysql # not compatible
query I rowsort label-2263
SELECT - col2 / 78 + ( - col0 ) + - col1 - + 68 AS col0 FROM tab2
----
-165
-209
-210

query I rowsort
SELECT - col1 * - ( - - col2 ) * + + 7 + - - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
21677
27327
8285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT ALL - + 8 * - + CAST( + - MIN( - col1 ) AS SIGNED ) * - CAST( - 83 AS SIGNED ) + - 44 col1 FROM tab1 AS cor0 WHERE NULL IN ( + 36, 26, - col2, - 85, col1, + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT ALL - + 8 * - + CAST ( + - MIN ( - col1 ) AS INTEGER ) * - CAST ( - 83 AS INTEGER ) + - 44 col1 FROM tab1 AS cor0 WHERE NULL IN ( + 36, 26, - col2, - 85, col1, + col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 = + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2267
SELECT 19 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 19 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 57 AS col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT ALL ( - + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT COUNT( - + col2 ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2270
SELECT COUNT ( - + col2 ) * + - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + MAX( - 94 ) + - + COUNT( * ) * + + 68 * - ( + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23162

skipif mysql # not compatible
query I rowsort label-2271
SELECT + MAX ( - 94 ) + - + COUNT ( * ) * + + 68 * - ( + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT 71 - MIN( ALL + 15 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2273
SELECT 71 - MIN ( ALL + 15 ) / - COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 <= + col0
----
-23
-40
-58

query I rowsort
SELECT ALL 62 * + col1 + - 28 FROM tab2 AS cor0
----
3134
4126
4746

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2276
SELECT DISTINCT - SUM( + 23 ) - + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - SUM ( + 23 ) - + - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + col1, col0 )
----

query I rowsort
SELECT ALL + + 69 + + - 6 AS col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * 88, + col1, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( ( + 87 ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2281
SELECT - COUNT ( ( + 87 ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 26 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - COUNT( * ) * - + COUNT( * ) - - 76 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
76

skipif mysql # not compatible
query I rowsort label-2283
SELECT - COUNT ( * ) * - + COUNT ( * ) - - 76 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
76

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - + 21 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + - 72 + col1 col2 FROM tab1 AS cor0
----
-14
-23
19

query II rowsort
SELECT + 61 + + col0 + + + col2, + col0 FROM tab1 cor0
----
205
85
208
51
220
91

query I rowsort
SELECT DISTINCT + 40 + - 63 * - 60 FROM tab2 AS cor0
----
3820

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL 82 * - - COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 82 * - - COUNT ( * ) FROM tab2
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT 76 DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2289
SELECT 76 / + col0 AS col2 FROM tab0
----
0
0
5

query II rowsort
SELECT + col0, - col1 * + ( + + col2 ) - 1 AS col2 FROM tab0
----
15
-3808
87
-211
97
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT DISTINCT - CAST( - ( - MIN( - col0 ) ) AS SIGNED ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - CAST ( - ( - MIN ( - col0 ) ) AS INTEGER ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT MAX( 31 ) * 16 AS col2 FROM tab2
----
496

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT MAX ( 31 ) * 16 AS col2 FROM tab2
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL SUM( - - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL SUM ( - - col2 ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL COUNT( + 95 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL COUNT ( + 95 ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT ALL col1 + 20 AS col1 FROM tab1
----
25
34
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN + + col1 AND - - 37
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 76 * + + 98 BETWEEN NULL AND col0 / + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT DISTINCT + col0 + + + col2 DIV + - 41 AS col0 FROM tab1 AS cor0
----
49
84
90

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + col0 + + + col2 / + - 41 AS col0 FROM tab1 AS cor0
----
49
84
90

query II rowsort
SELECT DISTINCT + + 87, col2 AS col1 FROM tab2 AS cor0
----
87
23
87
40
87
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab2 WHERE - 47 + - col1 IS NOT NULL
----
47

query I rowsort
SELECT DISTINCT - 57 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + 77 DIV - 95 col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT + 77 / - 95 col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2303
SELECT CAST( + 93 AS SIGNED ) col2, - col0 FROM tab0 AS cor0
----
93
-15
93
-87
93
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2303
SELECT CAST ( + 93 AS INTEGER ) col2, - col0 FROM tab0 AS cor0
----
93
-15
93
-87
93
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT - COUNT( * ) * - AVG ( ALL 81 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) * - AVG ( ALL 81 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT - + 96 DIV + col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT - + 96 / + col2 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT + col2 * 89 - col2 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 87 + col0 + - 89 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 73 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2308
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 73 - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2309
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2, + col2 + col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2309
SELECT DISTINCT + CAST ( NULL AS REAL ) col2, + col2 + col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

query I rowsort
SELECT - 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL col0 + + - CAST( - 17 AS SIGNED ) * + col2 FROM tab1
----
1088
1247
1683

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL col0 + + - CAST ( - 17 AS INTEGER ) * + col2 FROM tab1
----
1088
1247
1683

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT - col2 DIV - 28 + - 68 AS col2 FROM tab0
----
-65
-67
-68

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - col2 / - 28 + - 68 AS col2 FROM tab0
----
-65
-67
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT ALL - - COUNT( * ) + - 10 AS col2, + MIN( ALL - col2 ) + + + COUNT( * ) FROM tab0 AS cor0
----
-7
-96

skipif mysql # not compatible
query II rowsort label-2313
SELECT ALL - - COUNT ( * ) + - 10 AS col2, + MIN ( ALL - col2 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
-7
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT DISTINCT - COUNT( * ) * + ( + COUNT( * ) ) * + COUNT( * ) DIV - 49 + + 99 * - + COUNT( * ) * 15 FROM tab0 AS cor0
----
-4455

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT - COUNT ( * ) * + ( + COUNT ( * ) ) * + COUNT ( * ) / - 49 + + 99 * - + COUNT ( * ) * 15 FROM tab0 AS cor0
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT MIN( 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2315
SELECT MIN ( 89 ) FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ( - 17 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2316
SELECT ( - 17 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col2 * - + 94 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4418
-9306
-940

query II rowsort
SELECT + 44 * - col2, col2 AS col0 FROM tab1 AS cor0
----
-2596
59
-2992
68
-4224
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT DISTINCT COUNT( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0
----
19
44

skipif mysql # not compatible
query II rowsort label-2319
SELECT DISTINCT COUNT ( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0
----
19
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT 22 + - CAST( + SUM( DISTINCT - - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + + col0 )
----
-205

skipif mysql # not compatible
query I rowsort label-2320
SELECT 22 + - CAST ( + SUM ( DISTINCT - - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + + col0 )
----
-205

query I rowsort
SELECT ALL - col1 + 10 AS col1 FROM tab2 AS cor0
----
-41
-57
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT - ( - - ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2322
SELECT - ( - - ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 + - col0 + col1 * + 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 25 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 * 59 FROM tab0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL + ( - COUNT( * ) ) * + COUNT( * ) + 3 * + - ( - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + ( - COUNT ( * ) ) * + COUNT ( * ) + 3 * + - ( - COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - - 70 * + COUNT( * ) * MAX( ALL - col2 ) + 62 + - 69 AS col2 FROM tab1 AS cor0
----
-12397

skipif mysql # not compatible
query I rowsort label-2328
SELECT - - 70 * + COUNT ( * ) * MAX ( ALL - col2 ) + 62 + - 69 AS col2 FROM tab1 AS cor0
----
-12397

query I rowsort
SELECT DISTINCT - col0 - col2 + + col0 * + - col2 FROM tab1 cor0
----
-5043
-5159
-6347

query I rowsort
SELECT DISTINCT 33 - col1 + + - col1 FROM tab0
----
-129
-9
31

query I rowsort
SELECT + col2 - 60 FROM tab1
----
-1
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( + col0 ) - MAX( + col2 ) * COUNT( * ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( + col0 ) - MAX ( + col2 ) * COUNT ( * ) FROM tab0
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + ( + + col2 ) + + 69 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 88 AS col2, col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + 29 AS col1, - 2 AS col1 FROM tab0 cor0
----
29
-2
29
-2
29
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - - 67 * - MIN( + + 20 ) + - - ( + COUNT( * ) ) + ( SUM( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
-1522

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - - 67 * - MIN ( + + 20 ) + - - ( + COUNT ( * ) ) + ( SUM ( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
-1522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab0
----
69
69
69

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + ( 92 ) FROM tab2 AS cor0 WHERE NOT - 5 * + - col2 * + col0 * + col1 BETWEEN - col1 - - col1 / - col2 * - 27 * - col1 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT SUM( + ( + + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2343
SELECT SUM ( + ( + + col0 ) ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 98 + col0 + 84 AS col0 FROM tab1 AS cor0
----
37
71
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 58 > - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT DISTINCT + 96 + + - 30 - + MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + 96 + + - 30 - + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - ( - 97 ) FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - COUNT( * ) FROM tab0 WHERE 57 >= - - col1
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT - COUNT ( * ) FROM tab0 WHERE 57 >= - - col1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * - + 95 + + - col2 + col1 NOT BETWEEN NULL AND + 2
----

query I rowsort
SELECT DISTINCT - 35 * - col1 * col1 * - 79 AS col1 FROM tab2
----
-12412085
-16393685
-7191765

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT - ( 41 ) DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2351
SELECT - ( 41 ) / - col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) FROM tab2 WHERE ( + 16 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) FROM tab2 WHERE ( + 16 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 - + + col0 > - col0
----

query I rowsort
SELECT - 48 + + col2 AS col0 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT + + 41 FROM tab0 AS cor0 WHERE - 46 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, col2 + 99 / - 60 + + col1 + col2, 28 - col2, - 73 + - 46, - col0, + 8 )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 * ( - col2 ) FROM tab0 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT + + 77 DIV col0 AS col1 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + + 77 / col0 AS col1 FROM tab0 AS cor0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT - 18 DIV + - col1 FROM tab0 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-2359
SELECT - 18 / + - col1 FROM tab0 AS cor0
----
0
0
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT + + COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + + COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT col2 DIV + ( - col1 ) + - col1 AS col2 FROM tab0 cor0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-2361
SELECT col2 / + ( - col1 ) + - col1 AS col2 FROM tab0 cor0
----
-100
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + COUNT( ALL col0 ) FROM tab2 AS cor0 WHERE NOT col2 = + + ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT + COUNT ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT col2 = + + ( + col2 )
----
0

query I rowsort
SELECT - col1 * - col0 * + + 11 AS col1 FROM tab0 AS cor0
----
1067
13365
20097

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - 68 * col1, + col0 )
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( 76 ) FROM tab2
----
-51
-76
-67
-76
-77
-76

query II rowsort
SELECT ALL - 0, 80 AS col2 FROM tab1
----
0
80
0
80
0
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 col0 FROM tab1 WHERE - + 51 IS NOT NULL
----
138
65
90

query I rowsort
SELECT ALL + col0 * col2 * - col1 AS col2 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col2 col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT + + 41, col2 AS col0 FROM tab0 cor0
----
41
10
41
47
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - MAX( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - MAX ( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2372
SELECT DISTINCT - col2 col2, + CAST( + + 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
39
-47
39
-99
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2372
SELECT DISTINCT - col2 col2, + CAST ( + + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
39
-47
39
-99
39

query I rowsort
SELECT col0 + 42 AS col0 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL ( 13 ) AS col2 FROM tab0 AS cor0
----
13
13
13

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab1 AS cor1 ON + 98 * - 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 64 ) * - + 92 - + - 39 col0 FROM tab0 AS cor0
----
-5849
-5849
-5849

query I rowsort
SELECT ALL + col2 * - + 39 * + + col2 FROM tab2 cor0
----
-131196
-20631
-62400

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL + 34 * + + col1 AS col2 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT 37 + col2 + + 39 * - col0 AS col2 FROM tab0
----
-3346
-3647
-501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 + - + 89 col0 FROM tab1 AS cor0 WHERE - col2 < - - col1
----
-4985
-5104
-6277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT SUM( ALL - + 23 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-2383
SELECT SUM ( ALL - + 23 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT + col2 AS col1 FROM tab0 WHERE NOT + CAST( col1 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2384
SELECT + col2 AS col1 FROM tab0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2385
SELECT + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + COUNT( * ) * - 12 * + COUNT( * ) AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2386
SELECT + COUNT ( * ) * - 12 * + COUNT ( * ) AS col1 FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT - CAST( + 69 AS SIGNED ) FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2387
SELECT - CAST ( + 69 AS INTEGER ) FROM tab2
----
-69
-69
-69

query I rowsort
SELECT ALL 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - col2 * col1 * - ( - 12 ) AS col0 FROM tab2 cor0
----
-14076
-36960
-46632

query I rowsort
SELECT - 86 * - 73 FROM tab2 AS cor0
----
6278
6278
6278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 66 DIV - - 71 + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT DISTINCT 66 / - - 71 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - COUNT( * ) * + 99 AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2392
SELECT - COUNT ( * ) * + 99 AS col1 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT - 45 * + col2 * - + col0 * + - ( + + 74 ) FROM tab0
----
-2347650
-2897100
-31977990

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + - COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 IS NULL AND 8 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2397
SELECT DISTINCT + col2 AS col0, - 18 DIV + col1 + col1 FROM tab1
----
59
2
68
47
96
13

skipif mysql # not compatible
query II rowsort label-2397
SELECT DISTINCT + col2 AS col0, - 18 / + col1 + col1 FROM tab1
----
59
2
68
47
96
13

query III rowsort
SELECT * FROM tab0 WHERE ( 77 ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + + col1 * + 46 AS col2, - col2 FROM tab0 WHERE NULL IS NULL
----
3726
-47
46
-99
966
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - + ( + 92 ) + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - + ( + 92 ) + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-95

query I rowsort
SELECT ALL col0 + 92 AS col0 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE 39 = - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT - 60 * CAST( NULL AS SIGNED ) / col1 + 95 + + 25 AS col1 FROM tab2 AS cor0 WHERE NULL <= 1
----

skipif mysql # not compatible
query I rowsort label-2403
SELECT - 60 * CAST ( NULL AS INTEGER ) / col1 + 95 + + 25 AS col1 FROM tab2 AS cor0 WHERE NULL <= 1
----

query II rowsort
SELECT 80 AS col0, col2 AS col0 FROM tab1 AS cor0
----
80
59
80
68
80
96

query I rowsort
SELECT ALL col1 + + col0 - - col1 AS col0 FROM tab2 AS cor0
----
148
209
218

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 34
----

query I rowsort
SELECT + 14 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
14
14
14

query I rowsort
SELECT ALL - 0 * col2 - + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + 23 * + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 23 * + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 86 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - + COUNT( + + 2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2411
SELECT ALL - + COUNT ( + + 2 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT ALL - ( + 86 ), + MIN( + 11 ) AS col0 FROM tab2 AS cor0
----
-86
11

skipif mysql # not compatible
query II rowsort label-2412
SELECT ALL - ( + 86 ), + MIN ( + 11 ) AS col0 FROM tab2 AS cor0
----
-86
11

query I rowsort
SELECT ALL - + 39 * - + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-16575
-166803
-27846

query I rowsort
SELECT DISTINCT 83 * - col0 AS col2 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) > + col2 / + col0 + CAST( NULL AS SIGNED ) - - - col2
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) > + col2 / + col0 + CAST ( NULL AS INTEGER ) - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2417
SELECT DISTINCT 80, CAST( NULL AS SIGNED ) * + 23 * + col2 AS col1 FROM tab0 AS cor0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2417
SELECT DISTINCT 80, CAST ( NULL AS INTEGER ) * + 23 * + col2 AS col1 FROM tab0 AS cor0
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + 57 + + 95 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2418
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + 57 + + 95 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - 72 AS col2 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT ALL + - COUNT( * ) * - 33 + + COUNT( DISTINCT - 61 ) * - COUNT( DISTINCT ( col2 ) ) + - 32 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + - COUNT ( * ) * - 33 + + COUNT ( DISTINCT - 61 ) * - COUNT ( DISTINCT ( col2 ) ) + - 32 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT 82 * + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT 82 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT + 87 * 17 + + 17 + + COUNT( * ) * - 42 FROM tab1 AS cor0
----
1370

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + 87 * 17 + + 17 + + COUNT ( * ) * - 42 FROM tab1 AS cor0
----
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + - COUNT( ALL - + 14 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + - COUNT ( ALL - + 14 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 - + ( - - col0 ) AND 33 * - - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT - + col2 * + CAST( + ( 82 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

skipif mysql # not compatible
query I rowsort label-2425
SELECT - + col2 * + CAST ( + ( 82 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT SUM( 67 ) + + COUNT( * ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-2426
SELECT SUM ( 67 ) + + COUNT ( * ) AS col0 FROM tab0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT 19 DIV col1 * + col0 + + - col2 FROM tab1
----
-45
-68
196

skipif mysql # not compatible
query I rowsort label-2427
SELECT 19 / col1 * + col0 + + - col2 FROM tab1
----
-45
-68
196

query I rowsort
SELECT DISTINCT - col1 * + col2 * - + col0 AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT + col0 + - 12 - - col0 * + + 57 * + 72 * - col0 FROM tab1 AS cor0
----
-10674465
-29651327
-33985145

query I rowsort
SELECT + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL col1 + col1 + - + col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2432
SELECT DISTINCT - col0 * - col2 * col0 * 41 * 47 * + - CAST( NULL AS SIGNED ), col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT - col0 * - col2 * col0 * 41 * 47 * + - CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab0
----
-35

query I rowsort
SELECT col0 - + 36 FROM tab0
----
-21
51
61

query I rowsort
SELECT DISTINCT - 19 + + - 9 + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
16

query I rowsort
SELECT ALL + col1 * + 52 AS col2 FROM tab0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 16 ) col0 FROM tab2 AS cor0
----
16

query II rowsort
SELECT ALL + col0 + + col2 * - + col0 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
-4845
51
-4930
85
-6097
91

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE col1 BETWEEN + 48 AND - + ( + - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 * col0 + - 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 * col0 + - 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND - col2 / - + 39 * col0
----

query I rowsort
SELECT DISTINCT + col2 - - ( + - 47 ) * + col0 AS col0 FROM tab1 AS cor0
----
-2301
-3936
-4209

query I rowsort
SELECT ALL col1 + - + 24 AS col0 FROM tab1
----
-10
-19
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + COUNT( * ) - - - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 7 - + col0 + - col2 FROM tab0
----
-189
-55
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NULL >= 97
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= 97
----
0

query I rowsort
SELECT DISTINCT ( - + 21 ) AS col2 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - SUM( DISTINCT - + 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2448
SELECT - SUM ( DISTINCT - + 59 ) FROM tab1
----
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2450
SELECT DISTINCT CAST( NULL AS SIGNED ), 78 - + COUNT( * ) AS col2 FROM tab2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2450
SELECT DISTINCT CAST ( NULL AS INTEGER ), 78 - + COUNT ( * ) AS col2 FROM tab2
----
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2451
SELECT col2 DIV col0, - 20 AS col2 FROM tab1
----
0
-20
0
-20
1
-20

skipif mysql # not compatible
query II rowsort label-2451
SELECT col2 / col0, - 20 AS col2 FROM tab1
----
0
-20
0
-20
1
-20

query I rowsort
SELECT DISTINCT 15 * + 13 FROM tab0
----
195

query I rowsort
SELECT + ( - 56 ) AS col1 FROM tab1
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 19 ) col2, ( - col0 ) FROM tab2
----
19
-46
19
-64
19
-75

query I rowsort
SELECT DISTINCT 55 * - 28 * + 19 FROM tab2 WHERE NULL IS NULL OR NULL IS NULL
----
-29260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT DISTINCT COUNT( - col1 ) * + 66 DIV - COUNT( * ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT COUNT ( - col1 ) * + 66 / - COUNT ( * ) FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT - 19 + 31 + + 15 * + + col0 AS col0 FROM tab0 AS cor0
----
1317
1467
237

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL IN ( - col1, 40 * + + col2 + col2 * - - col1 + + col0 + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2459
SELECT ALL col0 col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2459
SELECT ALL col0 col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 13 + - - col2 + col1 FROM tab2 AS cor0
----
130
138
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + + COUNT( * ) DIV - COUNT( * ) - + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2461
SELECT + + COUNT ( * ) / - COUNT ( * ) - + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( + col0 ) * + col2 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT 24 - + col2 * ( + + col2 ) * + col0 * + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + + col0 * + 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT CAST( + 84 AS SIGNED ) FROM tab0 cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2467
SELECT CAST ( + 84 AS INTEGER ) FROM tab0 cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 44 + - - col2 IS NULL
----

query I rowsort
SELECT + col2 * col1 + + 71 - - + 97 * col0 FROM tab1 AS cor0
----
12094
6362
8611

query I rowsort
SELECT ALL - + col2 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - COUNT( ALL col2 ) FROM tab1 WHERE NULL = ( + col0 ) * col1 + + col0 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - COUNT ( ALL col2 ) FROM tab1 WHERE NULL = ( + col0 ) * col1 + + col0 * - 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT - col0 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2472
SELECT - col0 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( + 81 * - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL MIN( ALL col1 ) FROM tab0 WHERE + 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL MIN ( ALL col1 ) FROM tab0 WHERE + 86 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2476
SELECT ALL CAST( 69 AS DECIMAL ) AS col0 FROM tab0 WHERE ( - 87 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL CAST ( 69 AS REAL ) AS col0 FROM tab0 WHERE ( - 87 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 BETWEEN - col1 * + col0 AND NULL
----

query I rowsort
SELECT 36 + + col1 AS col1 FROM tab0
----
117
37
57

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab2 WHERE col0 + col1 * - 26 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT 73 + col2 * - col0 AS col1 FROM tab1
----
-4823
-4942
-6115

query I rowsort
SELECT 42 * + 38 FROM tab1
----
1596
1596
1596

query I rowsort
SELECT DISTINCT ( + 47 ) FROM tab2
----
47

query I rowsort
SELECT + 12 + - col1 * col0 FROM tab2
----
-2334
-4916
-5013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col2 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > ( 79 * - 53 )
----

query I rowsort
SELECT 14 - - 76 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col0 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT SUM( ALL 34 ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2490
SELECT SUM ( ALL 34 ) AS col1 FROM tab2
----
102

query I rowsort
SELECT + col1 - + ( - col1 ) FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL - 32 + - 32 DIV col1 AS col2 FROM tab2
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 32 + - 32 / col1 AS col2 FROM tab2
----
-32
-32
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2493
SELECT ALL * FROM tab1 WHERE ( + ( 90 ) ) < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2493
SELECT ALL * FROM tab1 WHERE ( + ( 90 ) ) < CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + COUNT( ALL 11 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + COUNT ( ALL 11 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2495
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 86 AND + CAST( 10 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2495
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 86 AND + CAST ( 10 AS INTEGER )
----

query I rowsort
SELECT ALL 74 + + col1 AS col1 FROM tab2
----
125
141
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT col2 + - CAST( - ( - 49 ) AS SIGNED ) AS col2 FROM tab1
----
10
19
47

skipif mysql # not compatible
query I rowsort label-2497
SELECT col2 + - CAST ( - ( - 49 ) AS INTEGER ) AS col2 FROM tab1
----
10
19
47

query I rowsort
SELECT + 10 * col1 AS col0 FROM tab0 AS cor0
----
10
210
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 35 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + col2 )
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2502
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + 23 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
207

skipif mysql # not compatible
query I rowsort label-2504
SELECT + 23 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT DISTINCT 69 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1610
2800
4060

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 20 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT + ( - COUNT( * ) ) + CAST( + COUNT( * ) - - 24 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT - ( 51 ) IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + ( - COUNT ( * ) ) + CAST ( + COUNT ( * ) - - 24 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT - ( 51 ) IS NULL
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT + + CAST( MAX( 72 ) AS SIGNED ) FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-2510
SELECT + + CAST ( MAX ( 72 ) AS INTEGER ) FROM tab2 cor0
----
72

query I rowsort
SELECT DISTINCT col0 * col1 + 68 * - col2 AS col0 FROM tab0 AS cor0
----
-1981
-6635
1147

query I rowsort
SELECT + col1 * + 22 AS col1 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 / + 4 >= ( col0 / col0 + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2514
SELECT DISTINCT + 93 * + col0 + + col0 * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT DISTINCT + 93 * + col0 + + col0 * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT DISTINCT + col1 - 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( CAST( - col1 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + col1 - 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( CAST ( - col1 AS INTEGER ) ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - 35 * + ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT 79 * 73 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 30 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - COUNT( * ) + - SUM( col2 ) AS col0 FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-2519
SELECT - COUNT ( * ) + - SUM ( col2 ) AS col0 FROM tab1
----
-226

query I rowsort
SELECT ALL + AVG ( + col0 ) AS col1 FROM tab1 WHERE NOT 89 - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2521
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND 75 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND 75 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - COUNT( 1 ) FROM tab2 WHERE NOT NULL > col2 / - 33
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - COUNT ( 1 ) FROM tab2 WHERE NOT NULL > col2 / - 33
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN - col2 AND col2
----
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + - col1 ) < NULL
----

query I rowsort
SELECT col1 + + - 99 AS col1 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT col2 * - 58 + col1 FROM tab0
----
-2645
-559
-5741

query I rowsort
SELECT + col0 * + - 45 + col1 FROM tab2
----
-2019
-2803
-3308

query I rowsort
SELECT ALL + - col1 * - col1 + + 83 FROM tab2 AS cor0
----
2684
4572
6012

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL SUM( ALL 90 ) FROM tab0 cor0 WHERE NOT col0 / 87 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL SUM ( ALL 90 ) FROM tab0 cor0 WHERE NOT col0 / 87 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + + - col1 + 11 * col1 FROM tab0 AS cor0
----
109
220
857

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - COUNT( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2532
SELECT - COUNT ( ALL - ( - col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + - + col0 + - col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2534
SELECT col2 col1, col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2534
SELECT col2 col1, col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - col1 - + col0 * + 60 + 64 * - col0 AS col2 FROM tab0
----
-10809
-12029
-1941

query I rowsort
SELECT ( + col1 ) - + col0 + 38 AS col1 FROM tab2
----
30
43
51

query I rowsort
SELECT - col2 * col1 + + 7 + + col0 AS col2 FROM tab2 AS cor0
----
-1120
-3009
-3804

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE 62 IN ( - 7 * + 60 + 12 * 68 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 35 ) IN ( col2 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col0 AND 52
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT - COUNT( DISTINCT - 65 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - COUNT ( DISTINCT - 65 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( + 58 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 + + col1 ) BETWEEN 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL + 66 * - COUNT( * ) FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 66 * - COUNT ( * ) FROM tab0 cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT - col0 DIV + - col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - col0 / + - col0 FROM tab0
----
1

query I rowsort
SELECT ALL 35 * ( 26 ) FROM tab1
----
910
910
910

query I rowsort
SELECT DISTINCT col2 * - - col2 * + col2 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT col1 * + col1 * - - ( + + col0 ) AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT DISTINCT - 29 DIV - MAX( DISTINCT + - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - 29 / - MAX ( DISTINCT + - col2 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + 34 * 34 * + + MAX( ALL - - 69 ) AS col0 FROM tab2
----
79764

skipif mysql # not compatible
query I rowsort label-2552
SELECT + 34 * 34 * + + MAX ( ALL - - 69 ) AS col0 FROM tab2
----
79764

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT - CAST( + - MIN( ALL - 2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2554
SELECT - CAST ( + - MIN ( ALL - 2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - 1 * + - 61 * col2 + 79 AS col0 FROM tab2 AS cor0
----
1482
2519
3617

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + ( - COUNT( * ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2557
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + + 11 + + col2 FROM tab2 AS cor0
----
34
51
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT 28 + - CAST( + ( - - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-53
27
7

skipif mysql # not compatible
query I rowsort label-2559
SELECT 28 + - CAST ( + ( - - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-53
27
7

query I rowsort
SELECT + 9 + - col0 + + ( - 29 ) * + col2 FROM tab1 cor0 WHERE - 85 <> - col0
----
-2054
-2826

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2562
SELECT CAST( NULL AS SIGNED ) AS col1, col2 - + - 12 AS col2 FROM tab1
----
NULL
108
NULL
71
NULL
80

skipif mysql # not compatible
query II rowsort label-2562
SELECT CAST ( NULL AS INTEGER ) AS col1, col2 - + - 12 AS col2 FROM tab1
----
NULL
108
NULL
71
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT CAST( NULL AS SIGNED ) / - + MIN( DISTINCT - 76 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT CAST ( NULL AS INTEGER ) / - + MIN ( DISTINCT - 76 ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - 84 AS col1 FROM tab1
----
51
-84
85
-84
91
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 19 / + + col2 - + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 65 col1 FROM tab0
----
10
65
47
65
99
65

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 BETWEEN ( - col1 ) AND - col1 + + 0
----

query I rowsort
SELECT 51 + + - 88 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - 44
----

query I rowsort
SELECT - 42 + - col2 * + + 6 FROM tab0 AS cor0
----
-102
-324
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL COUNT( - 4 ) - 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL COUNT ( - 4 ) - 86 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2573
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 37 + + - CAST( - col0 AS SIGNED ) ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2573
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 37 + + - CAST ( - col0 AS INTEGER ) ) IN ( col2 )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE + - col0 < + + 45 + 8 + - + col0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE + - ( + 18 ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NOT ( 50 / + col1 * + + col0 ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + MIN( - col0 ) * + 24 * COUNT( * ) FROM tab1 AS cor0
----
-6552

skipif mysql # not compatible
query I rowsort label-2577
SELECT + MIN ( - col0 ) * + 24 * COUNT ( * ) FROM tab1 AS cor0
----
-6552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= + col0 + + - col2
----

query I rowsort
SELECT ALL + + 17 * + 89 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-102884
-145248
-89267

query II rowsort
SELECT + col0 * - - col1, - col1 AS col2 FROM tab0 AS cor0
----
1215
-81
1827
-21
97
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT SUM( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT 54 * col2 AS col0 FROM tab0 AS cor0
----
2538
5346
540

query I rowsort
SELECT 64 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + col1 * 53 NOT BETWEEN - col1 AND NULL )
----

query II rowsort
SELECT col1 * - col0, - 58 AS col2 FROM tab1 AS cor0
----
-425
-58
-4277
-58
-714
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 92 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 92 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ALL 75 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT + col0 DIV 65 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2590
SELECT + col0 / 65 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT DISTINCT - 32 AS col2, - COUNT( * ) AS col1 FROM tab2
----
-32
-3

skipif mysql # not compatible
query II rowsort label-2592
SELECT DISTINCT - 32 AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-32
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN 19 AND ( + col2 ) * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + 53 / + - 69 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 73 * + col0 IS NOT NULL
----

query I rowsort
SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT COUNT( ALL + col2 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT COUNT ( ALL + col2 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL + + col2 + col1 + - - ( + 39 ), col2 * - col2 - + col0 AS col1 FROM tab0 AS cor0
----
139
-9898
167
-2224
70
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * + 2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * + 2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT + col2 + + 66 DIV - + 23 AS col0 FROM tab0 AS cor0
----
45
8
97

skipif mysql # not compatible
query I rowsort label-2601
SELECT + col2 + + 66 / - + 23 AS col0 FROM tab0 AS cor0
----
45
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL + COUNT( * ) + - 58 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + COUNT ( * ) + - 58 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col0 ) BETWEEN ( col0 * + 10 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / col0 + col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 64 * - 44 + 30 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + COUNT( * ) + - 62 AS col1 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + COUNT ( * ) + - 62 AS col1 FROM tab0
----
-59

query II rowsort
SELECT ALL + col0 AS col1, 7 AS col2 FROM tab2
----
46
7
64
7
75
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2609
SELECT * FROM tab0 WHERE + - col1 * + + CAST( NULL AS SIGNED ) * - col1 * - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2609
SELECT * FROM tab0 WHERE + - col1 * + + CAST ( NULL AS INTEGER ) * - col1 * - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2610
SELECT - col2 DIV - col0 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2610
SELECT - col2 / - col0 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 20 + + 15 - + 67 + - col0 AS col1 FROM tab0
----
-119
-129
-47

query II rowsort
SELECT - 16 AS col0, col0 * + + 28 + - col1 FROM tab0
----
-16
2415
-16
2715
-16
339

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT + col1 DIV 30 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2613
SELECT + col1 / 30 FROM tab2 AS cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab2 AS cor0 WHERE col0 <= ( + + 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 66 >= + ( + 3 ) + col2 * + ( + - col0 ) * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 27 * + ( col2 ) - ( 84 ) IS NOT NULL
----

query II rowsort
SELECT ALL + + ( - + 85 ) AS col2, - col0 FROM tab1 AS cor0
----
-85
-51
-85
-85
-85
-91

query I rowsort
SELECT - col1 * - + 86 * - 35 FROM tab0 AS cor0
----
-243810
-3010
-63210

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - 49 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * 73 * - - col2 * col0 AS col2 FROM tab2 AS cor0
----
-11960320
-23816250
-3552764

query I rowsort
SELECT ALL - 56 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-114
-79
-96

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NOT col1 * + + 68 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + COUNT( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2623
SELECT + COUNT ( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT ALL - CAST( - + 85 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - CAST ( - + 85 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT 4 DIV COUNT( ALL + 88 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT 4 / COUNT ( ALL + 88 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT col0 * - - CAST( - + col2 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2626
SELECT col0 * - - CAST ( - + col2 AS INTEGER ) FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 27 ) IN ( 68 + + col0 )
----

query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 48 + + col1 + + 96 AS col2 FROM tab1
----
149
158
191

query I rowsort
SELECT DISTINCT col1 + - 80 FROM tab2
----
-13
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL - 54 * + + MIN( ALL - col2 ) * + ( + 28 ) + COUNT( * ) FROM tab2 AS cor0
----
87699

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 54 * + + MIN ( ALL - col2 ) * + ( + 28 ) + COUNT ( * ) FROM tab2 AS cor0
----
87699

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + ( - col2 ) + - - 66 AND 65
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + ( - col2 ) + - - 66 AND 65
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT ALL - COUNT( - col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - COUNT ( - col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 * 3 col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-195
-195
-195

query I rowsort
SELECT DISTINCT - 91 + col2 FROM tab1 cor0
----
-23
-32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - - SUM( - 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2638
SELECT - - SUM ( - 39 ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT 28 + - 76 AS col1 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 * - col0 - - - 19 * - col0 AS col0 FROM tab2 AS cor0
----
-1344
-184
-2925

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE 20 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - - 16 + + - col1 * + ( 72 ) BETWEEN 64 + col0 AND - col0 * 82 * + col1 * + col0 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 7 * + col0 - - col2 FROM tab1
----
453
654
705

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col0 / + 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2648
SELECT ALL - 51 + + 25, col0 DIV - 81 col2 FROM tab1
----
-26
-1
-26
-1
-26
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2648
SELECT ALL - 51 + + 25, col0 / - 81 col2 FROM tab1
----
-26
-1
-26
-1
-26
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL + COUNT( * ) * 19 AS col0, 6 FROM tab2
----
57
6

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL + COUNT ( * ) * 19 AS col0, 6 FROM tab2
----
57
6

query II rowsort
SELECT - 10, 82 * + 38 AS col2 FROM tab2 WHERE + 88 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE - - 25 * col2 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2651
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE - - 25 * col2 NOT BETWEEN + - col0 AND NULL
----
0

query I rowsort
SELECT ALL + 20 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + - col2 * - 67 FROM tab0 AS cor0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT col1 * + col2 IN ( col1, + col2 )
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - ( - + col2 ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + ( - + 10 ) FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2659
SELECT DISTINCT col1, - CAST( + col1 AS SIGNED ) + - ( - - 89 ) FROM tab2
----
51
-140
67
-156
77
-166

skipif mysql # not compatible
query II rowsort label-2659
SELECT DISTINCT col1, - CAST ( + col1 AS INTEGER ) + - ( - - 89 ) FROM tab2
----
51
-140
67
-156
77
-166

query II rowsort
SELECT DISTINCT - col1, ( + ( + - col1 ) ) FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT MIN( DISTINCT 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2661
SELECT MIN ( DISTINCT 74 ) AS col0 FROM tab2
----
74

query I rowsort
SELECT DISTINCT - ( - 85 ) AS col0 FROM tab1
----
85

query I rowsort
SELECT col0 + + - col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT 73 + col0 + - col0 AS col1 FROM tab0
----
73
73
73

query I rowsort
SELECT - + col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL 60 + - + col0 - 75 AS col2 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
6
3

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL <> - col1
----

query I rowsort
SELECT + col2 - + - col1 + - col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col2 * - + col0 - - col1 + + 53 * - 10 AS col0 FROM tab2 AS cor0
----
-1537
-3013
-4813

query I rowsort
SELECT - 14 + 84 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ALL + CAST( ( - 12 ) AS SIGNED ) + col2 FROM tab1 AS cor0
----
47
56
84

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + CAST ( ( - 12 ) AS INTEGER ) + col2 FROM tab1 AS cor0
----
47
56
84

query II rowsort
SELECT col1 + - col1, 10 AS col2 FROM tab0 AS cor0
----
0
10
0
10
0
10

query I rowsort
SELECT + 97 + + col0 AS col1 FROM tab0 WHERE ( col2 - + 79 + - ( col2 ) + 72 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2675
SELECT ALL CAST( NULL AS DECIMAL ) * + 91 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL CAST ( NULL AS REAL ) * + 91 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - + + col1 AS col2 FROM tab2
----
-141
-142
-97

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 58 col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT - ( + + 76 ) + + + 8 + - col2 AS col0 FROM tab0 WHERE - col2 > NULL
----

query I rowsort
SELECT col2 * + 0 * col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + col1 / + 87 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2681
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + col1 / + 87 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL - 61 AS col0, + col2 * 29 + + col0 FROM tab1
----
-61
1796
-61
2063
-61
2835

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 - - col1 >= - col0
----

query I rowsort
SELECT 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 24, + 77 col1 FROM tab1
----
1128
77
120
77
336
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT ALL COUNT( * ) DIV 49 DIV + SUM( ( - - col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL COUNT ( * ) / 49 / + SUM ( ( - - col1 ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 80 / - col1 + - col0 + - col1 / - col0 * - col0 * ( + ( + ( + + col2 ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2688
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST( NULL AS DECIMAL ) IN ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2688
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS REAL ) IN ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 36 DIV col0 * - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT 36 / col0 * - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + 84 NOT BETWEEN - 44 - - - col1 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 48 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ( + col1 ) DIV 12 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2692
SELECT ( + col1 ) / 12 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT 93 / col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT 93 / col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT + COUNT( * ) * 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( * ) * 87 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - 9 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 9 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 42 col0 FROM tab0
----
1974
4158
420

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT 67 AS col2, + 99 * - ( 36 ) - - ( + col0 ) DIV - col0 FROM tab0
----
67
-3565
67
-3565
67
-3565

skipif mysql # not compatible
query II rowsort label-2697
SELECT 67 AS col2, + 99 * - ( 36 ) - - ( + col0 ) / - col0 FROM tab0
----
67
-3565
67
-3565
67
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2698
SELECT COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 61 + + col0 AS col2 FROM tab2 AS cor0
----
-15
14
3

query II rowsort
SELECT + col2 + - col2 * + col2 AS col1, col1 FROM tab1 AS cor0
----
-3422
5
-4556
47
-9120
14

query I rowsort
SELECT + 21 + - col0 AS col2 FROM tab0
----
-66
-76
6

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( NOT NULL BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + + 29 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL - 6 + - - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 6 + - - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + col1 + - - col1 + - + ( - col2 ) * - col2 AS col1 FROM tab1 cor0
----
-3471
-4530
-9188

query II rowsort
SELECT - - 80 AS col0, - col2 - + 46 FROM tab2 AS cor0
----
80
-104
80
-69
80
-86

query I rowsort
SELECT DISTINCT - col2 - - - 41 + - - col1 AS col1 FROM tab1 AS cor0
----
-123
-62
-95

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT - - col2 - - - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2710
SELECT - CAST( NULL AS DECIMAL ) - 13 + + 90 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT - CAST ( NULL AS REAL ) - 13 + + 90 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT - ( 80 ) - + col2 DIV + 55 FROM tab0 AS cor0
----
-80
-80
-81

skipif mysql # not compatible
query I rowsort label-2712
SELECT - ( 80 ) - + col2 / + 55 FROM tab0 AS cor0
----
-80
-80
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 - + 20 col0 FROM tab1
----
-43
-46
25

query I rowsort
SELECT col1 - col2 + + col0 + + col2 FROM tab1
----
138
65
90

query I rowsort
SELECT col2 - + 59 AS col0 FROM tab2
----
-1
-19
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col0 ) col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT + + COUNT( * ) AS col1, MIN( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + SUM( ALL - + 48 ) AS col0 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-2720
SELECT + SUM ( ALL - + 48 ) AS col0 FROM tab0
----
-144

onlyif mysql # DIV for integer division: 
query II rowsort label-2721
SELECT + col2 AS col0, - col2 DIV + - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-2721
SELECT + col2 AS col0, - col2 / + - col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 NOT IN ( 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + - + 98 * - + 82 FROM tab2 AS cor0
----
8059
8076
8094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL - + CAST( + - 29 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - + CAST ( + - 29 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT + - ( col2 ) FROM tab1 WHERE NOT + + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2725
SELECT + - ( col2 ) FROM tab1 WHERE NOT + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 64 AS col0 FROM tab2 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT + 13 FROM tab1 WHERE ( NOT 49 IN ( - 29 ) )
----
13
13
13

query I rowsort
SELECT DISTINCT - col0 * + - 48 AS col1 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT ( + COUNT( * ) ) AS col2, + 8 + - ( - 56 ) FROM tab1
----
3
64

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, + 8 + - ( - 56 ) FROM tab1
----
3
64

query I rowsort
SELECT - 30 + - + col0 FROM tab1
----
-115
-121
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT col2 * 66 DIV + - col0 + col2 col0 FROM tab2
----
-1
-10
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT col2 * 66 / + - col0 + col2 col0 FROM tab2
----
-1
-10
7

query I rowsort
SELECT - col2 * col0 + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT 48 + - - col2 * + + 11 FROM tab0 cor0
----
1137
158
565

query I rowsort
SELECT DISTINCT col1 * - - col2 - - col2 FROM tab1 AS cor0
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col0 col1 FROM tab0
----
174
194
30

query I rowsort
SELECT col0 + + col1 * - - col0 * - + 32 FROM tab0 AS cor0
----
-3007
-38865
-58377

query I rowsort
SELECT 85 + - + ( - + col1 ) FROM tab1 AS cor0
----
132
90
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 95 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL - + col1 DIV + col1 + + 3 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - + col1 / + col1 + + 3 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 26 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 26 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT DISTINCT + COUNT( * ), 8 col1 FROM tab0 AS cor0
----
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2741
SELECT DISTINCT + COUNT ( * ), 8 col1 FROM tab0 AS cor0
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT + + 51 IN ( col1, - col2, col2 )
----
2

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + + 51 IN ( col1, - col2, col2 )
----
2

query I rowsort
SELECT - 70 * - ( + ( + 82 ) ) AS col0 FROM tab1
----
5740
5740
5740

query II rowsort
SELECT ( + 62 ), + 23 AS col1 FROM tab0
----
62
23
62
23
62
23

query I rowsort
SELECT 72 FROM tab0 WHERE NOT NULL <= + 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 col0 FROM tab0 AS cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 * - 37 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - 29 + + col1 FROM tab2 AS cor0
----
-1083
-1615
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2750
SELECT ALL COUNT( DISTINCT + - 7 ) DIV - ( + + 67 ) * + 32 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL COUNT ( DISTINCT + - 7 ) / - ( + + 67 ) * + 32 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT ALL - CAST( NULL AS SIGNED ) + - 81 + - - CAST( NULL AS SIGNED ) - - 88 + COUNT( * ) + - SUM( - - 9 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - CAST ( NULL AS INTEGER ) + - 81 + - - CAST ( NULL AS INTEGER ) - - 88 + COUNT ( * ) + - SUM ( - - 9 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT + - 29 DIV COUNT( * ) * - 44 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
132

skipif mysql # not compatible
query I rowsort label-2752
SELECT + - 29 / COUNT ( * ) * - 44 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2753
SELECT DISTINCT 5 AS col1 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) * + - CAST( NULL AS DECIMAL ) BETWEEN col2 AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT 5 AS col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) * + - CAST ( NULL AS REAL ) BETWEEN col2 AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT - col0 DIV + col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - col0 / + col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL 43 + - col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 43 + - col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 89 + 81, col1 FROM tab0 AS cor0
----
-8
1
-8
21
-8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL + + ( 44 ) + - SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + + ( 44 ) + - SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
243

query I rowsort
SELECT + + col0 + - 2 AS col1 FROM tab2 AS cor0
----
44
62
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 78 * - col2 + - 90 / + - ( + col1 ) IS NULL
----

query I rowsort
SELECT - 29 * + ( + 69 ) + col2 - col2 AS col1 FROM tab1 AS cor0
----
-2001
-2001
-2001

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT - 40 DIV + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2761
SELECT - 40 / + - col0 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col0 * - col1 * - col0, + 55 * col0 AS col1 FROM tab2
----
107916
2530
315392
3520
376875
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2763
SELECT ALL - 3 DIV + COUNT( + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - 3 / + COUNT ( + col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL col1 / col0 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 85 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + - 47 col0 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL - + 73 * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - + 73 * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + 95 * col2 col0 FROM tab0 AS cor0
----
-4450
-863
-9308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT + col1 * + ( col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT + col1 * + ( col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 * - 30 AS col2, 89 * + - 40 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to a0b728d74fad06ff24ded639fa8c49ea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + 75 col2 FROM tab0
----
145
145
145

query I rowsort
SELECT - 62 * + 70 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ae3ba44837377c213a27e05e321c076

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 - - + 34 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + 64 * - col2 AS col1 FROM tab0 AS cor0
----
141376
627264
6400

query I rowsort
SELECT - - ( + + 86 ) AS col0 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT - + 4 DIV + col2 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT - + 4 / + col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 85 - ( - col2 ) AS col2 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 51 = NULL
----

query I rowsort
SELECT ALL + - 4 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - 68 - col2 + + 25
----

query I rowsort
SELECT DISTINCT + 99 * - col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT - 73 * col2 AS col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query II rowsort
SELECT ALL col1, col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
1173
67
3886
77
3080

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2784
SELECT * FROM tab1 WHERE NOT ( CAST( ( + + col0 ) AS SIGNED ) ) <> - col2
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT * FROM tab1 WHERE NOT ( CAST ( ( + + col0 ) AS INTEGER ) ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT CAST( + col0 AS SIGNED ) * col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2786
SELECT CAST ( + col0 AS INTEGER ) * col2 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT DISTINCT + col1 * 53 + - ( - 61 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1115
114
4293

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + col1 * 53 + - ( - 61 ) / + col1 AS col1 FROM tab0 AS cor0
----
1115
114
4293

query I rowsort
SELECT DISTINCT col0 * - 86 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-3956
-5504
-6450

query I rowsort
SELECT ALL ( - + 18 ) + - col0 AS col2 FROM tab2 AS cor0
----
-64
-82
-93

query I rowsort
SELECT ALL - + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT + - col1 AS col2, ( col1 ) FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2792
SELECT - CAST( NULL AS DECIMAL ) col2, 74 * - col0 * - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
189440
NULL
321900
NULL
78292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2792
SELECT - CAST ( NULL AS REAL ) col2, 74 * - col0 * - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
189440
NULL
321900
NULL
78292

onlyif mysql # aggregate syntax: 
query III rowsort label-2793
SELECT DISTINCT + 68, - COUNT( ALL - 93 ) * + 99 AS col2, - + MIN( ALL col2 ) col0 FROM tab0 AS cor0
----
68
-297
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2793
SELECT DISTINCT + 68, - COUNT ( ALL - 93 ) * + 99 AS col2, - + MIN ( ALL col2 ) col0 FROM tab0 AS cor0
----
68
-297
-10

query I rowsort
SELECT + ( + 53 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
53
53
53

query III rowsort
SELECT * FROM tab0 WHERE + - 15 * - col1 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + col1 col0 FROM tab2
----
0

query I rowsort
SELECT 55 + - ( - col0 ) + + col2 FROM tab1
----
199
202
214

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT + col2 DIV - col2 + ( - col1 ) + - col0 FROM tab2
----
-142
-143
-98

skipif mysql # not compatible
query I rowsort label-2798
SELECT + col2 / - col2 + ( - col1 ) + - col0 FROM tab2
----
-142
-143
-98

query I rowsort
SELECT 62 + + + col1 FROM tab2
----
113
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT SUM( + ( col2 ) ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-2800
SELECT SUM ( + ( col2 ) ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT 33 * - + CAST( 69 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-2277

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT 33 * - + CAST ( 69 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-2277

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col1 FROM tab0 cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT + + col1 * + 58 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + + col1 * + 58 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT + 6 DIV + 26 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 6 / + 26 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( + 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 / - - 99 + + 81 * AVG ( - + col0 ), + 87 col0 FROM tab1 WHERE NULL <> NULL
----
NULL
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - ( - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 47 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 47 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 29 col1, + 89 FROM tab2 AS cor0
----
1160
89
1682
89
667
89

query I rowsort
SELECT ALL - 36 + col1 AS col0 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2814
SELECT * FROM tab1 AS cor0 WHERE ( + 41 * - col0 * - CAST( + - col0 AS SIGNED ) ) NOT BETWEEN - ( + col0 ) AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2814
SELECT * FROM tab1 AS cor0 WHERE ( + 41 * - col0 * - CAST ( + - col0 AS INTEGER ) ) NOT BETWEEN - ( + col0 ) AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + + col1 * + - col0 AS col1 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT ALL - ( - col2 ) + + 70 + + col1 AS col1 FROM tab2 AS cor0
----
144
187
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2817
SELECT - CAST( NULL AS DECIMAL ) * + 71 - SUM( - - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT - CAST ( NULL AS REAL ) * + 71 - SUM ( - - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL - - CAST( + - COUNT( * ) AS SIGNED ) - + - SUM( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - - CAST ( + - COUNT ( * ) AS INTEGER ) - + - SUM ( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 36 / + col0 - - col2 - 74 * 8 AND ( ( 59 ) )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col2 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - 26 - - + col0 FROM tab0
----
-11
61
71

query I rowsort
SELECT col1 * - 69 * + col0 + + - 1 FROM tab0 AS cor0
----
-126064
-6694
-83836

query I rowsort
SELECT + col1 + - col1 * - col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT DISTINCT col2 - + - 91 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT col1 DIV + - col2 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT col1 / + - col2 AS col2 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT + col2 * + 38 * + ( + + col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + col2 * + 38 * + ( + + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT DISTINCT + - 40 * 9 DIV col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-204
-236
-672

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + - 40 * 9 / col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-204
-236
-672

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 28 NOT BETWEEN NULL AND col2 * - col0 + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 10 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT CAST( - col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) + 85 + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT CAST ( - col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + 85 + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2831
SELECT - - ( - + ( col2 ) ) / col1 / col0 * - + CAST( NULL AS DECIMAL ) + + - col2 AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2831
SELECT - - ( - + ( col2 ) ) / col1 / col0 * - + CAST ( NULL AS REAL ) + + - col2 AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + ( ( + + COUNT( * ) ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2832
SELECT + ( ( + + COUNT ( * ) ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + 69 * COUNT( ALL - - col0 ) AS col2 FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-2833
SELECT + 69 * COUNT ( ALL - - col0 ) AS col2 FROM tab1 cor0
----
207

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 <> 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + 55 + - ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 55 + - ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT - 40 * SUM( + 59 ) AS col2 FROM tab2 AS cor0
----
-7080

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - 40 * SUM ( + 59 ) AS col2 FROM tab2 AS cor0
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL - + MIN( col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - + MIN ( col0 ) FROM tab1 cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT ALL + col2 * col0 + col0 DIV col0 FROM tab2 AS cor0
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + col2 * col0 + col0 / col0 FROM tab2 AS cor0
----
1059
2561
4351

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT + - col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT + - col0 / - - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

query II rowsort
SELECT DISTINCT + - col0 + - 22 AS col2, + col1 * 89 FROM tab2 AS cor0
----
-68
4539
-86
6853
-97
5963

query II rowsort
SELECT + 71 - - 15 AS col2, 66 * - col1 AS col2 FROM tab2 AS cor0
----
86
-3366
86
-4422
86
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT 66 - - - COUNT( * ) col0 FROM tab2 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT DISTINCT 66 - - - COUNT ( * ) col0 FROM tab2 cor0
----
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COUNT( * ) + - SUM( - col1 ) + COUNT( * ) * + + MIN( DISTINCT col1 ) col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2846
SELECT COUNT ( * ) + - SUM ( - col1 ) + COUNT ( * ) * + + MIN ( DISTINCT col1 ) col1 FROM tab1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT 33 + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT 33 + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + + - col1 + col2 FROM tab2 AS cor0
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT + CAST( + 7 AS SIGNED ) * + + 86 * - 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2850
SELECT + CAST ( + 7 AS INTEGER ) * + + 86 * - 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( col1 )
----

query II rowsort
SELECT col0 AS col2, col2 - - + 12 AS col0 FROM tab0
----
15
59
87
22
97
111

query I rowsort
SELECT ALL - 54 * - ( - 74 ) FROM tab2
----
-3996
-3996
-3996

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2853
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 + + - col0 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 <= NULL
----

query I rowsort
SELECT - - 12 * + 11 FROM tab1 AS cor0
----
132
132
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - ( - + 38 )
----

query II rowsort
SELECT ALL - - col1, + col2 AS col0 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT ALL COUNT( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0
----
-240
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2860
SELECT ALL COUNT ( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0
----
-240
34

query I rowsort
SELECT DISTINCT - - col1 * 88 * - col2 FROM tab1 AS cor0
----
-118272
-25960
-281248

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT + col1 DIV - 16 - - + col2 FROM tab0 AS cor0
----
42
9
99

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + col1 / - 16 - - + col2 FROM tab0 AS cor0
----
42
9
99

query I rowsort
SELECT ALL col1 * col2 * + col0 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT DISTINCT - col0 DIV + 66 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - col0 / + 66 AS col1 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 23 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab0 WHERE NOT + 69 * 92 + - col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT ALL 36 DIV - - COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 36 / - - COUNT ( * ) AS col0 FROM tab2
----
12

query II rowsort
SELECT DISTINCT - col2 + + 25, col1 * - - col0 AS col1 FROM tab0
----
-22
1215
-74
97
15
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT COUNT( ALL + ( col2 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2869
SELECT COUNT ( ALL + ( col2 ) ) col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 49 * - col2 * 62, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT col2 + + + col1 DIV - 22 AS col1 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-2871
SELECT col2 + + + col1 / - 22 AS col1 FROM tab0
----
10
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2872
SELECT ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT ALL - - ( + 72 ) + col2 FROM tab1 AS cor0
----
131
140
168

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
45
45
45

query I rowsort
SELECT DISTINCT - col0 * - + 18 + col0 FROM tab2 AS cor0
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT - COUNT( * ) - - 7 * - COUNT( * ) col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT DISTINCT - COUNT ( * ) - - 7 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT - 3 AS col1, + 44 + - - col2 FROM tab1 AS cor0
----
-3
103
-3
112
-3
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL - - 10 / - 79 + - CAST( NULL AS SIGNED ) + 38 * + 44 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col1 NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - - 10 / - 79 + - CAST ( NULL AS INTEGER ) + 38 * + 44 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + + SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2879
SELECT + + SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL 39 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 39 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL SUM( ALL - - ( + + col2 ) ) col1 FROM tab1 WHERE NOT 45 > col1 + - 37
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ALL SUM ( ALL - - ( + + col2 ) ) col1 FROM tab1 WHERE NOT 45 > col1 + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL MIN( ALL + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL MIN ( ALL + 79 ) FROM tab0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-2883
SELECT ALL - col1 DIV ( col1 ) - - col2 AS col2, - col0 AS col2 FROM tab0
----
46
-15
9
-87
98
-97

skipif mysql # not compatible
query II rowsort label-2883
SELECT ALL - col1 / ( col1 ) - - col2 AS col2, - col0 AS col2 FROM tab0
----
46
-15
9
-87
98
-97

query I rowsort
SELECT + 19 * col1 AS col0 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN col2 AND - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - COUNT( * ) * - 23 AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - COUNT ( * ) * - 23 AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + + 0 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT + + 0 * + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT col0 DIV col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT col0 / col0 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 30 * + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1410
-2970
-300

query I rowsort
SELECT - + ( col2 ) * - 4 FROM tab1 AS cor0
----
236
272
384

query I rowsort
SELECT ALL col1 * + + ( 69 ) AS col1 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT ALL COUNT( * ) AS col2, 24 FROM tab1
----
3
24

skipif mysql # not compatible
query II rowsort label-2894
SELECT ALL COUNT ( * ) AS col2, 24 FROM tab1
----
3
24

query I rowsort
SELECT + col2 + - 79 AS col1 FROM tab2
----
-21
-39
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 71 + COUNT( * ) + 45 AS col1 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 71 + COUNT ( * ) + 45 AS col1 FROM tab1 AS cor0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + COUNT( * ) + + - MIN( - col2 ) * 90 AS col1 FROM tab1 AS cor0
----
8643

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + COUNT ( * ) + + - MIN ( - col2 ) * 90 AS col1 FROM tab1 AS cor0
----
8643

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2898
SELECT SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - col0 + - - 14 FROM tab0 AS cor0
----
-1
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT 83 * 7 * - MIN( col1 ) AS col2 FROM tab2
----
-29631

skipif mysql # not compatible
query I rowsort label-2900
SELECT 83 * 7 * - MIN ( col1 ) AS col2 FROM tab2
----
-29631

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT + COUNT( * ) * + - 96, COUNT( * ) AS col2 FROM tab1
----
-288
3

skipif mysql # not compatible
query II rowsort label-2902
SELECT + COUNT ( * ) * + - 96, COUNT ( * ) AS col2 FROM tab1
----
-288
3

query I rowsort
SELECT 32 - + col1 AS col1 FROM tab0
----
-49
11
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - COUNT( 67 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT - COUNT ( 67 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL CAST( + col0 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL CAST ( + col0 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + COUNT( * ) * 84 * + + COUNT( * ) FROM tab1, tab2 AS cor0
----
6804

skipif mysql # not compatible
query I rowsort label-2906
SELECT + COUNT ( * ) * 84 * + + COUNT ( * ) FROM tab1, tab2 AS cor0
----
6804

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - SUM( - 96 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2907
SELECT - SUM ( - 96 ) FROM tab1
----
288

query III rowsort
SELECT * FROM tab1 WHERE + 68 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL COUNT( * ), COUNT( + + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL COUNT ( * ), COUNT ( + + col2 ) FROM tab0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 22 AND + col1 * + col1 + + - col0 + - - 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 * + + 58 + - - col0 * col1 + 9 + - ( - - 96 ) + - col2 col0 FROM tab0 AS cor0
----
1361
2531
3180

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 60 BETWEEN - col0 * + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - MAX( + 72 ) AS col2 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2915
SELECT - MAX ( + 72 ) AS col2 FROM tab0 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <= col1 * 95
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <= col1 * 95
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) * - col1 < 44 + col0
----
97
1
99

query I rowsort
SELECT - col0 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - col0 * 23 + + 20 FROM tab2
----
-1038
-1452
-1705

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT SUM( ALL col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2921
SELECT SUM ( ALL col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT col0 + + ( 9 ) AS col1 FROM tab1
----
100
60
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) <= ( + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + ( MIN( - col1 ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + ( MIN ( - col1 ) ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT + 89 + col1 AS col0 FROM tab2
----
140
156
166

query I rowsort
SELECT - 20 AS col0 FROM tab2 WHERE + ( ( + 38 ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + col0 * 74 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT ( - 65 ) * COUNT( - col0 ) + 78 FROM tab1 WHERE ( col1 + + 44 ) <> NULL
----
78

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT ( - 65 ) * COUNT ( - col0 ) + 78 FROM tab1 WHERE ( col1 + + 44 ) <> NULL
----
78

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT - ( + ( col1 ) ) AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT + 85 col1 FROM tab0 WHERE NOT + 15 * + CAST( NULL AS SIGNED ) - 9 IN ( col2 / - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT DISTINCT + 85 col1 FROM tab0 WHERE NOT + 15 * + CAST ( NULL AS INTEGER ) - 9 IN ( col2 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 41 * 12 ) IS NOT NULL
----

query I rowsort
SELECT ALL 69 * - 18 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1242
-1242
-1242

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT col0 - col0 DIV - col2 AS col2 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-2936
SELECT col0 - col0 / - col2 AS col2 FROM tab1
----
51
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + COUNT( - col0 ) + + COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + COUNT ( - col0 ) + + COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 52 + - col1 * col2 FROM tab2 AS cor0
----
-1121
-3028
-3834

query I rowsort
SELECT col0 + col1 * - 94 FROM tab2 AS cor0
----
-4748
-6223
-7174

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT col2 DIV + 25 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT col2 / + 25 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT + col1 * 40 + + col0 DIV 1 col0 FROM tab0
----
137
3255
927

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT + col1 * 40 + + col0 / 1 col0 FROM tab0
----
137
3255
927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2942
SELECT ( - MAX( ALL col2 ) ) + 69 DIV MAX( CAST( col1 AS SIGNED ) ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( - MAX ( ALL col2 ) ) + 69 / MAX ( CAST ( col1 AS INTEGER ) ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT + COUNT( col2 ) FROM tab2 WHERE NOT col0 + 0 IN ( 38 )
----
3

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 WHERE NOT col0 + 0 IN ( 38 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT SUM( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-477

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT SUM ( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * 94 col1 FROM tab2 AS cor0
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + SUM( 28 ) AS col0 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2946
SELECT + SUM ( 28 ) AS col0 FROM tab1 cor0
----
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col1 / col2 ) AND ( + ( - col2 ) * + col0 )
----

query I rowsort
SELECT col1 * 95 - + col0 AS col0 FROM tab1 AS cor0
----
1279
390
4374

query I rowsort
SELECT DISTINCT - 98 * - 18 + - 78 FROM tab1 AS cor0
----
1686

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + + MIN( col1 ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2950
SELECT + + MIN ( col1 ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

query I rowsort
SELECT - - 14 - col0 FROM tab0 AS cor0
----
-1
-73
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2952
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 - col0 * ( + CAST( + col0 AS SIGNED ) ) ) AND - 57 / - 96 + col2 / + 19
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 - col0 * ( + CAST ( + col0 AS INTEGER ) ) ) AND - 57 / - 96 + col2 / + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + SUM( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2953
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT + MAX( DISTINCT 15 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + MAX ( DISTINCT 15 ) AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 * - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT + MAX( + 53 ) AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + MAX ( + 53 ) AS col0 FROM tab1
----
53

query I rowsort
SELECT DISTINCT - 47 * + 30 AS col0 FROM tab1
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT COUNT( * ) / ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE - col1 * 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( * ) / ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE - col1 * 34 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT + 81 >= ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT + 81 >= ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 IN ( 2 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( - col0 AS SIGNED ) AND 47 + 61
----

skipif mysql # not compatible
query III rowsort label-2961
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( - col0 AS INTEGER ) AND 47 + 61
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN 61 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 11 AS col1 FROM tab1 cor0
----
11
11
11

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * + col0 <= NULL
----

query I rowsort
SELECT 61 * 1 * col1 AS col0 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT col1 * - + 12 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT - - ( - - 20 ) FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( - col2 + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( + col0 ) * - 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2973
SELECT - col1 AS col2, + col1 DIV + + col1 AS col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-2973
SELECT - col1 AS col2, + col1 / + + col1 AS col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + - + 80 AS col1 FROM tab0 cor0
----
-127
-179
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * - 81 AND - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - MAX( ALL - col0 ) * - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-2977
SELECT - MAX ( ALL - col0 ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-414

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col0 BETWEEN col0 + - col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-2979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col0 BETWEEN col0 + - col1 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT MAX( col1 ) FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) ) BETWEEN ( col2 + 47 / 19 ) AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT MAX ( col1 ) FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) ) BETWEEN ( col2 + 47 / 19 ) AND ( col0 )
----
NULL

query I rowsort
SELECT col0 + - 57 FROM tab0
----
-42
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL ( - 8 ) + AVG ( + 91 ) * - AVG ( DISTINCT 7 ) col2 FROM tab2 WHERE NOT NULL BETWEEN + 50 - + col0 + 63 AND 50 * col0 + + CAST( + col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2982
SELECT ALL ( - 8 ) + AVG ( + 91 ) * - AVG ( DISTINCT 7 ) col2 FROM tab2 WHERE NOT NULL BETWEEN + 50 - + col0 + 63 AND 50 * col0 + + CAST ( + col0 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( + 20 ) + 94 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( + 20 ) + 94 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + - col2 * + col0 - - col0 AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 25 - - + 68 FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2989
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( + col2 AS SIGNED ) + - col2 >= + col1 + + 1 * - col0
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-2989
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) + - col2 >= + col1 + + 1 * - col0
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 59 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT MIN ( - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT DISTINCT COUNT( * ), - 56 + + 30 col0 FROM tab0
----
3
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2994
SELECT DISTINCT COUNT ( * ), - 56 + + 30 col0 FROM tab0
----
3
-26

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT IN ( + 16 )
----

query I rowsort
SELECT 46 FROM tab1 WHERE NOT ( NULL ) > + 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT - ( - - col2 ) DIV col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - ( - - col2 ) / col0 FROM tab1
----
-1
0

query II rowsort
SELECT + col1 AS col1, + col1 + 44 AS col0 FROM tab2
----
51
95
67
111
77
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 26 * + 35 * col2 + - col0 * - - col2 col0 FROM tab0
----
10
8230
47
42065
99
80487

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT DISTINCT - - 10 DIV - - col1 * + 53 - + 83 AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT - - 10 / - - col1 * + 53 - + 83 AS col1 FROM tab2 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 * - col2 col2 FROM tab0 AS cor0
----
-1386
-140
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 col0 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT 5 * + + 14 AS col2 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + MIN( + 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3004
SELECT + MIN ( + 28 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 96 + - MIN( ALL 34 ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 96 + - MIN ( ALL 34 ) AS col0 FROM tab0
----
62

query I rowsort
SELECT - ( 38 ) + - + 42 AS col2 FROM tab1
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3007
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3009
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( - col0 + - - 10 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 13 / + + col1 + ( + - ( - + col2 ) ) + - col2 ) AND NULL
----

query I rowsort
SELECT ALL + - col2 * - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 26
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3014
SELECT ALL CAST( + ( - col2 ) AS SIGNED ) * 10 DIV col1 + - + 58 + col2 * + col2 FROM tab0 AS cor0
----
2146
38
8753

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL CAST ( + ( - col2 ) AS INTEGER ) * 10 / col1 + - + 58 + col2 * + col2 FROM tab0 AS cor0
----
2146
38
8753

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + 48 + + + 99 * + col2 * - + col1 + 28 ) AND 31 - 53
----

query I rowsort
SELECT col1 * - - col0 * - 85 * 88 FROM tab1
----
-3179000
-31991960
-5340720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 col2, - col0 FROM tab2
----
11
-46
11
-64
11
-75

query III rowsort
SELECT * FROM tab0 WHERE - + 41 IN ( col1 * + col1 + col2 + + col0 )
----

query I rowsort
SELECT ALL - col1 * 73 + - - 51 FROM tab1
----
-314
-3380
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT + col2 + - col2 + - col2 * - + CAST( NULL AS SIGNED ) + + col1 / + 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + col2 + - col2 + - col2 * - + CAST ( NULL AS INTEGER ) + + col1 / + 67 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + + ( 55 ) AS col1 FROM tab0 AS cor0
----
-26
34
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT COUNT( * ) + ( + COUNT( * ) ) AS col0, - 2 + - SUM( - - 39 ) AS col0 FROM tab0 AS cor0
----
6
-119

skipif mysql # not compatible
query II rowsort label-3022
SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col0, - 2 + - SUM ( - - 39 ) AS col0 FROM tab0 AS cor0
----
6
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT DISTINCT - COUNT( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col0 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - COUNT ( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col0 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT - + col1 + - + col1 + - 65 + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
2341
4151
891

query I rowsort
SELECT + 12 + + col1 AS col0 FROM tab1 cor0
----
17
26
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL 68 - CAST( NULL AS SIGNED ) - + MAX( DISTINCT - - 50 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL 68 - CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT - - 50 ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 * + - 76 AS col0 FROM tab2 AS cor0
----
-1748
-3040
-4408

query I rowsort
SELECT + col2 * + + 52 AS col2 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT ALL + col0 * - - col0 + col2 * - col2 + ( - 5 ) FROM tab0 AS cor0
----
-1989
-397
7464

query I rowsort
SELECT ALL - 15 + - col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-102
-112
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT - col2 DIV 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT - col2 / 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 56 * col2 - 56 FROM tab0 AS cor0
----
-2688
-5600
-616

query I rowsort
SELECT - ( col0 ) * + col1 / - col0 FROM tab0 cor0 WHERE NOT + col2 * - - 12 * - ( 61 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL - MIN( ALL - col1 ) * + 11 AS col0 FROM tab1 cor0
----
517

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - MIN ( ALL - col1 ) * + 11 AS col0 FROM tab1 cor0
----
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + col2 ) ) col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL CAST( NULL AS SIGNED ) * - ( + 61 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + 61 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE 98 < NULL
----

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 98 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 56 NOT IN ( + - col0, col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 58 + + 22 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 58 + + 22 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL + CAST( NULL AS SIGNED ) * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + CAST ( NULL AS INTEGER ) * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3041
SELECT + CAST( NULL AS SIGNED ) * - - CAST( - + 94 AS SIGNED ), + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3041
SELECT + CAST ( NULL AS INTEGER ) * - - CAST ( - + 94 AS INTEGER ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - 81 * - ( SUM( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
15795

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 81 * - ( SUM ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
15795

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - - MAX( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-3043
SELECT - - MAX ( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + COUNT( * ) + - 51 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + COUNT ( * ) + - 51 FROM tab2
----
-48

query II rowsort
SELECT - 92 AS col1, 34 FROM tab1
----
-92
34
-92
34
-92
34

query I rowsort
SELECT DISTINCT 89 + - + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE + col1 + col0 + + 2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL + - 79 DIV col1 + - 26 col1 FROM tab0 AS cor0
----
-105
-26
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT ALL + - 79 / col1 + - 26 col1 FROM tab0 AS cor0
----
-105
-26
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT COUNT( * ) + - - 74 col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT DISTINCT COUNT ( * ) + - - 74 col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT CAST( - col1 AS SIGNED ) + ( + col0 ) - col0 col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + ( + col0 ) - col0 col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + 46 + - 59 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - + 60 * 76 + col1 FROM tab2 AS cor0
----
-4483
-4493
-4509

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT COUNT( * ) + - + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3054
SELECT COUNT ( * ) + - + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + - col2 * + - col0 + - 85 AS col1 FROM tab1 cor0
----
4811
4930
6103

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 58 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + COUNT( * ) * MAX( + 5 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + COUNT ( * ) * MAX ( + 5 ) AS col1 FROM tab2
----
15

query I rowsort
SELECT + ( - 89 ) FROM tab1
----
-89
-89
-89

query I rowsort
SELECT + ( 82 ) AS col1 FROM tab0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT ( - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT ( - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT ALL 95 + + COUNT( * ), COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL 95 + + COUNT ( * ), COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
98
3

query I rowsort
SELECT DISTINCT - col0 * - col0 - + col0 + + col2 + + col0 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL COUNT( * ) + - - 21 - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) + - - 21 - COUNT ( * ) FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 65 ) * - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT COUNT( * ) + - 66 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3065
SELECT COUNT ( * ) + - 66 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 26 IS NOT NULL
----

query II rowsort
SELECT - 4, col2 FROM tab0
----
-4
10
-4
47
-4
99

query II rowsort
SELECT col0 * + col0 * 66, + col2 FROM tab0
----
14850
47
499554
10
620994
99

query I rowsort
SELECT DISTINCT 36 * - + col0 AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 + + col2 * col1 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT SUM( DISTINCT col0 ) / + MIN( DISTINCT - + col0 ) + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT SUM ( DISTINCT col0 ) / + MIN ( DISTINCT - + col0 ) + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( col2, col0 ) )
----

query I rowsort
SELECT - 85 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1 cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL - col0 DIV - - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 70 = + col2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - col0 / - - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 70 = + col2
----
-1
-1
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + - col0 ) AND + 55
----

query I rowsort
SELECT 21 + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - col2 DIV + 55 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3079
SELECT - col2 / + 55 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT + COUNT( ALL + + col0 ) AS col2, - ( + - COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3080
SELECT + COUNT ( ALL + + col0 ) AS col2, - ( + - COUNT ( * ) ) FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 79 ) col2 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - SUM( - ( - col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - SUM ( - ( - col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT ALL - col2 DIV - col1 + + + col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - col2 / - col1 + + + col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3084
SELECT ALL * FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3084
SELECT ALL * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + MAX( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 62 = col2
----
47

skipif mysql # not compatible
query I rowsort label-3085
SELECT + MAX ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 62 = col2
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - col1 NOT BETWEEN + + col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT col1 + CAST( - 19 AS SIGNED ) * + + col0 AS col2, - 68 FROM tab1 AS cor0
----
-1610
-68
-1682
-68
-955
-68

skipif mysql # not compatible
query II rowsort label-3088
SELECT col1 + CAST ( - 19 AS INTEGER ) * + + col0 AS col2, - 68 FROM tab1 AS cor0
----
-1610
-68
-1682
-68
-955
-68

query II rowsort
SELECT DISTINCT 52 * - + col1 * - 9 AS col0, + col2 FROM tab0
----
37908
47
468
99
9828
10

query II rowsort
SELECT DISTINCT + col1, 43 * - col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL - CAST( + - col1 AS SIGNED ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL - CAST ( + - col1 AS INTEGER ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT - - 14 * ( col0 ) DIV + ( + col2 ) + 7 * - col2 + col2 * + + 56 AS col1 FROM tab0 AS cor0
----
2307
4864
611

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 14 * ( col0 ) / + ( + col2 ) + 7 * - col2 + col2 * + + 56 AS col1 FROM tab0 AS cor0
----
2307
4864
611

query I rowsort
SELECT DISTINCT - col0 - + + col1 - + 76 AS col0 FROM tab2 AS cor0
----
-173
-217
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3094
SELECT - MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 14, - col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT ALL + 71 * - - CAST( - col0 AS SIGNED ) * + - col2 - - 54 * - 30 AS col2, + 68 FROM tab1
----
345996
68
354445
68
437728
68

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL + 71 * - - CAST ( - col0 AS INTEGER ) * + - col2 - - 54 * - 30 AS col2, + 68 FROM tab1
----
345996
68
354445
68
437728
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 - 6 col2 FROM tab1
----
18
18
18

query I rowsort
SELECT + 37 - col2 AS col1 FROM tab2
----
-21
-3
14

query II rowsort
SELECT ALL - col0 AS col1, 88 FROM tab2
----
-46
88
-64
88
-75
88

query I rowsort
SELECT ALL - col1 * col2 * col1 AS col0 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT 43 - - + COUNT( * ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 43 - - + COUNT ( * ) AS col2 FROM tab0
----
46

query I rowsort
SELECT ALL - col0 * - + 2 AS col1 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL MIN( - 23 ) * - SUM( ALL + col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL MIN ( - 23 ) * - SUM ( ALL + col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 84 + col1 FROM tab0 cor0
----
105
165
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3105
SELECT DISTINCT - + col0, + 81 DIV 63 + + col1 col2 FROM tab0 AS cor0
----
-15
82
-87
22
-97
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT DISTINCT - + col0, + 81 / 63 + + col1 col2 FROM tab0 AS cor0
----
-15
82
-87
22
-97
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT CAST( + + COUNT( - 48 ) AS SIGNED ) * 47 + + - COUNT( * ) AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-3106
SELECT CAST ( + + COUNT ( - 48 ) AS INTEGER ) * 47 + + - COUNT ( * ) AS col1 FROM tab1
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 20 + + - col1 col2 FROM tab2 AS cor0
----
-1357
-1567
-971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 col0 FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 NOT IN ( + col2 + 31 - + - col0 - - col2 * - - 42 + col0 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + SUM( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT ALL + SUM ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT - + 87 DIV col2 + + - col2 + + - 71 FROM tab1 AS cor0
----
-131
-140
-167

skipif mysql # not compatible
query I rowsort label-3112
SELECT - + 87 / col2 + + - col2 + + - 71 FROM tab1 AS cor0
----
-131
-140
-167

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3113
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) * - 94 - + col0 + - - col1 / 76 + - - CAST( NULL AS DECIMAL ) + + col0 + - col0 * + + col0 - + col1 NOT IN ( + 28 )
----

skipif mysql # not compatible
query III rowsort label-3113
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) * - 94 - + col0 + - - col1 / 76 + - - CAST ( NULL AS REAL ) + + col0 + - col0 * + + col0 - + col1 NOT IN ( + 28 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE NOT + 72 * - col2 - - col1 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3115
SELECT * FROM tab2, tab1 cor0 WHERE NULL <= - CAST( NULL AS SIGNED ) + - 60
----

skipif mysql # not compatible
query IIIIII rowsort label-3115
SELECT * FROM tab2, tab1 cor0 WHERE NULL <= - CAST ( NULL AS INTEGER ) + - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 98 + - 77 col1 FROM tab0
----
-154
-174
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT MAX( + - 18 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT MAX ( + - 18 ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT + ( COUNT( * ) ) + ( 0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + ( COUNT ( * ) ) + ( 0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT + col2 + col2 + + CAST( NULL AS SIGNED ) * + col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT + col2 + col2 + + CAST ( NULL AS INTEGER ) * + col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( - + 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col0 ) + + 27 AS col0 FROM tab1
----
112
118
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST( - - 93 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST ( - - 93 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 + - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT 82 + COUNT( * ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 82 + COUNT ( * ) AS col0 FROM tab1
----
85

query I rowsort
SELECT ALL 21 * + 6 AS col1 FROM tab2
----
126
126
126

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / - - col1 / - col1 BETWEEN 89 + - col2 / - col2 * + ( - + col0 ) AND + + col2
----

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT 35 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3130
SELECT 35 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT DISTINCT - - col1 + + col0 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - - col1 + + col0 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - - 92 * - 35 + - col0 * - 97 col2 FROM tab0 AS cor0
----
-271701
-302931
-46845

query II rowsort
SELECT - ( + 19 ) * + col1 + + col2 AS col1, 98 FROM tab1 AS cor0
----
-170
98
-36
98
-825
98

query I rowsort
SELECT ALL col2 - + col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT + 63 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT + 63 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 15 FROM tab2 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3137
SELECT ALL * FROM tab1 WHERE - col2 * + col2 * col0 BETWEEN col1 AND + ( - CAST( NULL AS SIGNED ) ) * - ( - 12 )
----

skipif mysql # not compatible
query III rowsort label-3137
SELECT ALL * FROM tab1 WHERE - col2 * + col2 * col0 BETWEEN col1 AND + ( - CAST ( NULL AS INTEGER ) ) * - ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( ALL + + 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( ALL + + 46 ) FROM tab1
----
3

query I rowsort
SELECT + col2 * - ( 85 ) AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT - col0 * + 29 * 94 FROM tab2
----
-125396
-174464
-204450

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT col2 DIV - 28 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT col2 / - 28 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT - 40 * - 46 FROM tab2
----
1840
1840
1840

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE + - col1 < + 52 + + col0 + + + col0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3144
SELECT ALL + CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + CAST ( NULL AS REAL ) / - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT col1 DIV - - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3145
SELECT col1 / - - col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT + 6 * - col1 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + MIN( ALL + 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + MIN ( ALL + 80 ) AS col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 6 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - COUNT( 56 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - COUNT ( 56 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 WHERE 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT DISTINCT + COUNT( * ) DIV + + 76 * MAX( DISTINCT 74 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT + COUNT ( * ) / + + 76 * MAX ( DISTINCT 74 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 81 / - - col2 * - col2 NOT IN ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, col1 - + 65 + - col0 col1 FROM tab1 AS cor0
----
51
-102
85
-145
91
-109

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3155
SELECT DISTINCT - col0 AS col0, + 96 DIV - 71 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT - col0 AS col0, + 96 / - 71 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + 3 < col0
----

query II rowsort
SELECT ALL col0, col0 * - ( + - 47 ) + - col2 + 74 * - col0 AS col1 FROM tab1 AS cor0
----
51
-1473
85
-2354
91
-2525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN + col2 * - col0 + + col0 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 67 col0 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT col2 DIV + 29 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-3160
SELECT col2 / + 29 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT CAST( MAX( - col2 ) AS SIGNED ) * - - COUNT( ALL + col0 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-3161
SELECT CAST ( MAX ( - col2 ) AS INTEGER ) * - - COUNT ( ALL + col0 ) FROM tab2
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + - col1 col2 FROM tab0
----
-59
1
21

query I rowsort
SELECT ALL 91 * - - 18 AS col1 FROM tab2
----
1638
1638
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT COUNT( * ) - - + 98 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( * ) - - + 98 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT COUNT( ALL col1 ) * + - 63 - - 70 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT COUNT ( ALL col1 ) * + - 63 - - 70 FROM tab1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) * + + 77 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) * + + 77 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 84 + + col1 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT + col1 - + - col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 6 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 6 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col1 * - col2 * - 12 - - col0 * - 63 AS col2 FROM tab2 cor0
----
11178
32928
41907

query I rowsort
SELECT - 28 * + + 35 + - 21 AS col2 FROM tab0 WHERE + ( 4 ) NOT IN ( + + col2 )
----
-1001
-1001
-1001

query I rowsort
SELECT + 76 FROM tab1, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - col2 ) < col2 )
----

query I rowsort
SELECT ( + col1 ) * + - col2 AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL > ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3176
SELECT ALL + col2 DIV + - col2 AS col0, 75 DIV - - 34 FROM tab1
----
-1
2
-1
2
-1
2

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL + col2 / + - col2 AS col0, 75 / - - 34 FROM tab1
----
-1
2
-1
2
-1
2

query I rowsort
SELECT DISTINCT 49 * - + col2 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL + col2 DIV - 38 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + col2 / - 38 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL COUNT( ALL - 82 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 + - - 66 + - col0 * + + col1 AND 59
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL COUNT ( ALL - 82 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 + - - 66 + - col0 * + + col1 AND 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL ( + MIN( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL ( + MIN ( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT - CAST( NULL AS SIGNED ) / + - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3181
SELECT - CAST ( NULL AS INTEGER ) / + - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 27 + 52 + + col1 + - 76 + - col0 * - - 10 AS col0 FROM tab2 AS cor0
----
-1054
-1667
-2273

query I rowsort
SELECT - 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query II rowsort
SELECT ALL - col1 AS col1, - col0 FROM tab0 WHERE col2 + - 6 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT ALL + 99 DIV + + SUM( DISTINCT 62 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + 99 / + + SUM ( DISTINCT 62 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 74 AS col2 FROM tab0 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 43 <= - col0
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE NOT ( + + col2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + + 41 AS col0, + 23 * col2 AS col1 FROM tab0 AS cor0
----
41
1081
41
2277
41
230

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col1 col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT col2 DIV + col1 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3193
SELECT col2 / + col1 + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 77 * - COUNT( * ) + - - 11 + - COUNT( * ) AS col0 FROM tab1
----
239

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 77 * - COUNT ( * ) + - - 11 + - COUNT ( * ) AS col0 FROM tab1
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - ( - CAST( + + col0 AS SIGNED ) ) + 43 * 69 AS col0 FROM tab2
----
3013
3031
3042

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - ( - CAST ( + + col0 AS INTEGER ) ) + 43 * 69 AS col0 FROM tab2
----
3013
3031
3042

query I rowsort
SELECT ALL 14 + - - ( 52 ) FROM tab2 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL + CAST( + 24 AS SIGNED ) + - CAST( NULL AS SIGNED ) - - + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + CAST ( + 24 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 36 * col1 + - col2 FROM tab2
----
1813
2354
2732

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - 34 + - 60 + - - ( - - COUNT( ALL - 37 ) ) AS col1 FROM tab2 AS cor0 WHERE col2 + - col2 - col2 > NULL
----
-94

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 34 + - 60 + - - ( - - COUNT ( ALL - 37 ) ) AS col1 FROM tab2 AS cor0 WHERE col2 + - col2 - col2 > NULL
----
-94

query I rowsort
SELECT - col0 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + 97 * MAX( DISTINCT - col2 ) + - - 22 AS col1 FROM tab0 AS cor0
----
-948

skipif mysql # not compatible
query I rowsort label-3201
SELECT + 97 * MAX ( DISTINCT - col2 ) + - - 22 AS col1 FROM tab0 AS cor0
----
-948

query I rowsort
SELECT ALL - col0 * - + 99 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + ( - col0 ) + - col1 BETWEEN NULL AND ( + col0 * - + col1 * + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 70 ) <> ( + col1 ) / - 99 + - col0 + - ( ( - + ( col0 ) ) ) - + + 99 + col1 + + - ( + - col0 ) * - col0
----

query I rowsort
SELECT ALL col0 * 97 AS col0 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT 13 * ( SUM( ALL + col0 ) ) AS col1 FROM tab0
----
2587

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT 13 * ( SUM ( ALL + col0 ) ) AS col1 FROM tab0
----
2587

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ( + - 19 ) * + + COUNT( * ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3207
SELECT ( + - 19 ) * + + COUNT ( * ) AS col1 FROM tab2
----
-57

query II rowsort
SELECT DISTINCT col1, col0 * + col0 + + 41 * + col1 AS col1 FROM tab2
----
51
4207
67
8372
77
7253

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3209
SELECT ALL - ( + MIN( ALL + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - ( + MIN ( ALL + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3210
SELECT + 49 AS col1, + COUNT( * ) + + + 8 DIV - COUNT( * ) FROM tab1
----
49
1

skipif mysql # not compatible
query II rowsort label-3210
SELECT + 49 AS col1, + COUNT ( * ) + + + 8 / - COUNT ( * ) FROM tab1
----
49
1

query I rowsort
SELECT ALL ( 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT + 28 + + 56 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL col1 DIV + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL col1 / + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT ALL - - 67 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - - 67 / - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + col1 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL + COUNT( ALL + CAST( - col2 AS SIGNED ) ) * + + COUNT( * ) - 16 + + COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + COUNT ( ALL + CAST ( - col2 AS INTEGER ) ) * + + COUNT ( * ) - 16 + + COUNT ( * ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - col1 + + 43 + + 28 FROM tab1 cor0
----
24
57
66

query I rowsort
SELECT DISTINCT + col1 + 13 FROM tab1 AS cor0
----
18
27
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 * col1 col1 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( - col0 ) * - ( 66 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( - col0 ) * - ( 66 ) AS col0 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT DISTINCT 38 + + + col0 * 9 DIV + - 93 AS col2 FROM tab0
----
29
30
37

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT 38 + + + col0 * 9 / + - 93 AS col2 FROM tab0
----
29
30
37

query I rowsort
SELECT - + 34 + 50 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT COUNT( * ) + - - 74 AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT COUNT ( * ) + - - 74 AS col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT CAST( NULL AS SIGNED ) / + 43 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT CAST ( NULL AS INTEGER ) / + 43 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 87 AS col2 FROM tab2 cor0 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT col2, 44 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
10
80388
47
53460
99
4268

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT ALL - + ( col0 ) * col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - + ( col0 ) * col1 / + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 < + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT + COUNT( ALL + - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3232
SELECT DISTINCT + COUNT ( ALL + - col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - col1 = - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + col0 ) * ( + 52 ) + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-4335
-4641

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - COUNT( - ( - 53 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - COUNT ( - ( - 53 ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL ( 32 ) + - col2 FROM tab2
----
-26
-8
9

query I rowsort
SELECT DISTINCT - 16 + - col1 AS col0 FROM tab0 AS cor0
----
-17
-37
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT 24 DIV + - ( + - ( + + col2 ) ) + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 24 / + - ( + - ( + + col2 ) ) + col1 FROM tab2 AS cor0
----
52
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ( + MIN( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3240
SELECT ( + MIN ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT - 9 AS col0, - ( - MIN( - col2 ) ) FROM tab0 AS cor0
----
-9
-99

skipif mysql # not compatible
query II rowsort label-3242
SELECT - 9 AS col0, - ( - MIN ( - col2 ) ) FROM tab0 AS cor0
----
-9
-99

query I rowsort
SELECT - + 44 * - 61 + - - 45 AS col0 FROM tab2 AS cor0
----
2729
2729
2729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + col2 + + 64 col2 FROM tab2 AS cor0
----
1099
1864
2674

query II rowsort
SELECT - col2 * + + col1 + - - 14 AS col1, col2 FROM tab1 AS cor0
----
-1330
96
-281
59
-3182
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT + col2 + - col2 DIV - + 27 AS col0 FROM tab2
----
23
41
60

skipif mysql # not compatible
query I rowsort label-3246
SELECT + col2 + - col2 / - + 27 AS col0 FROM tab2
----
23
41
60

query I rowsort
SELECT - 15 + + col2 AS col2 FROM tab1
----
44
53
81

query II rowsort
SELECT ALL - col1 * - col0, col2 AS col0 FROM tab2
----
2346
23
4928
40
5025
58

query I rowsort
SELECT - 48 * col1 AS col0 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT ALL + - ( - - 71 ) FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + SUM( ALL - col0 ) - 52 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-3251
SELECT + SUM ( ALL - col0 ) - 52 FROM tab2
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT ALL col0 DIV col1 * - col2 FROM tab2
----
-58
0
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL col0 / col1 * - col2 FROM tab2
----
-58
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT CAST( - 84 AS SIGNED ) AS col2 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( - 84 AS INTEGER ) AS col2 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( ALL - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3254
SELECT + COUNT ( ALL - + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + - ( + col2 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT 6 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
6
51
6
67
6
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT + - COUNT( ALL - + 31 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + - COUNT ( ALL - + 31 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 col2 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 65 - - col0 + - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col2 ) * ( col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND 77
----

query I rowsort
SELECT + 87 * - col1 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT MAX( + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3264
SELECT MAX ( + 6 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT ALL - COUNT( * ), - 14 AS col0 FROM tab2
----
-3
-14

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL - COUNT ( * ), - 14 AS col0 FROM tab2
----
-3
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 31 + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL MIN( DISTINCT 7 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL MIN ( DISTINCT 7 ) FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 DIV 64 * + CAST( + col1 AS SIGNED ) * + col0 * - + col0 < ( + col0 * - col2 )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / 64 * + CAST ( + col1 AS INTEGER ) * + col0 * - + col0 < ( + col0 * - col2 )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT - - 76 DIV 14 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3269
SELECT - - 76 / 14 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT col2 + + + 52 AS col0 FROM tab1
----
111
120
148

query I rowsort
SELECT - - ( + 49 ) + - + 92 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT + ( - CAST( MIN( ALL + col1 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + ( - CAST ( MIN ( ALL + col1 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT - col1 DIV 27 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3274
SELECT - col1 / 27 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT DISTINCT col1 * 11 FROM tab2
----
561
737
847

query II rowsort
SELECT + 82 AS col2, col0 FROM tab1
----
82
51
82
85
82
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + - col1 ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 29 ) - - col0 col0 FROM tab1
----
22
56
62

query I rowsort
SELECT DISTINCT + col1 * 45 AS col2 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT 25 + col2 + - col2 + + 86 + 19 + 94 * col2 * 35 + + col0 AS col2 FROM tab1 cor0
----
194325
223941
316021

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 25 * 95 + 46 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
2424

skipif mysql # not compatible
query I rowsort label-3281
SELECT 25 * 95 + 46 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + + CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3282
SELECT + + CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - - 17 * + 89 + col1 AS col0 FROM tab2 AS cor0
----
1564
1580
1590

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT ALL - 77 DIV col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - 77 / col2 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT MAX( + 74 ) + + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT MAX ( + 74 ) + + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - - MAX( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3286
SELECT - - MAX ( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT 46 / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT 46 / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - - MAX( ALL + 6 ) * + + 43 AS col2 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - - MAX ( ALL + 6 ) * + + 43 AS col2 FROM tab2 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 41 * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 41 * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3291
SELECT ALL 31 DIV MAX( col1 ), + 63 AS col2 FROM tab1
----
0
63

skipif mysql # not compatible
query II rowsort label-3291
SELECT ALL 31 / MAX ( col1 ), + 63 AS col2 FROM tab1
----
0
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3292
SELECT * FROM tab0 WHERE NOT NULL <= - CAST( + 88 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3292
SELECT * FROM tab0 WHERE NOT NULL <= - CAST ( + 88 AS REAL )
----

query I rowsort
SELECT - + col1 + 9 FROM tab2 WHERE NOT 32 BETWEEN NULL AND 29
----
-42
-58
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL + 50 FROM tab0 WHERE - 59 * - + 88 * + + CAST( NULL AS SIGNED ) IS NULL
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + 50 FROM tab0 WHERE - 59 * - + 88 * + + CAST ( NULL AS INTEGER ) IS NULL
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3295
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col1 * - col1 NOT IN ( - 86 + - col2, - CAST( 50 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3295
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col1 * - col1 NOT IN ( - 86 + - col2, - CAST ( 50 AS INTEGER ), col1 )
----

query I rowsort
SELECT 67 * col2 * + + ( - col2 ) FROM tab1
----
-233227
-309808
-617472

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3298
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT 20 + + + col2 FROM tab2 AS cor0
----
43
60
78

query I rowsort
SELECT + + 3 + + 87 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT - col1 + 53 AS col2 FROM tab2
----
-14
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + COUNT( * ) * + MAX( DISTINCT + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + COUNT ( * ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL - 90 DIV - 66 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - 90 / - 66 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3304
SELECT ALL col1 + 55 + + ( CAST( NULL AS DECIMAL ) ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL col1 + 55 + + ( CAST ( NULL AS REAL ) ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT 98 * 63 - + CAST( NULL AS SIGNED ) / + MIN( col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT 98 * 63 - + CAST ( NULL AS INTEGER ) / + MIN ( col0 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0 * + ( + col1 ) AS col2, + 68 + - col1 AS col2 FROM tab0 AS cor0
----
1215
-13
1827
47
97
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT SUM( - + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL > 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT SUM ( - + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL > 63
----
NULL

query I rowsort
SELECT ALL - 38 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query II rowsort
SELECT DISTINCT + col2 AS col2, 66 FROM tab1 AS cor0
----
59
66
68
66
96
66

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 75 * col0 AS col0 FROM tab1 cor0
----
-3825
-6375
-6825

query I rowsort
SELECT - + col0 * + col1 + - 74 FROM tab2 AS cor0
----
-2420
-5002
-5099

query I rowsort
SELECT ALL - 25 * + 72 * 72 FROM tab1 cor0
----
-129600
-129600
-129600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 - + 34 col0 FROM tab1 AS cor0
----
391
4243
680

query I rowsort
SELECT + col1 * - 34 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 * - + 97 / - 43 IS NOT NULL )
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL 38 * - + COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL 38 * - + COUNT ( * ) FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3318
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + + 38 IS NOT NULL
----

query II rowsort
SELECT - ( - col1 ) AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - - 70 AS col0 FROM tab2 WHERE + col0 <> - - col2
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col1 + 60 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT - col0 + + col0 + - + 33 DIV + col1 + + col1 FROM tab1 cor0
----
-1
12
47

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - col0 + + col0 + - + 33 / + col1 + + col1 FROM tab1 cor0
----
-1
12
47

query I rowsort
SELECT ALL + col0 + - col0 + - 78 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT DISTINCT - col2 + - col2, 31 + + 74 AS col2 FROM tab2 AS cor0
----
-116
105
-46
105
-80
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + 80 + COUNT( * ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3326
SELECT + 80 + COUNT ( * ) FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 * col2 )
----

query I rowsort
SELECT ALL + + ( 48 ) AS col0 FROM tab2 AS cor0
----
48
48
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3330
SELECT * FROM tab2 WHERE + col0 * - col1 * + col0 NOT IN ( + - 37 + - 42, CAST( col2 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3330
SELECT * FROM tab2 WHERE + col0 * - col1 * + col0 NOT IN ( + - 37 + - 42, CAST ( col2 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 + + - 41 FROM tab0 AS cor0
----
-31
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL COUNT( DISTINCT - 52 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL COUNT ( DISTINCT - 52 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + + ( + - 93 ) FROM tab2 cor0
----
-93

query I rowsort
SELECT DISTINCT col2 + + - 63 + + + col1 * + - 17 + - col2 AS col1 FROM tab2 AS cor0
----
-1202
-1372
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT + + MIN( CAST( 68 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3335
SELECT + + MIN ( CAST ( 68 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - 62 - + 72 * - + col2 FROM tab0 AS cor0
----
3322
658
7066

query I rowsort
SELECT col2 * + ( + ( col2 ) ) - - - col2 AS col1 FROM tab0
----
2162
90
9702

query I rowsort
SELECT - col1 - - col2 - - col1 + + col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 19 - + - col2 AS col1 FROM tab1
----
115
78
87

query I rowsort
SELECT - - col0 * + ( - col2 ) + 28 + + col0 AS col0 FROM tab1 WHERE - col1 BETWEEN col2 + col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + MAX( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL - - MAX( DISTINCT - 15 ) AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - - MAX ( DISTINCT - 15 ) AS col1 FROM tab1 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col0 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - COUNT( * ) * + COUNT( * ) * + 10 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3344
SELECT - COUNT ( * ) * + COUNT ( * ) * + 10 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT ( 12 ) * col0 * - col0 + + + ( + 45 ) + - col1 * col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-26566
-52251
-71416

query II rowsort
SELECT + 80, - col2 AS col2 FROM tab1 AS cor0
----
80
-59
80
-68
80
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + - 78 + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-69

skipif mysql # not compatible
query I rowsort label-3347
SELECT + - 78 + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-69

query I rowsort
SELECT - col2 * + 89 * + col1 FROM tab0 AS cor0
----
-18690
-338823
-8811

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 89 * col2 <> - - col1 * + 60
----

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT ALL - 18 * - COUNT( * ) + - - COUNT( * ) DIV + 98 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - 18 * - COUNT ( * ) + - - COUNT ( * ) / + 98 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 51 * 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3354
SELECT ALL + - col1 * CAST( + - 18 AS DECIMAL ) + - + col2 / + - col0 FROM tab0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + - col1 * CAST ( + - 18 AS REAL ) + - + col2 / + - col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL - MAX( ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - MAX ( ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - - ( - 81 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT COUNT( 11 ) * - 86 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT COUNT ( 11 ) * - 86 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT - 96 + - col1 DIV col2 FROM tab2
----
-97
-97
-98

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 96 + - col1 / col2 FROM tab2
----
-97
-97
-98

query I rowsort
SELECT 84 + col0 * 42 AS col2 FROM tab2
----
2016
2772
3234

query I rowsort
SELECT col2 - 90 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT + col2 DIV - 84 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT + col2 / - 84 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT - col1 DIV col2 + - col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-3365
SELECT - col1 / col2 + - col2 FROM tab2
----
-25
-41
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - 2 * ( - col0 ) - col2 DIV - 74 AS col1 FROM tab0
----
174
195
30

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 2 * ( - col0 ) - col2 / - 74 AS col1 FROM tab0
----
174
195
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN ( + 38 + 70 / CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3367
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN ( + 38 + 70 / CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + 15 BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + 15 BETWEEN NULL AND - col2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * - col0 + + 36 ) BETWEEN + 1 AND - col2
----

query I rowsort
SELECT col1 * 54 AS col0 FROM tab2
----
2754
3618
4158

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 / + col2 ) IN ( - col0 )
----

query I rowsort
SELECT 6 AS col0 FROM tab1 WHERE col1 / 8 + + col2 * + 6 < ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT - 54 DIV - col0 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - 54 / - col0 AS col2 FROM tab0
----
0
3

query I rowsort
SELECT ALL + 72 * col1 FROM tab0
----
1512
5832
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) * - MIN( DISTINCT + col0 * col0 + col0 ) - 2 AS col1 FROM tab0
----
718

skipif mysql # not compatible
query I rowsort label-3375
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) * - MIN ( DISTINCT + col0 * col0 + col0 ) - 2 AS col1 FROM tab0
----
718

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 57 >= - col0 * 49 + + 52 * col1
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT + 31 IS NOT NULL
----

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 57 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - ( 63 ) FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3381
SELECT * FROM tab2 WHERE NOT CAST( - 60 AS SIGNED ) + col1 NOT IN ( 80 )
----

skipif mysql # not compatible
query III rowsort label-3381
SELECT * FROM tab2 WHERE NOT CAST ( - 60 AS INTEGER ) + col1 NOT IN ( 80 )
----

query I rowsort
SELECT + ( ( col0 ) ) AS col0 FROM tab0 WHERE ( - col2 / col2 ) NOT IN ( - col2 - - 73 * col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT COUNT( ALL + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3383
SELECT COUNT ( ALL + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 54 - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MIN( DISTINCT + 78 ) FROM tab0 WHERE ( + col2 * ( - col0 ) + col2 ) NOT IN ( 46 )
----
78

skipif mysql # not compatible
query I rowsort label-3385
SELECT + MIN ( DISTINCT + 78 ) FROM tab0 WHERE ( + col2 * ( - col0 ) + col2 ) NOT IN ( 46 )
----
78

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 80 IN ( col0 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 78 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - 17 * - COUNT( * ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - 17 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT ( - 54 ) AS col0 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL SUM( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-17

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL SUM ( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-17

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( + 99 ) < - 67
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 >= NULL
----

query I rowsort
SELECT col0 * - 37 FROM tab2 WHERE NOT ( col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL + 39 FROM tab0 AS cor0 WHERE + ( ( 70 ) ) * col2 NOT BETWEEN NULL AND col0 / - CAST( col2 * - col1 AS SIGNED )
----
39
39
39

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + 39 FROM tab0 AS cor0 WHERE + ( ( 70 ) ) * col2 NOT BETWEEN NULL AND col0 / - CAST ( col2 * - col1 AS INTEGER )
----
39
39
39

query I rowsort
SELECT DISTINCT + 79 * col0 AS col2 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - SUM( ALL col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - SUM ( ALL col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + col0 + 95 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT ALL col1 + 4 AS col1 FROM tab1 cor0
----
18
51
9

query I rowsort
SELECT ALL - col0 * 94 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT 38 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3401
SELECT 38 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT col2 DIV + col0 * col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT col2 / + col0 * col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + - 67 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( * ) * + MAX( ALL 24 ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL 24 ) AS col2 FROM tab0
----
72

query I rowsort
SELECT col2 * - - ( col1 ) * col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT ALL + 6 + col2 - col0 AS col1 FROM tab2
----
-11
-17
-18

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 69
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col1 * - col1 > 99
----

query I rowsort
SELECT ALL col1 * - + col1 * - 17 FROM tab2
----
100793
44217
76313

query I rowsort
SELECT ALL 20 + + 75 + - col0 FROM tab1
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + 60 + MIN( ALL - col0 ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 60 + MIN ( ALL - col0 ) FROM tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( * ) - 91 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + 93 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( * ) - 91 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + 93 * - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT col1 + + + col0 DIV col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3414
SELECT col1 + + + col0 / col0 FROM tab1
----
15
48
6

query I rowsort
SELECT ALL 51 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - 1 * - - col2 * + - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL - 96 DIV - COUNT( + ( 97 ) ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - 96 / - COUNT ( + ( 97 ) ) AS col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL 75 + + 42 FROM tab1 AS cor0
----
117
117
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 16 + col2 BETWEEN + col1 + col1 AND - col2
----

query I rowsort
SELECT - col0 * + 10 - - 4 AS col1 FROM tab1 AS cor0
----
-506
-846
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + COUNT( * ) + - + 79 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + COUNT ( * ) + - + 79 AS col2 FROM tab0 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT CAST( NULL AS SIGNED ) - - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT CAST ( NULL AS INTEGER ) - - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 * + + col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + + 57 FROM tab0
----
1197
4617
57

query I rowsort
SELECT ALL 72 * + 27 * + + 96 AS col1 FROM tab0
----
186624
186624
186624

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT IN ( 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT ALL MIN( + col1 ) col2, - COUNT( * ) FROM tab2
----
51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3430
SELECT ALL MIN ( + col1 ) col2, - COUNT ( * ) FROM tab2
----
51
-3

query I rowsort
SELECT - + col0 * - - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + + + 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT + ( - - CAST( + 68 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3433
SELECT + ( - - CAST ( + 68 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
68
68
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 42 AND ( NULL ) )
----

query I rowsort
SELECT - + 5 * + col0 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
10580
20480
28125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 53 + - col2 AS col1 FROM tab0 AS cor0
----
-46
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90 + + ( + col2 ) col0, col1 AS col0 FROM tab2 AS cor0
----
113
51
130
77
148
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT - - ( + col1 ) DIV 42 + + 9 DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3439
SELECT - - ( + col1 ) / 42 + + 9 / + col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - col0 + + 24 + col1 FROM tab1
----
-13
-20
-56

query I rowsort
SELECT + col2 + + 56 FROM tab2
----
114
79
96

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 WHERE NOT - - col2 NOT IN ( col2 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + MIN( DISTINCT - ( + 23 ) ) * - - 37 FROM tab1
----
-851

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + MIN ( DISTINCT - ( + 23 ) ) * - - 37 FROM tab1
----
-851

query I rowsort
SELECT ALL - col1 * - + col1 * col1 FROM tab1
----
103823
125
2744

query II rowsort
SELECT col0 AS col0, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 96 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 96 * + col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - CAST( - - 37 AS SIGNED ) FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-3448
SELECT - CAST ( - - 37 AS INTEGER ) FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3449
SELECT ALL - col1 AS col0, CAST( + col0 AS SIGNED ) + + - 31 * 79 + - col1 AS col1 FROM tab0
----
-1
-2353
-21
-2383
-81
-2515

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL - col1 AS col0, CAST ( + col0 AS INTEGER ) + + - 31 * 79 + - col1 AS col1 FROM tab0
----
-1
-2353
-21
-2383
-81
-2515

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT ALL + col1 DIV + + ( - col2 ) + + col0 * ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1056
2559
4349

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + col1 / + + ( - col2 ) + + col0 * ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1056
2559
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT + 8 + + COUNT( * ) - + SUM( + - 93 ) FROM tab1 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + 8 + + COUNT ( * ) - + SUM ( + - 93 ) FROM tab1 AS cor0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT + 15 + + CAST( - ( + col1 ) AS SIGNED ) * - col2 + col2 AS col2 FROM tab2
----
1211
3135
3959

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 15 + + CAST ( - ( + col1 ) AS INTEGER ) * - col2 + col2 AS col2 FROM tab2
----
1211
3135
3959

query I rowsort
SELECT DISTINCT - col0 * + + 79 AS col2 FROM tab2
----
-3634
-5056
-5925

query II rowsort
SELECT - col1 + + + col2 AS col2, 56 FROM tab0
----
-11
56
-34
56
98
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 53 - - col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT DISTINCT - CAST( + ( + - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col1 >= + col2 * - 97
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - CAST ( + ( + - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + col1 >= + col2 * - 97
----
1
21
81

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT DISTINCT + + col2, + 57 FROM tab2 AS cor0 WHERE + ( - - col2 ) - - + col2 IS NOT NULL
----
23
57
40
57
58
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3459
SELECT + col0, col2 DIV + - col2 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-3459
SELECT + col0, col2 / + - col2 FROM tab1
----
51
-1
85
-1
91
-1

query I rowsort
SELECT DISTINCT col1 * col0 * - 68 FROM tab2
----
-159528
-335104
-341700

query II rowsort
SELECT 59 AS col0, 57 AS col1 FROM tab2
----
59
57
59
57
59
57

query I rowsort
SELECT ALL 13 FROM tab1 WHERE + - col0 BETWEEN + col1 + + - 14 AND ( + col0 * - col2 + + 13 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3463
SELECT * FROM tab0 WHERE col1 * + CAST( + col2 AS SIGNED ) IS NULL OR NOT ( col1 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3463
SELECT * FROM tab0 WHERE col1 * + CAST ( + col2 AS INTEGER ) IS NULL OR NOT ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT SUM( DISTINCT col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3464
SELECT DISTINCT SUM ( DISTINCT col2 ) col0 FROM tab0
----
156

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT COUNT( * ) * ( 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3466
SELECT COUNT ( * ) * ( 90 ) FROM tab2
----
270

query II rowsort
SELECT ALL - 94, col1 FROM tab2
----
-94
51
-94
67
-94
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 15 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT CAST( NULL AS SIGNED ) * - 14 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT CAST ( NULL AS INTEGER ) * - 14 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT + - col2 DIV 27 AS col1 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + - col2 / 27 AS col1 FROM tab1 AS cor0
----
-2
-3

query II rowsort
SELECT ALL + col1 AS col2, col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - + 89 + + col0 FROM tab0 AS cor0
----
-2
-74
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + 77 AS col1 FROM tab1 cor0
----
-51
77
-85
77
-91
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col1 + 86 AS col2, col2 + - + 87 + - + col2 FROM tab1 cor0
----
100
-87
133
-87
91
-87

query II rowsort
SELECT + + col0 * + col2, - col2 * + 8 * + col2 * + 60 AS col0 FROM tab2 AS cor0
----
1058
-253920
2560
-768000
4350
-1614720

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT ALL + - col1 + + - col0 DIV col2 AS col0 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - col1 + + - col0 / col2 AS col0 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT + ( - 68 ) * 20 FROM tab0
----
-1360
-1360
-1360

query I rowsort
SELECT DISTINCT 60 * - + col1 FROM tab0
----
-1260
-4860
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3481
SELECT * FROM tab0 WHERE + CAST( - 41 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3481
SELECT * FROM tab0 WHERE + CAST ( - 41 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + ( 26 ) * - - col0 * - col0 FROM tab0
----
-196794
-244634
-5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col2 ) ) - - col2 * 3 * 50 * 94 col2 FROM tab1
----
1353696
831959
958868

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL COUNT( * ) * + - 39 AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL COUNT ( * ) * + - 39 AS col0 FROM tab2
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3485
SELECT 18 AS col1 FROM tab0 WHERE ( - col1 - - - 17 - CAST( - - col0 AS DECIMAL ) * col2 + 20 ) IS NOT NULL
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3485
SELECT 18 AS col1 FROM tab0 WHERE ( - col1 - - - 17 - CAST ( - - col0 AS REAL ) * col2 + 20 ) IS NOT NULL
----
18
18
18

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col1
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 8 * - 40 <> + col0 * - 72
----
14
47
5

query I rowsort
SELECT - 80 + + + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( + - col2 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - - MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3490
SELECT - - MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + 46 * + col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT - col2 * 24 * - 6 AS col1 FROM tab1 AS cor0
----
13824
8496
9792

query I rowsort
SELECT - ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT ALL + 79 DIV - col0 AS col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 79 / - col0 AS col0 FROM tab0 cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 87 * - 62 ) NOT BETWEEN NULL AND + col1 / - - 23
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL col1 DIV - 92 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL col1 / - 92 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT ALL - col2 DIV + - col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - col2 / + - col1 AS col0 FROM tab0
----
0
0
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 91 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT DISTINCT + COUNT( * ) * - 25 AS col2, ( + 65 ) * CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3501
SELECT DISTINCT + COUNT ( * ) * - 25 AS col2, ( + 65 ) * CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + - + col1 * - + col1 col0 FROM tab0 AS cor0
----
-1386
-96
5346

query I rowsort
SELECT - col0 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT col2 * - 29 + + 69 AS col2 FROM tab1 AS cor0
----
-1642
-1903
-2715

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON ( ( NULL ) IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT col2 * - - 54 * col0 AS col0 FROM tab1
----
264384
270810
334152

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - MIN( + - 34 ) + - COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - MIN ( + - 34 ) + - COUNT ( * ) FROM tab0 AS cor0
----
31

query II rowsort
SELECT + col0 + ( - 80 ), - 79 AS col2 FROM tab0 AS cor0
----
-65
-79
17
-79
7
-79

query I rowsort
SELECT + 41 + - - col1 AS col2 FROM tab0 cor0
----
122
42
62

query I rowsort
SELECT ( - col2 ) + + + 40 + - col2 FROM tab0 AS cor0
----
-158
-54
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT ALL col2 * col0 - col0 + - ( 24 ) DIV - 48 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL col2 * col0 - col0 + - ( 24 ) / - 48 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 + - - 28 * - col0 col0, col1 - - 6 AS col0 FROM tab1 AS cor0
----
-1332
20
-2321
11
-2480
53

query II rowsort
SELECT ALL col2, col0 * - 4 AS col0 FROM tab0 AS cor0
----
10
-348
47
-60
99
-388

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT 34 DIV col0 + + + ( + + col1 ) FROM tab2 WHERE - 91 + + col1 NOT IN ( col1, - col1 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3517
SELECT 34 / col0 + + + ( + + col1 ) FROM tab2 WHERE - 91 + + col1 NOT IN ( col1, - col1 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col1 * - col2 IN ( - - col2 * + 23, col2, - col2 )
----

skipif mysql # not compatible
query I rowsort label-3518
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col1 * - col2 IN ( - - col2 * + 23, col2, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + 36 col2 FROM tab1
----
124
124
124

query I rowsort
SELECT col2 + + col2 - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( 81 ) AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + COUNT( 42 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3522
SELECT + COUNT ( 42 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL AND NOT ( NOT - - col0 IS NOT NULL )
----

query I rowsort
SELECT - col0 - + + 14 FROM tab1 AS cor0
----
-105
-65
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT - - MIN( ALL - 45 ) - + 92 FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT - - MIN ( ALL - 45 ) - + 92 FROM tab2 AS cor0
----
-137

query I rowsort
SELECT - 23 * - - 27 FROM tab1
----
-621
-621
-621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT + CAST( - - 4 AS SIGNED ) AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3527
SELECT + CAST ( - - 4 AS INTEGER ) AS col1 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL SUM( DISTINCT - 68 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL SUM ( DISTINCT - 68 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 = col2 * ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 12 AS col0, col2 + - 16 FROM tab0 AS cor0
----
12
-6
12
31
12
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col0 FROM tab0 AS cor0 WHERE NOT - col0 + col0 * + col0 BETWEEN - - 63 AND + 10
----
-14

query I rowsort
SELECT DISTINCT + 92 * col0 AS col0 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL MAX( ( - ( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL MAX ( ( - ( CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3535
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
199

query II rowsort
SELECT DISTINCT col0, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + ( SUM( + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3537
SELECT + ( SUM ( + col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT COUNT( * ) * - + 41 AS col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT COUNT ( * ) * - + 41 AS col1 FROM tab0 AS cor0
----
-123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - MAX( - - col1 ) + 37 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - MAX ( - - col1 ) + 37 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL - 67 * + ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3953
-4556
-6432

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - ( + 94 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + + - 42 col1 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT ALL 25 DIV COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 25 / COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT DISTINCT + COUNT( DISTINCT - 13 ) AS col2, SUM( DISTINCT + col0 ) FROM tab2
----
1
185

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT + COUNT ( DISTINCT - 13 ) AS col2, SUM ( DISTINCT + col0 ) FROM tab2
----
1
185

query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab2 WHERE NOT + ( + - 51 ) IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) + - + 20 AS col2 FROM tab0
----
-119
-30
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL + ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL col0 + + col1 * + - col2 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT - 96 + 9 * + 99 FROM tab1 AS cor0
----
795

query I rowsort
SELECT ALL ( - - 22 ) + + col0 FROM tab1 cor0
----
107
113
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + - CAST( 65 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-152
-162
-80

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + - CAST ( 65 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-152
-162
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3556
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col0, - 54 AS col0 FROM tab1 AS cor0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col0, - 54 AS col0 FROM tab1 AS cor0
----
NULL
-54

query II rowsort
SELECT col1 AS col0, + col2 * + + col1 FROM tab2 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT 57 - + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3559
SELECT 57 - + COUNT ( * ) AS col0 FROM tab0
----
54

query II rowsort
SELECT col2 * + col2 - + - 84, 32 AS col0 FROM tab2
----
1684
32
3448
32
613
32

query I rowsort
SELECT DISTINCT + col2 * + 33 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT 46 - + SUM( - col1 ) AS col0 FROM tab1
----
112

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT 46 - + SUM ( - col1 ) AS col0 FROM tab1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT - + col1 DIV col0 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - + col1 / col0 AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT ALL 36 DIV + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-47
-63
-9

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL 36 / + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-47
-63
-9

query I rowsort
SELECT + AVG ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 50 * - 47 AS col1 FROM tab1 AS cor0
----
-2350
-2350
-2350

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 * + ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 7 + - - col1 NOT IN ( + col1, - col0 - - + col0, col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + 6 ) FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT + - CAST( NULL AS SIGNED ) * + + ( - ( + - MAX( col0 ) ) ) + + + 6 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT + - CAST ( NULL AS INTEGER ) * + + ( - ( + - MAX ( col0 ) ) ) + + + 6 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 87 * 49 + + ( - - 89 ) * col2 AS col1 FROM tab1 AS cor0
----
1789
4281
988

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT COUNT( ALL + - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT COUNT ( ALL + - col2 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 53 * - col0 * + - col2 - 41 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT ( + - 22 ) * - COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT ( + - 22 ) * - COUNT ( * ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab2 WHERE - 9 NOT IN ( + col1 * col1 + - 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 67 - + col1 col0 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab2 AS cor0 WHERE col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT + - COUNT( * ) * + - 54 + 75, 7 + - 57 AS col1 FROM tab0 AS cor0
----
237
-50

skipif mysql # not compatible
query II rowsort label-3579
SELECT + - COUNT ( * ) * + - 54 + 75, 7 + - 57 AS col1 FROM tab0 AS cor0
----
237
-50

query I rowsort
SELECT ALL + 19 + + col2 AS col1 FROM tab0 AS cor0
----
118
29
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 11 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 + - 13 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND - - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL + ( + - col1 ) + - ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT ALL + ( + - col1 ) + - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + COUNT( * ) + - MAX( ( - 23 ) ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3586
SELECT + COUNT ( * ) + - MAX ( ( - 23 ) ) FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT + 81 + - CAST( - COUNT( ALL col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 81 + - CAST ( - COUNT ( ALL col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + 86 + + - SUM( 8 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 86 + + - SUM ( 8 ) FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CAST( + - col1 AS SIGNED ) + - col0 + + col1 FROM tab2 cor0
----
56
59
90

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CAST ( + - col1 AS INTEGER ) + - col0 + + col1 FROM tab2 cor0
----
56
59
90

query II rowsort
SELECT DISTINCT col2 + - 73, + col0 AS col2 FROM tab1
----
-14
85
-5
91
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT 44 * - - MIN( ALL - 60 ) col2 FROM tab0
----
-2640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3591
SELECT DISTINCT 44 * - - MIN ( ALL - 60 ) col2 FROM tab0
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT 26 * + CAST( col0 AS SIGNED ) col2, 32 AS col0 FROM tab1
----
1326
32
2210
32
2366
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3592
SELECT 26 * + CAST ( col0 AS INTEGER ) col2, 32 AS col0 FROM tab1
----
1326
32
2210
32
2366
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT + col0 DIV 79 DIV - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + col0 / 79 / - col0 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT ALL - CAST( NULL AS SIGNED ) / + - col0, col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL - CAST ( NULL AS INTEGER ) / + - col0, col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT DISTINCT + col0 DIV + 7 - col0 FROM tab0 cor0
----
-13
-75
-84

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + col0 / + 7 - col0 FROM tab0 cor0
----
-13
-75
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-3597
SELECT 8 col1, - 98 DIV 48 FROM tab2
----
8
-2
8
-2
8
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3597
SELECT 8 col1, - 98 / 48 FROM tab2
----
8
-2
8
-2
8
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 + 97 - - col1 * - 0 col2 FROM tab1 AS cor0
----
170

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL - CAST( NULL AS SIGNED ) * - 11 + + - 28 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - CAST ( NULL AS INTEGER ) * - 11 + + - 28 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2, 6 * + col0 FROM tab2 AS cor0
----
23
276
40
384
58
450

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 + + col1 * + col0 + ( 45 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col1, col0 * + col2 - - 72 - - col1 - + ( - 22 ) AS col0 FROM tab0 AS cor0
----
15
880
87
985
97
9698

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT + col0 DIV + 54 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col0 / + 54 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT 51 * + 64 * - 32 AS col0 FROM tab1
----
-104448
-104448
-104448

onlyif mysql # DIV for integer division: 
query II rowsort label-3607
SELECT col1 DIV + col1 AS col0, 20 * ( - 15 ) DIV - col1 FROM tab2
----
1
3
1
4
1
5

skipif mysql # not compatible
query II rowsort label-3607
SELECT col1 / + col1 AS col0, 20 * ( - 15 ) / - col1 FROM tab2
----
1
3
1
4
1
5

query I rowsort
SELECT + col2 * ( - col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT ALL + ( col0 ), - col1 - 32 FROM tab1
----
51
-46
85
-37
91
-79

query I rowsort
SELECT - 83 * 22 AS col0 FROM tab0
----
-1826
-1826
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + COUNT( * ) * - 83 FROM tab2 AS cor0 WHERE col0 * - - col2 IN ( + + col2 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + COUNT ( * ) * - 83 FROM tab2 AS cor0 WHERE col0 * - - col2 IN ( + + col2 * col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3612
SELECT - col1 DIV col1 + + 7 + col0 * - 35 + CAST( + 45 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-3674
-5114
-5994

skipif mysql # not compatible
query I rowsort label-3612
SELECT - col1 / col1 + + 7 + col0 * - 35 + CAST ( + 45 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-3674
-5114
-5994

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL + 93 DIV 62 + + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + 93 / 62 + + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 67
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT ALL + - col1 + + 47 FROM tab2 AS cor0
----
-20
-30
-4

query I rowsort
SELECT 67 - - 36 * - - col0 * col2 * 67 FROM tab2 AS cor0
----
10492267
2551963
6174787

query I rowsort
SELECT + + 83 - - ( + col1 ) FROM tab1 cor0
----
130
88
97

query I rowsort
SELECT DISTINCT - - col0 / - - ( 59 ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - 97 + - - 46 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3620
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT DISTINCT + 80 * + COUNT( * ), 12 col2 FROM tab2
----
240
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3621
SELECT DISTINCT + 80 * + COUNT ( * ), 12 col2 FROM tab2
----
240
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL - CAST( NULL AS SIGNED ) / ( + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - CAST ( NULL AS INTEGER ) / ( + col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL - 97 DIV - col1 AS col2 FROM tab0
----
1
4
97

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - 97 / - col1 AS col2 FROM tab0
----
1
4
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT ALL COUNT( col2 ) DIV + + 70 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COUNT ( col2 ) / + + 70 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( col1 ) * - 75 FROM tab2 WHERE NOT NULL IN ( + col2, + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 21, + col0 + - - col0 * + col1 * - col2 col0 FROM tab1 AS cor0
----
21
-24990
21
-290745
21
-68493

query II rowsort
SELECT DISTINCT - 72 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3628
SELECT MIN( DISTINCT + + CAST( + ( + + col0 ) AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT MIN ( DISTINCT + + CAST ( + ( + + col0 ) AS INTEGER ) ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 60 AS col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3630
SELECT DISTINCT * FROM tab1 WHERE CAST( col2 AS SIGNED ) - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3630
SELECT DISTINCT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) - col1 IS NULL
----

query I rowsort
SELECT ALL + 28 + - - 18 AS col1 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT ALL - col2 DIV col1 + + 30 - - - col0 * col0 AS col2 FROM tab2 AS cor0
----
-2086
-4066
-5595

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - col2 / col1 + + 30 - - - col0 * col0 AS col2 FROM tab2 AS cor0
----
-2086
-4066
-5595

query I rowsort
SELECT - col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * + - col1 AS col2, + col0 col1 FROM tab0 cor0
----
1
97
441
87
6561
15

query I rowsort
SELECT ALL 56 * + col1 AS col0 FROM tab0 AS cor0
----
1176
4536
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 16 < + - col0 * - 33
----

query I rowsort
SELECT DISTINCT 93 * - - col1 AS col1 FROM tab0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT MIN( ALL + 79 ) * - 64 + 67 FROM tab0
----
-4989

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT MIN ( ALL + 79 ) * - 64 + 67 FROM tab0
----
-4989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 62 AS col0 FROM tab2
----
-51
-62
-67
-62
-77
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3640
SELECT CAST( NULL AS DECIMAL ) + + + MAX( - 96 ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT CAST ( NULL AS REAL ) + + + MAX ( - 96 ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT + + 70 AS col0, col1 FROM tab0 cor0
----
70
1
70
21
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ( + MAX( 65 ) ) * + + 74 FROM tab0 AS cor0
----
4810

skipif mysql # not compatible
query I rowsort label-3642
SELECT ( + MAX ( 65 ) ) * + + 74 FROM tab0 AS cor0
----
4810

query II rowsort
SELECT DISTINCT - + col2 * - - col0 + - col0, + col0 - + + ( + - col0 ) + + - col2 AS col1 FROM tab1 AS cor0
----
-4947
6
-5100
111
-6279
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE col1 * + CAST( col2 AS SIGNED ) * 29 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE col1 * + CAST ( col2 AS INTEGER ) * 29 IS NOT NULL
----
51
67
77

query I rowsort
SELECT 29 * + col0 - - + 95 FROM tab1
----
1574
2560
2734

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT col0 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - + 19 + + col1 * + 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col2 + + col1 - + col0 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 66 + + col1 / - 90 IN ( + col2, 20, + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 66 + + col1 / - 90 IN ( + col2, 20, + 71 )
----
0

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT + 49 <= col0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + ( - col2 ), col0 col1 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT ALL - 36 DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - 36 / - col0 FROM tab0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - 45 col1 FROM tab0
----
-3195
-3195
-3195

query I rowsort
SELECT ALL + col0 * + 43 AS col0 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT + col2 * - 49 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT DISTINCT - + ( + - col1 ) AS col2 FROM tab0 cor0
----
1
21
81

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query II rowsort
SELECT 55 / 0 AS col1, + col1 * col1 * + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT 54 * + MIN( 83 ) AS col2 FROM tab2 cor0
----
4482

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT 54 * + MIN ( 83 ) AS col2 FROM tab2 cor0
----
4482

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + + 86
----

query I rowsort
SELECT ALL - 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL - 39 + + - col2 FROM tab1
----
-107
-135
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT DISTINCT CAST( + - col1 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 70 + - 19 FROM tab0 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT ALL 10 + - + col0 + + + CAST( + col2 AS SIGNED ) * - - 3 AS col2 FROM tab0 AS cor0
----
-47
136
210

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL 10 + - + col0 + + + CAST ( + col2 AS INTEGER ) * - - 3 AS col2 FROM tab0 AS cor0
----
-47
136
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab1 cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3668
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) BETWEEN ( - col1 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3668
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) BETWEEN ( - col1 ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + - col0 FROM tab2 AS cor0 WHERE 94 * 34 + - CAST( - 27 AS SIGNED ) = + ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3669
SELECT + - col0 FROM tab2 AS cor0 WHERE 94 * 34 + - CAST ( - 27 AS INTEGER ) = + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - col0 * col2 * + 25 AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) / + 87 * - col1 + col1 * + CAST( col2 AS SIGNED ) > 87 * - 23
----
-122400
-125375
-154700

skipif mysql # not compatible
query I rowsort label-3670
SELECT - col0 * col2 * + 25 AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) / + 87 * - col1 + col1 * + CAST ( col2 AS INTEGER ) > 87 * - 23
----
-122400
-125375
-154700

query II rowsort
SELECT 80 AS col0, col1 FROM tab1 cor0
----
80
14
80
47
80
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3672
SELECT col1 * col2 DIV - 47 + - - col2, 36 AS col2 FROM tab2 AS cor0
----
-1
36
-24
36
-25
36

skipif mysql # not compatible
query II rowsort label-3672
SELECT col1 * col2 / - 47 + - - col2, 36 AS col2 FROM tab2 AS cor0
----
-1
36
-24
36
-25
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ( + CAST( - col0 AS SIGNED ) ) * + 77 AS col1 FROM tab2
----
-3542
-4928
-5775

skipif mysql # not compatible
query I rowsort label-3673
SELECT ( + CAST ( - col0 AS INTEGER ) ) * + 77 AS col1 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT + col0 DIV + 19 AS col2 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + col0 / + 19 AS col2 FROM tab2
----
2
3

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 12 < - ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT + 24 DIV + - ( col1 ) * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT + 24 / + - ( col1 ) * + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3678
SELECT ALL SUM( DISTINCT + - 89 ), CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL SUM ( DISTINCT + - 89 ), CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
-89
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + col0 * 78 col0 FROM tab0
----
346086
385866
59670

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + - 37 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + col2 + col0 * col0 IS NULL AND 37 <= - + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT + + CAST( - + ( - + col1 ) AS SIGNED ) + + col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3682
SELECT + + CAST ( - + ( - + col1 ) AS INTEGER ) + + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT MIN( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3683
SELECT MIN ( ALL - ( 87 ) ) AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + 43 * - - col0 - - col1 AS col1 FROM tab1
----
2207
3660
3960

query I rowsort
SELECT DISTINCT - 53 - - + 24 + 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT + - col2 DIV + + 20 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3687
SELECT + - col2 / + + 20 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL + - 16 AS col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-16
-3

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL + - 16 AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-16
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT ALL COUNT( * ) AS col1, + 34 AS col0 FROM tab2 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL COUNT ( * ) AS col1, + 34 AS col0 FROM tab2 AS cor0
----
3
34

query I rowsort
SELECT ALL + - ( + + col0 ) * + 2 * - - 65 * - col1 FROM tab0 AS cor0
----
12610
157950
237510

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( - - ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3693
SELECT MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - + col0 * - 54 FROM tab0 AS cor0
----
4698
5238
810

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - + 15 + + - col2 * - + 23 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT 65 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 + - + CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT 65 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 + - + CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
65

query II rowsort
SELECT ALL - 10 * - col0 AS col0, - col1 + col1 - + + 33 * + + col2 AS col1 FROM tab1 AS cor0
----
510
-3168
850
-1947
910
-2244

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - + 85 * 84 * 78 - - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT ALL + - COUNT( * ) col2, + COUNT( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3701
SELECT ALL + - COUNT ( * ) col2, + COUNT ( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-459

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL
----

query II rowsort
SELECT col2 AS col0, 77 AS col0 FROM tab1 AS cor0
----
59
77
68
77
96
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - 75 col0 FROM tab2 AS cor0
----
2271
4853
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT DISTINCT + 59 + - COUNT( * ) + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 59 + - COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - - col1 * col1 + - + ( - - col0 ) + + 23 * - 75 + col1 AS col2 FROM tab1 AS cor0
----
-1566
-1780
440

query I rowsort
SELECT - - col1 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 - col0 FROM tab1 AS cor0 WHERE NOT col1 - - col0 IN ( + 42, - 93, + - col1, + - 89, + - 15 )
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 33 col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT 2 DIV - + 28 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT 2 / - + 28 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT + col0, + col2 - + col2 FROM tab0 cor0
----
15
0
87
0
97
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 - - 95
----

query II rowsort
SELECT - col1, + ( + 98 ) AS col1 FROM tab0 AS cor0
----
-1
98
-21
98
-81
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT DISTINCT + - col0 / - col0 - + 62 + 74 + + col2 - - ( - + CAST( NULL AS SIGNED ) ) * + 3 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + - col0 / - col0 - + 62 + 74 + + col2 - - ( - + CAST ( NULL AS INTEGER ) ) * + 3 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL - - CAST( + 84 AS SIGNED ) - col2 + - + 88 * 65 FROM tab2 cor0
----
-5659
-5676
-5694

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - - CAST ( + 84 AS INTEGER ) - col2 + - + 88 * 65 FROM tab2 cor0
----
-5659
-5676
-5694

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE - - col0 + ( - col2 ) > + 76
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT 97 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT 97 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 74 * - + col2 * + 80 FROM tab1 AS cor0
----
349280
402560
568320

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - col0 AND NULL
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT DISTINCT + ( + ( + - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT DISTINCT + ( + ( + - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL MIN( DISTINCT + 18 ) col2 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3727
SELECT ALL MIN ( DISTINCT + 18 ) col2 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3728
SELECT DISTINCT + 67, ( - + AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3728
SELECT DISTINCT + 67, ( - + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - MIN( - 48 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3729
SELECT - MIN ( - 48 ) AS col1 FROM tab2
----
48

query II rowsort
SELECT col0, col2 * 29 FROM tab1
----
51
2784
85
1711
91
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - MAX( - + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - MAX ( - + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL + col0 * + - 22 FROM tab2
----
-1012
-1408
-1650

query I rowsort
SELECT ALL 45 * + + col0 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT - COUNT( col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3734
SELECT DISTINCT - COUNT ( col0 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT DISTINCT - MIN( + col0 ) AS col1, + MAX( DISTINCT + 1 ) AS col2 FROM tab1
----
-51
1

skipif mysql # not compatible
query II rowsort label-3735
SELECT DISTINCT - MIN ( + col0 ) AS col1, + MAX ( DISTINCT + 1 ) AS col2 FROM tab1
----
-51
1

query I rowsort
SELECT - col1 + + col1 + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 4 FROM tab0 WHERE - - col0 = col0 * + col0 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 91 * + col2 * - col2 < NULL
----

query I rowsort
SELECT ALL + col0 + + - 93 AS col1 FROM tab0 AS cor0
----
-6
-78
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + MIN( - + col2 ), 57 AS col1 FROM tab2 AS cor0
----
-58
57

skipif mysql # not compatible
query II rowsort label-3740
SELECT + MIN ( - + col2 ), 57 AS col1 FROM tab2 AS cor0
----
-58
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3741
SELECT DISTINCT - col2 + - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - col2 + - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 7 col2 FROM tab1
----
-329
-35
-98

query I rowsort
SELECT 92 - col2 FROM tab0
----
-7
45
82

query II rowsort
SELECT col2 + - + ( col0 ) AS col0, + col1 FROM tab2
----
-17
67
-23
51
-24
77

query I rowsort
SELECT + col2 * col0 FROM tab2 cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT ALL + CAST( NULL AS SIGNED ) + 61 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + CAST ( NULL AS INTEGER ) + 61 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 - + 88 FROM tab2 AS cor0
----
-30
-48
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 + - - col0 col1 FROM tab2 AS cor0
----
-24
-35
-53

query II rowsort
SELECT ALL + col1, col0 + - 90 FROM tab1 cor0
----
14
-39
47
1
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - COUNT( 77 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - COUNT ( 77 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + 11 AS col0 FROM tab2
----
253
440
638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3753
SELECT - col1, - CAST( NULL AS SIGNED ) * + + col0 + - - col2 * - col0 + + col0 col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3753
SELECT - col1, - CAST ( NULL AS INTEGER ) * + + col0 + - - col2 * - col0 + + col0 col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT ALL col1 DIV + + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL col1 / + + col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col1 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( * ) * - 40 * - 38 AS col2 FROM tab2 AS cor0
----
-4560

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) * - 40 * - 38 AS col2 FROM tab2 AS cor0
----
-4560

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT - col1 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT - col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 + + - ( col2 )
----

query I rowsort
SELECT ALL + col1 + col1 + + 25 AS col2 FROM tab1 cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL + + col1 + 23 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 < col2 * - 91 + - col2
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + SUM( DISTINCT - col1 ) * + MAX( DISTINCT 76 ) AS col2 FROM tab1 AS cor0
----
-5016

skipif mysql # not compatible
query I rowsort label-3762
SELECT + SUM ( DISTINCT - col1 ) * + MAX ( DISTINCT 76 ) AS col2 FROM tab1 AS cor0
----
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3763
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT + 41 * + col1 * - - col1 DIV - col1 FROM tab1 AS cor0
----
-1927
-205
-574

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 41 * + col1 * - - col1 / - col1 FROM tab1 AS cor0
----
-1927
-205
-574

query II rowsort
SELECT col2, col2 * + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + COUNT( * ) + - COUNT( ALL - - col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + COUNT ( * ) + - COUNT ( ALL - - col2 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - + MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3768
SELECT - + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 + - 25 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col2, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - - ( col1 ) + + col1 + col0 FROM tab1 AS cor0
----
185
79
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 1 * col2
----

query I rowsort
SELECT DISTINCT + - 6 + - col2 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT ALL - 61 + - col0 FROM tab2 AS cor0
----
-107
-125
-136

query I rowsort
SELECT ALL + 2 * col0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15138
-18818
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * - - 88 col2 FROM tab2
----
-103224
-271040
-341968

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT + col1 <= 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - ( 47 ) ) * - col1 + col0 + + col1 FROM tab1
----
2347
325
723

query I rowsort
SELECT ALL 32 + ( - - col2 ) FROM tab0
----
131
42
79

query I rowsort
SELECT ALL - 91 + - col0 FROM tab2
----
-137
-155
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT - MIN( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - COUNT( - - col0 ) FROM tab2 AS cor0 WHERE NOT + ( + 67 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - COUNT ( - - col0 ) FROM tab2 AS cor0 WHERE NOT + ( + 67 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( - 70 ) FROM tab0 AS cor0 WHERE NOT 24 + + col0 < - ( col2 )
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 55 col2 FROM tab2 cor0
----
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 17 = - col2 + + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT + 75 * - COUNT( * ) col1 FROM tab0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3786
SELECT DISTINCT + 75 * - COUNT ( * ) col1 FROM tab0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL 47 DIV 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 47 / 96 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + 85 ) >= NULL
----

query I rowsort
SELECT ALL - col2 * + - col2 * + + col0 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3791
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT 61 * col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-3791
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT 61 * col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT ALL + CAST( + MAX( + ( 12 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + CAST ( + MAX ( + ( 12 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT CAST( - - MAX( DISTINCT 73 ) AS SIGNED ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3793
SELECT CAST ( - - MAX ( DISTINCT 73 ) AS INTEGER ) AS col0 FROM tab0
----
73

query II rowsort
SELECT col0 * col2 AS col0, + ( - ( - - col0 ) ) - + col2 FROM tab1
----
4896
-147
5015
-144
6188
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 47 FROM tab2
----
-1081
-1880
-2726

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + + col2 + col2 BETWEEN + + col0 AND + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 / - 31
----

query II rowsort
SELECT - 98 AS col2, + col1 AS col2 FROM tab1
----
-98
14
-98
47
-98
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 92 ) col1 FROM tab1
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - COUNT( * ) + COUNT( 44 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - COUNT ( * ) + COUNT ( 44 ) FROM tab2
----
0

query I rowsort
SELECT ALL ( col1 ) + + 57 AS col1 FROM tab2
----
108
124
134

query II rowsort
SELECT ALL 62, col0 + - + col2 - + 15 + 5 + + 61 AS col0 FROM tab2 AS cor0
----
62
68
62
74
62
75

query I rowsort
SELECT DISTINCT + col1 * 82 + - col0 AS col1 FROM tab0
----
-15
1635
6627

query I rowsort
SELECT DISTINCT 32 * 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + ( 95 ) + - ( + COUNT( * ) ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + ( 95 ) + - ( + COUNT ( * ) ) FROM tab0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

query I rowsort
SELECT ALL - col1 - - + 99 AS col1 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT + - 74 - - - COUNT( * ) AS col1, - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-77
99

skipif mysql # not compatible
query II rowsort label-3811
SELECT + - 74 - - - COUNT ( * ) AS col1, - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-77
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + col1 - + - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3814
SELECT - + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - - 35 - MAX( ALL - + col0 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3815
SELECT - - 35 - MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT - 42 * - col1 - col1 DIV 60 FROM tab1
----
1974
210
588

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - 42 * - col1 - col1 / 60 FROM tab1
----
1974
210
588

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3817
SELECT DISTINCT + 46 - + COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + 46 - + COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 - + + col1 AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL + MAX( - 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + MAX ( - 67 ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT + col1 * 81 AS col2 FROM tab2 AS cor0
----
4131
5427
6237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3822
SELECT + + col2 * + col2 * col1, CAST( NULL AS SIGNED ) + ( col2 ) + - + 35 AS col2 FROM tab2 AS cor0
----
123200
NULL
225388
NULL
26979
NULL

skipif mysql # not compatible
query II rowsort label-3822
SELECT + + col2 * + col2 * col1, CAST ( NULL AS INTEGER ) + ( col2 ) + - + 35 AS col2 FROM tab2 AS cor0
----
123200
NULL
225388
NULL
26979
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col1 AND NULL ) OR + 75 + - - 97 NOT BETWEEN + col1 * + col1 * 72 AND - - col1 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( ( 85 ) ), 62 * col1 col0 FROM tab2 AS cor0
----
85
3162
85
4154
85
4774

query I rowsort
SELECT col1 + 88 AS col1 FROM tab1
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT MIN( - 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3826
SELECT MIN ( - 4 ) FROM tab2
----
-4

query I rowsort
SELECT DISTINCT col2 + col2 * - 98 AS col0 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3828
SELECT * FROM tab1 WHERE NOT col0 < ( - 39 / CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3828
SELECT * FROM tab1 WHERE NOT col0 < ( - 39 / CAST ( NULL AS INTEGER ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT CAST( - 27 AS SIGNED ) col2 FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT CAST ( - 27 AS INTEGER ) col2 FROM tab2
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 * ( col0 * col1 ) = ( + ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3832
SELECT - 66 * - 35 FROM tab0 WHERE NOT 78 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3832
SELECT - 66 * - 35 FROM tab0 WHERE NOT 78 * CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT SUM( DISTINCT + col2 ) col1 FROM tab2 WHERE NOT col0 BETWEEN NULL AND 2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT DISTINCT SUM ( DISTINCT + col2 ) col1 FROM tab2 WHERE NOT col0 BETWEEN NULL AND 2
----
121

query I rowsort
SELECT col0 - 92 AS col1 FROM tab0
----
-5
-77
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT ALL + 62 * - col2 - + CAST( NULL AS SIGNED ) * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + 62 * - col2 - + CAST ( NULL AS INTEGER ) * 37 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 77 AS col1 FROM tab0
----
-30
-67
22

query III rowsort
SELECT * FROM tab0 WHERE + col1 - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + COUNT( * ) + - SUM( - col2 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COUNT ( * ) + - SUM ( - col2 ) FROM tab2
----
124

query I rowsort
SELECT - 45 * 41 FROM tab0
----
-1845
-1845
-1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + CAST( NULL AS SIGNED ) * col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 + - col2 FROM tab1
----
-6
22
31

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 26 ) BETWEEN ( NULL ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 44 + col2 AS col0 FROM tab0
----
143
54
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 70 ) * col2 col0 FROM tab2 WHERE NOT - 74 * + 82 NOT BETWEEN col1 AND ( col0 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( + 4 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL COUNT( * ) + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL COUNT ( * ) + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( + 65 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3847
SELECT - COUNT ( + 65 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT MIN( DISTINCT 97 ) col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT MIN ( DISTINCT 97 ) col1 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - SUM( + 31 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3849
SELECT - SUM ( + 31 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab0 cor0 WHERE ( - ( col1 ) ) + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab0 cor0 WHERE ( - ( col1 ) ) + col1 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL 79 * SUM( col2 * CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL 79 * SUM ( col2 * CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT DISTINCT - COUNT( * ) DIV + 16 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - COUNT ( * ) / + 16 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT - CAST( - ( col0 ) AS SIGNED ) * col2 AS col2 FROM tab2 WHERE + col1 + + 51 IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3853
SELECT - CAST ( - ( col0 ) AS INTEGER ) * col2 AS col2 FROM tab2 WHERE + col1 + + 51 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT 32 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
32
32
32

query I rowsort
SELECT - 48 + - col2 * - ( col2 ) FROM tab2
----
1552
3316
481

query III rowsort
SELECT * FROM tab1 WHERE + 95 NOT BETWEEN ( NULL ) AND + col2 * - col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 64 + - 80 AS col2 FROM tab1
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT - - 91 DIV + col0 + + col0 FROM tab0 cor0
----
21
88
97

skipif mysql # not compatible
query I rowsort label-3858
SELECT - - 91 / + col0 + + col0 FROM tab0 cor0
----
21
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL col1 ) col2 FROM tab0 AS cor0 WHERE 95 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT 4 + - COUNT( DISTINCT + 58 + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3860
SELECT 4 + - COUNT ( DISTINCT + 58 + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL < 97
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + 0 / + col2 > ( + col1 * 67 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - 38 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 14 * - col2
----

query I rowsort
SELECT DISTINCT - - 63 + + col1 AS col2 FROM tab1 AS cor0
----
110
68
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 / + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT 79 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT CAST( NULL AS SIGNED ) * + 35 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT CAST ( NULL AS INTEGER ) * + 35 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE + 57 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE + 57 IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MIN( ALL + + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3872
SELECT MIN ( ALL + + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT - COUNT( * ) * ( + COUNT( * ) ) * MAX( - col0 DIV col2 ) + 66 AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3873
SELECT - COUNT ( * ) * ( + COUNT ( * ) ) * MAX ( - col0 / col2 ) + 66 AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 23 - - AVG ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 66 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 70 AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT - 3 * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - 3 * - COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT ( 25 ) * + 79 AS col0 FROM tab1 AS cor0
----
1975
1975
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3878
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - ( - - 67 ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2 WHERE NOT ( col2 ) BETWEEN 50 AND - col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3881
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > ( + - 31 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( - 36 ) AND - 65
----
-3

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( - 36 ) AND - 65
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col1 FROM tab2 cor0
----
-104
-133
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - col1 * + col2 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col0 + col1 * 18 FROM tab0 cor0
----
1248
2163
9621

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) * + + 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL COUNT( * ) * - 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL COUNT ( * ) * - 17 FROM tab2
----
-51

query I rowsort
SELECT ALL col2 * - - col2 + - col2 * - 17 FROM tab1
----
10848
4484
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - - COUNT( * ) FROM tab0 WHERE NULL > + + col0
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT - - COUNT ( * ) FROM tab0 WHERE NULL > + + col0
----
0

query I rowsort
SELECT 92 + 8 AS col0 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT col1 * 95 * + col0 FROM tab2
----
222870
468160
477375

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 + - - col2 FROM tab0
----
1277
1924
293

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NOT + col1 < + ( ( + 85 ) ) ) )
----

query II rowsort
SELECT ALL - col2 + - - col2 AS col0, + 10 FROM tab2 AS cor0
----
0
10
0
10
0
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) + + + 79 + + col1 BETWEEN 38 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT + col1 + - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT + col1 + - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) > - ( + 90 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col1 + - col2 NOT BETWEEN ( NULL ) AND + col1 / col0 AND - col1 + - ( - 17 ) NOT IN ( col1 + + ( col0 ) )
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 89 - - col1 * - 17 FROM tab1 AS cor0 WHERE NOT + 45 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 89 - - col1 * - 17 FROM tab1 AS cor0 WHERE NOT + 45 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT - 61 / - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - 61 / - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT + - COUNT( + CAST( + col2 AS SIGNED ) ) * COUNT( * ) * + + 37 - + 76 * AVG ( ALL col0 + + 36 * CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT + - COUNT ( + CAST ( + col2 AS INTEGER ) ) * COUNT ( * ) * + + 37 - + 76 * AVG ( ALL col0 + + 36 * CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT + + 62 AS col2, + COUNT( * ) - + 74 * + + 24 FROM tab1 AS cor0
----
62
-1773

skipif mysql # not compatible
query II rowsort label-3909
SELECT + + 62 AS col2, + COUNT ( * ) - + 74 * + + 24 FROM tab1 AS cor0
----
62
-1773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> + ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col1 AS col1, + 91 FROM tab1
----
14
91
47
91
5
91

query I rowsort
SELECT DISTINCT col0 + + 7 FROM tab1 WHERE ( NOT + col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT CAST( - col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 54 ) IN ( ( - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL MAX( ALL - 67 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL MAX ( ALL - 67 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 88 * - col0 * - 73 * - col0 * col0 )
----

query I rowsort
SELECT - - col1 + + 55 + col2 + + col2 FROM tab1 AS cor0
----
178
238
261

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + + ( - + col0 ) * - col2 / - + 87 + + 97 BETWEEN ( 81 ) AND 52 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT COUNT( * ) * - 4 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT COUNT ( * ) * - 4 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT + col0 * - 59 * - - col0 FROM tab1
----
-153459
-426275
-488579

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT 54 * COUNT( * ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3923
SELECT 54 * COUNT ( * ) AS col0 FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT col0 DIV 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT col0 / 81 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 8 * + ( - - col2 ) * ( + + col2 ) FROM tab2
----
-12800
-26912
-4232

query I rowsort
SELECT 93 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-1206
-406
-4303

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - - MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - MIN ( col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT + col0 * - + 96 AS col1 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + ( + COUNT( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + ( + COUNT ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3933
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST( - + col0 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-3933
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST ( - + col0 AS INTEGER ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT 71 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3934
SELECT 71 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + 10 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT + + COUNT( * ) * - 44 - - + MAX( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + + COUNT ( * ) * - 44 - - + MAX ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT col0 * col2 * + 35 FROM tab1
----
171360
175525
216580

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT COUNT( * ) AS col2, + 20 col2 FROM tab1
----
3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3939
SELECT COUNT ( * ) AS col2, + 20 col2 FROM tab1
----
3
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT 59 * - 47 * + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 59 * - 47 * + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL + ( - - col2 ) * - col2 AS col2, col1 + col1 + - 51 AS col2 FROM tab2
----
-1600
103
-3364
83
-529
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + 25 * COUNT( + + 46 ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3942
SELECT + 25 * COUNT ( + + 46 ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT MIN( DISTINCT + col2 ) * + MIN( col2 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3943
SELECT MIN ( DISTINCT + col2 ) * + MIN ( col2 ) FROM tab0
----
100

query II rowsort
SELECT 98, + col1 + + + ( - - 93 ) * - - col0 + col1 AS col2 FROM tab1
----
98
4771
98
7915
98
8557

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL SUM( 39 ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL SUM ( 39 ) FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + COUNT( - - col2 ) + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( - - col2 ) + 44 FROM tab2
----
47

query I rowsort
SELECT 29 + col0 FROM tab2
----
104
75
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / - col2 < ( - ( col2 ) / + 18 + + - col1 + - 58 )
----

query I rowsort
SELECT + ( - + 82 ) AS col0 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL + col0 DIV + ( + 23 ) + 75 FROM tab0 cor0
----
75
78
79

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + col0 / + ( + 23 ) + 75 FROM tab0 cor0
----
75
78
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + - - col2 * + col2 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL - MAX( + col1 ) + - - 58 * - - 28 + + + 63 FROM tab2 AS cor0
----
1610

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - MAX ( + col1 ) + - - 58 * - - 28 + + + 63 FROM tab2 AS cor0
----
1610

query II rowsort
SELECT ALL 52 * 1 AS col2, col0 * - col0 FROM tab1
----
52
-2601
52
-7225
52
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * + col1 col2 FROM tab0
----
1659
6399
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + col0 + 79 * col1 AS col1 FROM tab1
----
1143
3757
475

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT IN ( - col1 * - - 48 / + col2 * col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - col0 + - + 93 FROM tab0
----
-108
-180
-190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 37
----

query I rowsort
SELECT + col1 + + - col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + 72 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + 72 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 50 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL MAX( DISTINCT - col2 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL MAX ( DISTINCT - col2 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-69

query II rowsort
SELECT ALL + 20, col2 AS col0 FROM tab2 AS cor0
----
20
23
20
40
20
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT SUM( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3966
SELECT SUM ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
199

query II rowsort
SELECT + col1, col1 + - + col1 AS col0 FROM tab1 cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL CAST( NULL AS SIGNED ) * - + 4 + col1 + - 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL CAST ( NULL AS INTEGER ) * - + 4 + col1 + - 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT + 7 DIV - col1 * + - 44 + + col1 + + col2 + - 23 FROM tab2 AS cor0
----
102
51
94

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 7 / - col1 * + - 44 + + col1 + + col2 + - 23 FROM tab2 AS cor0
----
102
51
94

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - + 77 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( ( + + col0 ) ) FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + 15 / - col0 + - - col1 IN ( + col0, 18 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - - 66 AS col1 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - MIN( ALL + + 84 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - MIN ( ALL + + 84 ) AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT ( + MIN( ( + col2 ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT ( + MIN ( ( + col2 ) ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + + MAX( DISTINCT + 10 ) FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3976
SELECT + + MAX ( DISTINCT + 10 ) FROM tab1 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT - CAST( - 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3977
SELECT - CAST ( - 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
23
23
23

query II rowsort
SELECT DISTINCT - + col1 * + - 97 * + + 65 + - 64, col0 * col1 AS col2 FROM tab2 AS cor0
----
321491
2346
422371
5025
485421
4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT COUNT( * ) DIV - + MIN( col2 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT DISTINCT COUNT ( * ) / - + MIN ( col2 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - + MIN( DISTINCT 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + MIN ( DISTINCT 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT COUNT( * ) + 30 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT COUNT ( * ) + 30 AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL + + col0 + - 58 * + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT - + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + - col0 + + 78 + col1 FROM tab2 AS cor0
----
70
83
91

query I rowsort
SELECT + col0 + 5 FROM tab1 AS cor0
----
56
90
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT 45 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3987
SELECT 45 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - - 41 + + + MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - - 41 + + + MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
137

query I rowsort
SELECT DISTINCT - 28 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
182
3779
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + COUNT( * ) - - - 51 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + COUNT ( * ) - - - 51 FROM tab2
----
-48

query I rowsort
SELECT DISTINCT - + col2 * - - col2 * - col0 FROM tab0 WHERE NOT - + col2 IS NULL
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT MIN( ALL 93 ) FROM tab2 WHERE - col1 NOT IN ( + - ( + col2 ) * + - col1, - col0 )
----
93

skipif mysql # not compatible
query I rowsort label-3992
SELECT MIN ( ALL 93 ) FROM tab2 WHERE - col1 NOT IN ( + - ( + col2 ) * + - col1, - col0 )
----
93

query I rowsort
SELECT DISTINCT - ( 90 ) - - col0 * + - col1 - + col2 FROM tab1
----
-4435
-574
-900

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, ( + col1 ) * + - 1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3996
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN col1 * + col1 * + - col2 + + - ( - ( - + CAST( - 12 AS SIGNED ) ) ) AND ( + 42 / - col1 * + col1 * - 21 + 7 - - col0 * col0 / col1 )
----

skipif mysql # not compatible
query III rowsort label-3996
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN col1 * + col1 * + - col2 + + - ( - ( - + CAST ( - 12 AS INTEGER ) ) ) AND ( + 42 / - col1 * + col1 * - 21 + 7 - - col0 * col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT + - COUNT( 53 ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + - COUNT ( 53 ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT 84 DIV + ( + COUNT( * ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3998
SELECT 84 / + ( + COUNT ( * ) ) FROM tab0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3999
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1, COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + - 62 - - COUNT( * ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4000
SELECT + - 62 - - COUNT ( * ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 12 + + col0 + col1 - + 58 + col0 + - col1 * - col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-18121
-57040
-9454

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL MAX( DISTINCT - + 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL MAX ( DISTINCT - + 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT ALL - COUNT( + 57 ) col2, COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4004
SELECT ALL - COUNT ( + 57 ) col2, COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT - COUNT( ALL - col2 ) * - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT - COUNT ( ALL - col2 ) * - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT DISTINCT + col2 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + col2 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT SUM( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT SUM ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 WHERE NOT col2 <> col2
----
64
64
64

query I rowsort
SELECT - 48 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-48
-48
-48

query II rowsort
SELECT + col0, + col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT 53 * + MAX( - col0 ) * - + 10 FROM tab1
----
27030

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT 53 * + MAX ( - col0 ) * - + 10 FROM tab1
----
27030

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT COUNT( DISTINCT - - 86 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4014
SELECT COUNT ( DISTINCT - - 86 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT - 68 DIV - + MIN( col0 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 68 / - + MIN ( col0 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT - COUNT( * ) AS col2, MIN( + ( - - 67 ) ) FROM tab0
----
-3
67

skipif mysql # not compatible
query II rowsort label-4016
SELECT - COUNT ( * ) AS col2, MIN ( + ( - - 67 ) ) FROM tab0
----
-3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 83 + - col0 + - col0 / - 91 / col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 83 + - col0 + - col0 / - 91 / col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 + + 49 * - - col0 * + col1 FROM tab1 AS cor0
----
20766
209505
34890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT + CAST( - col1 AS SIGNED ) + - 38 FROM tab2 AS cor0
----
-105
-115
-89

skipif mysql # not compatible
query I rowsort label-4020
SELECT + CAST ( - col1 AS INTEGER ) + - 38 FROM tab2 AS cor0
----
-105
-115
-89

query I rowsort
SELECT 5 * col1 + + + col1 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - COUNT( - 72 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - COUNT ( - 72 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT CAST( NULL AS SIGNED ) + + 43 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT CAST ( NULL AS INTEGER ) + + 43 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT - CAST( - - 38 AS SIGNED ) + + col2 + - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 55 * ( - col2 ) + + 14 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4024
SELECT - CAST ( - - 38 AS INTEGER ) + + col2 + - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 55 * ( - col2 ) + + 14 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + - 69 * ( + - col0 ) - col1 AS col2 FROM tab0 AS cor0
----
5982
6692
954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4027
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) col1, 38 FROM tab1 AS cor0
----
NULL
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4027
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) col1, 38 FROM tab1 AS cor0
----
NULL
38

query II rowsort
SELECT - + col1 - - 42, col1 FROM tab1 cor0
----
-5
47
28
14
37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - COUNT( * ) - - 42 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4029
SELECT - COUNT ( * ) - - 42 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL ( - col0 ) + + + 98 FROM tab1 AS cor0
----
13
47
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 77 * + + 22 col0 FROM tab2
----
1717
1734
1752

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - col0 >= NULL
----

query I rowsort
SELECT - col1 + - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT + ( - MIN( DISTINCT - + ( + col0 ) ) ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT DISTINCT + ( - MIN ( DISTINCT - + ( + col0 ) ) ) col1 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 47 + + + col2 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 94 * - - 85 col0 FROM tab1
----
-7943
-7976
-7985

query I rowsort
SELECT ALL 26 + col0 AS col0 FROM tab0
----
113
123
41

query I rowsort
SELECT DISTINCT 64 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

query II rowsort
SELECT - 49 AS col0, 19 * - col1 - + - 32 AS col2 FROM tab1
----
-49
-234
-49
-63
-49
-861

query I rowsort
SELECT DISTINCT + + 12 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND 9
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT + - COUNT( * ) * CAST( + 79 AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - 97
----
-240

skipif mysql # not compatible
query I rowsort label-4041
SELECT + - COUNT ( * ) * CAST ( + 79 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 < - 97
----
-240

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 33 * - col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query II rowsort
SELECT col1 AS col0, 88 + - - 37 + col2 - + 27 * - - 14 FROM tab0 AS cor0
----
1
-154
21
-243
81
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT 15 * - MAX( DISTINCT + col2 ) * + 6, + 72 AS col1 FROM tab2 AS cor0
----
-5220
72

skipif mysql # not compatible
query II rowsort label-4045
SELECT 15 * - MAX ( DISTINCT + col2 ) * + 6, + 72 AS col1 FROM tab2 AS cor0
----
-5220
72

query I rowsort
SELECT DISTINCT - - 85 * - 23 * + 17 AS col2 FROM tab0 AS cor0
----
-33235

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT + 42 * + 42 * + + col2 * col1 DIV col1 FROM tab0 AS cor0
----
174636
17640
82908

skipif mysql # not compatible
query I rowsort label-4047
SELECT + 42 * + 42 * + + col2 * col1 / col1 FROM tab0 AS cor0
----
174636
17640
82908

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT ALL + MIN( DISTINCT + col2 ) AS col1, + COUNT( * ) FROM tab2
----
23
3

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1, + COUNT ( * ) FROM tab2
----
23
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4050
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab1 WHERE ( - - 25 ) * - + col1 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab1 WHERE ( - - 25 ) * - + col1 + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query II rowsort
SELECT col0 + + 88 AS col2, 30 FROM tab2
----
134
30
152
30
163
30

query I rowsort
SELECT ALL + - 6 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NULL IS NULL AND 43 = + col0
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + - COUNT( * ) + + 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 45
----
63

skipif mysql # not compatible
query I rowsort label-4055
SELECT + - COUNT ( * ) + + 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - 45
----
63

query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT COUNT( * ) * + 7 AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT COUNT ( * ) * + 7 AS col1 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT + - ( + 59 ) - - MIN( + - 69 ) + + 1 AS col0 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + - ( + 59 ) - - MIN ( + - 69 ) + + 1 AS col0 FROM tab0 AS cor0
----
-127

query I rowsort
SELECT ALL + + col1 + + 66 * + col1 AS col2 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT COUNT( * ) AS col0, - MIN( ALL + col1 ) * 7 AS col1 FROM tab2 AS cor0
----
3
-357

skipif mysql # not compatible
query II rowsort label-4061
SELECT COUNT ( * ) AS col0, - MIN ( ALL + col1 ) * 7 AS col1 FROM tab2 AS cor0
----
3
-357

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT DISTINCT - COUNT( * ) - SUM( DISTINCT - col2 ), + 41 + + + 19 AS col1 FROM tab1 cor0
----
220
60

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT - COUNT ( * ) - SUM ( DISTINCT - col2 ), + 41 + + + 19 AS col1 FROM tab1 cor0
----
220
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 47 AS col1 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT DISTINCT + - 5 AS col1 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT + 74 * + + col1 FROM tab1
----
1036
3478
370

query II rowsort
SELECT ALL 19 AS col2, 75 FROM tab0
----
19
75
19
75
19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ( - SUM( + col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4068
SELECT ( - SUM ( + col1 ) ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT - + 41 * col1 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4071
SELECT DISTINCT - + 41 AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-4071
SELECT DISTINCT - + 41 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-41
3

query II rowsort
SELECT DISTINCT + + 45, col2 AS col1 FROM tab0 AS cor0
----
45
10
45
47
45
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL + - MIN( - col1 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4073
SELECT ALL + - MIN ( - col1 ) col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - col0 + - - col1 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 - + 8 AS col0 FROM tab1 cor0
----
14
88
47
60
5
51

query II rowsort
SELECT ALL col0 AS col0, - col2 - 16 AS col0 FROM tab2 AS cor0
----
46
-39
64
-56
75
-74

query II rowsort
SELECT ALL 41, col0 FROM tab0
----
41
15
41
87
41
97

query II rowsort
SELECT DISTINCT col0 AS col2, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 * + 78 col2, 5 FROM tab2
----
2652
5
2652
5
2652
5

query II rowsort
SELECT DISTINCT col0 AS col2, 69 AS col2 FROM tab2
----
46
69
64
69
75
69

query I rowsort
SELECT ( col2 ) * + col1 * col0 AS col1 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT 26 AS col0, - col2 + + col0 FROM tab2
----
26
17
26
23
26
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL col1 DIV 64 DIV + 19 + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL col1 / 64 / + 19 + + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + 89 AS col1 FROM tab1 WHERE + 52 + + col1 IS NOT NULL
----
89
89
89

query I rowsort
SELECT ALL - + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 + + 81 - col2 FROM tab1 AS cor0
----
104
107
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT + col0 DIV - - 58 + + col1 FROM tab0 AS cor0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-4087
SELECT + col0 / - - 58 + + col1 FROM tab0 AS cor0
----
2
22
81

query I rowsort
SELECT ALL + - col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 13 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL + col1 + col2 + - - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
118
125
75

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + col1 + col2 + - - col1 / col0 AS col1 FROM tab2 AS cor0
----
118
125
75

query I rowsort
SELECT DISTINCT - col0 * - col0 * + + col2 AS col0 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT - 44 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( - 44 ) ) col1 FROM tab1 AS cor0 WHERE - col1 - col1 / - col1 NOT IN ( - 8 + + 87, col2 - 47 / - + col0, + col2 )
----
44
44
44

query I rowsort
SELECT ALL - col0 * - col1 * col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT ALL 93 DIV + - COUNT( * ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 93 / + - COUNT ( * ) AS col1 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL + 31, + COUNT( * ) * 98 AS col0 FROM tab2
----
31
294

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL + 31, + COUNT ( * ) * 98 AS col0 FROM tab2
----
31
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT SUM( - 23 ) * + 65 AS col1 FROM tab1
----
-4485

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT SUM ( - 23 ) * + 65 AS col1 FROM tab1
----
-4485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * - col1 col2 FROM tab2
----
-2856
-3752
-4312

query II rowsort
SELECT ALL - col0 * col1 * - + 91 AS col1, 55 + col2 * - ( col2 ) FROM tab0
----
110565
-2154
166257
-45
8827
-9746

query I rowsort
SELECT 59 FROM tab0 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL CAST( ( col1 ) AS SIGNED ) * + + col0 + + 64 col1 FROM tab0 AS cor0
----
1279
161
1891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4101
SELECT ALL CAST ( ( col1 ) AS INTEGER ) * + + col0 + + 64 col1 FROM tab0 AS cor0
----
1279
161
1891

query I rowsort
SELECT ALL + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - + col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT ALL col0 + - col1, + ( - 45 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 36 + + col0 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT ALL - + col0 + - - 92 * + 33 AS col0 FROM tab1 AS cor0
----
2945
2951
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * + col1 col0 FROM tab1
----
1176
3948
420

query I rowsort
SELECT ALL - ( 13 ) AS col0 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1, col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL > - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - SUM( - col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT - SUM ( - col1 ) col1 FROM tab0
----
103

query I rowsort
SELECT ALL 85 + - 71 AS col0 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - - COUNT( ( col0 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - - COUNT ( ( col0 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 * + - col2 + col0 + + 40 FROM tab1 AS cor0
----
-3356
-4493
-9125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 5, 73 col2 FROM tab2 AS cor0
----
-5
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT + - 77 DIV 81 + col1 + col1 + - col1 * ( - col0 ) DIV - + col0 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - 77 / 81 + col1 + col1 + - col1 * ( - col0 ) / - + col0 AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 * - - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 51, - col2 + + 34 AS col1 FROM tab0 AS cor0
----
-51
-13
-51
-65
-51
24

query I rowsort
SELECT ALL - + col2 * - 93 FROM tab2 AS cor0
----
2139
3720
5394

query II rowsort
SELECT ALL - col2 AS col1, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) * col2 col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4121
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) * col2 col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL COUNT( * ) * COUNT( DISTINCT - - 32 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - - 32 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT ( + 60 ) FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT + 94 * + COUNT( + col1 ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + 94 * + COUNT ( + col1 ) FROM tab2
----
282

query I rowsort
SELECT + ( + ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 40 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4128
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) + - ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) + - ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col0, col0 AS col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL > col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - SUM( - - 76 ) * - 82 AS col1 FROM tab0 AS cor0
----
18696

skipif mysql # not compatible
query I rowsort label-4132
SELECT - SUM ( - - 76 ) * - 82 AS col1 FROM tab0 AS cor0
----
18696

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT DISTINCT - + col0 DIV + 7 + - 99 * col2 + - 32 FROM tab0 AS cor0
----
-1034
-4687
-9846

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - + col0 / + 7 + - 99 * col2 + - 32 FROM tab0 AS cor0
----
-1034
-4687
-9846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL - CAST( - + col1 AS SIGNED ) + + + 68 + - col0 AS col2 FROM tab0 AS cor0
----
-28
134
2

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - CAST ( - + col1 AS INTEGER ) + + + 68 + - col0 AS col2 FROM tab0 AS cor0
----
-28
134
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT DISTINCT + 75 DIV col2 col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT DISTINCT + 75 / col2 col0 FROM tab0
----
0
1
7

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + ( - 23 ) - - col0 AS col1 FROM tab2
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - 66 - - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 66 - - COUNT ( * ) FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col0 + - + 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 + + + col1 col2, 77 FROM tab2
----
-14
77
-30
77
-4
77

query I rowsort
SELECT 69 * 80 + - - 49 FROM tab1 AS cor0
----
5569
5569
5569

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 38 + - COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 38 + - COUNT ( * ) FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + COUNT( DISTINCT - + col0 ) * - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4143
SELECT + COUNT ( DISTINCT - + col0 ) * - 16 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT col0 AS col0, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT - 7 DIV col0 * 72 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT - 7 / col0 * 72 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= - ( - - ( + + col0 ) ) - - col2 + - 38 + - ( 97 )
----

query I rowsort
SELECT ALL 91 * - col0 AS col2 FROM tab0 cor0
----
-1365
-7917
-8827

query I rowsort
SELECT ( - + col1 ) * - col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - 64 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4149
SELECT - 64 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - SUM( - 95 ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4150
SELECT - SUM ( - 95 ) FROM tab1 AS cor0
----
285

query I rowsort
SELECT ALL ( col2 ) * + + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 38 * 79 FROM tab0
----
-3002
-3002
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + ( - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4155
SELECT ALL - ( + + ( + + 20 ) ) + - 46 FROM tab2 WHERE - col0 * - - CAST( + - col0 AS DECIMAL ) IS NOT NULL
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL - ( + + ( + + 20 ) ) + - 46 FROM tab2 WHERE - col0 * - - CAST ( + - col0 AS REAL ) IS NOT NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT MIN( + CAST( - + col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4156
SELECT MIN ( + CAST ( - + col2 AS INTEGER ) ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT + - CAST( NULL AS SIGNED ) * + - ( col2 ) + - 1 + + 40 * - + col2 / - - col0 FROM tab1 cor0 WHERE NOT NULL >= + 79 * + col2
----

skipif mysql # not compatible
query I rowsort label-4157
SELECT + - CAST ( NULL AS INTEGER ) * + - ( col2 ) + - 1 + + 40 * - + col2 / - - col0 FROM tab1 cor0 WHERE NOT NULL >= + 79 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col0, + col2 FROM tab2 AS cor0
----
35
23
35
40
35
58

query II rowsort
SELECT + - col2, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT col1, - col0 * - col2 AS col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query II rowsort
SELECT + 59 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
59
15
59
87
59
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + - col2 + + 54 AND col0 / + - col0 + 11 * col1
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT + - col2 + - col2 + + + col0 FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
-16
-41
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT DISTINCT 23 DIV + COUNT( * ) col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4164
SELECT DISTINCT 23 / + COUNT ( * ) col1 FROM tab0 AS cor0
----
7

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col2, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL col1 + - col1, - col0 AS col0 FROM tab1
----
0
-51
0
-85
0
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT + col2 DIV col1 DIV 55 + 6 - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2340
-4922
-5019

skipif mysql # not compatible
query I rowsort label-4167
SELECT + col2 / col1 / 55 + 6 - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2340
-4922
-5019

query I rowsort
SELECT 30 + + 84 FROM tab1 AS cor0
----
114
114
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL + 38 / CAST( NULL AS SIGNED ) * - - col0 * ( 63 ) + - - col0 + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT ALL + 38 / CAST ( NULL AS INTEGER ) * - - col0 * ( 63 ) + - - col0 + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 + - + col0 FROM tab0 AS cor0
----
-19
-29
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col1 ) + col2 IS NULL
----

query I rowsort
SELECT + + ( - + col0 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE - 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 26 >= + col2 - ( 89 )
----
85
5
59

query I rowsort
SELECT ALL - 32 - - + col0 * - 71 * - col1 AS col1 FROM tab0
----
129685
6855
86233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL - 27 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - 27 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT + 65 DIV col1 DIV + - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 65 / col1 / + - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 96 * - 56 AS col0 FROM tab2
----
-5376
-5376
-5376

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - MIN( DISTINCT + col2 ) * 29 FROM tab2
----
-667

skipif mysql # not compatible
query I rowsort label-4180
SELECT - MIN ( DISTINCT + col2 ) * 29 FROM tab2
----
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 1 DIV + + col2 + - 93 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 1 / + + col2 + - 93 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL 78 * + SUM( col0 ) FROM tab0
----
15522

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 78 * + SUM ( col0 ) FROM tab0
----
15522

query I rowsort
SELECT 89 - col0 FROM tab2 cor0
----
14
25
43

query I rowsort
SELECT DISTINCT + + ( + col1 ) + + + 70 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4185
SELECT + 96 DIV - - 59 AS col1, 13 DIV + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
-4

skipif mysql # not compatible
query II rowsort label-4185
SELECT + 96 / - - 59 AS col1, 13 / + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT MAX( 11 ) AS col1 FROM tab1, tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT MAX ( 11 ) AS col1 FROM tab1, tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT + 20 DIV + - MAX( + 50 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + 20 / + - MAX ( + 50 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + - col2
----

skipif mysql # not compatible
query I rowsort label-4189
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + - col2
----

query I rowsort
SELECT + 68 + + - 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 57 - col1
----

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT + col2 * - 81 * - col2 FROM tab1
----
281961
374544
746496

query II rowsort
SELECT ALL + 51, - col1 AS col1 FROM tab2
----
51
-51
51
-67
51
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT 68, + COUNT( * ) AS col0 FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-4195
SELECT 68, + COUNT ( * ) AS col0 FROM tab1
----
68
3

query I rowsort
SELECT 77 FROM tab1 WHERE NOT + col2 + + col0 - + 3 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL 79 FROM tab2 WHERE + 25 IN ( + - 3 + - - CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL 79 FROM tab2 WHERE + 25 IN ( + - 3 + - - CAST ( - - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4198
SELECT DISTINCT + 93 DIV col1 + + - 14, + col1 FROM tab2
----
-13
51
-13
67
-13
77

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT + 93 / col1 + + - 14, + col1 FROM tab2
----
-13
51
-13
67
-13
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 col0 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - ( - - 28 ) * col0 * 44 + - 66 - + + 64 + - 36 + + col0 FROM tab1 AS cor0
----
-104801
-112187
-62947

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT DISTINCT - COUNT( * ) AS col1, 0 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT - COUNT ( * ) AS col1, 0 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT MAX( ALL + - 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4202
SELECT MAX ( ALL + - 5 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + col1 + + ( 30 ) AS col0 FROM tab0 AS cor0
----
111
31
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 * - col0 + - + col2 AND NULL
----

query I rowsort
SELECT ALL + + col1 + - + col1 + - + 17 * col1 - col1 AS col2 FROM tab1 AS cor0
----
-252
-846
-90

query II rowsort
SELECT + col1, 22 FROM tab2 AS cor0
----
51
22
67
22
77
22

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + + COUNT( ( + - col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4208
SELECT + + COUNT ( ( + - col2 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col1 + - col2 + + - 5 AS col0 FROM tab0 cor0
----
-103
29
6

query I rowsort
SELECT col1 - - col0 * - col1 + + - col1 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT - 40 + + col2, col0 FROM tab2
----
-17
46
0
64
18
75

query I rowsort
SELECT ALL + col1 - - + col0 * + ( + col2 ) * col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT - COUNT( * ) * + MIN( - - col0 ) * - MIN( ALL 57 ) AS col0 FROM tab2
----
7866

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - COUNT ( * ) * + MIN ( - - col0 ) * - MIN ( ALL 57 ) AS col0 FROM tab2
----
7866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 * - col1 * - ( + - ( - col1 ) ) + - col1 + + col0 + + ( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 * - col1 * - ( + - ( - col1 ) ) + - col1 + + col0 + + ( - col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4215
SELECT + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 * - col2 * - 84 AS col0, col2 * + col0 * + col2 FROM tab2
----
215040
102400
365400
252300
88872
24334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT col1, - col0 * - - col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + col1 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT + + col1 DIV + col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4220
SELECT + + col1 / + col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + + MIN( ALL - 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4221
SELECT + + MIN ( ALL - 93 ) FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-4222
SELECT + - col1 AS col0, - 48 DIV - col1 AS col1 FROM tab1 AS cor0
----
-14
3
-47
1
-5
9

skipif mysql # not compatible
query II rowsort label-4222
SELECT + - col1 AS col0, - 48 / - col1 AS col1 FROM tab1 AS cor0
----
-14
3
-47
1
-5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4223
SELECT - - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - + col2 * + - col1 * - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - + col2 * + - col1 * - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 29 * - col0 + col0 * col0 + - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL COUNT( * ) + + 6 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL COUNT ( * ) + + 6 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - MIN( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT - MIN ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + col1
----
NULL

query I rowsort
SELECT col0 * - - col2 * + - 30 FROM tab2
----
-130500
-31740
-76800

query I rowsort
SELECT + 6 + - - 43 * + col0 AS col0 FROM tab0 cor0
----
3747
4177
651

onlyif mysql # DIV for integer division: 
query II rowsort label-4231
SELECT ALL 66 DIV col1 + + col1, col2 - - - 1 AS col2 FROM tab0 AS cor0
----
24
9
67
98
81
46

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL 66 / col1 + + col1, col2 - - - 1 AS col2 FROM tab0 AS cor0
----
24
9
67
98
81
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 34 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 34 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 20 + 29 + + + col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + SUM( ALL - col2 ) + + + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + SUM ( ALL - col2 ) + + + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT MAX( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( * ) + COUNT( * ) * + ( - COUNT( * ) ) + - COUNT( * ) + ( CAST( NULL AS SIGNED ) ) + + MAX( DISTINCT 20 ) / 55 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + COUNT ( * ) * + ( - COUNT ( * ) ) + - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) + + MAX ( DISTINCT 20 ) / 55 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 - - 13 AS col1 FROM tab0 cor0
----
112
23
60

query I rowsort
SELECT DISTINCT col1 - col0 * + col2 FROM tab0 AS cor0
----
-624
-849
-9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 56 col0 FROM tab2
----
-107
-123
-133

query I rowsort
SELECT DISTINCT - 31 * col1 * 53 * + col2 AS col1 FROM tab1
----
-2208192
-484685
-5251028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL COUNT( * ) - - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - COUNT( * ) * - 46 col1 FROM tab0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4242
SELECT ALL - COUNT ( * ) * - 46 col1 FROM tab0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT + 4 DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + 4 / + col0 FROM tab0
----
0

query I rowsort
SELECT - 7 + + - col1 - + col1 FROM tab0 WHERE + ( - + col0 ) IS NOT NULL
----
-169
-49
-9

query I rowsort
SELECT col1 * - - 23 FROM tab0 cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - - COUNT( * ) * 78 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT - - COUNT ( * ) * 78 FROM tab0 WHERE NOT NULL < NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN - 34 + 22 * - - 38 AND + 74
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * 60 = + - 70
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT DISTINCT + - COUNT( col2 ) AS col0, COUNT( * ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT + - COUNT ( col2 ) AS col0, COUNT ( * ) FROM tab2 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - SUM( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - SUM ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + CAST( NULL AS SIGNED ) * - + col2 * - - 79 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( NULL AS INTEGER ) * - + col2 * - - 79 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + MAX( ALL - col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4252
SELECT + MAX ( ALL - col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - 37 * col2 FROM tab2
----
-1480
-2146
-851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT - col0 * - + CAST( - + 36 AS SIGNED ) AS col2 FROM tab2
----
-1656
-2304
-2700

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - col0 * - + CAST ( - + 36 AS INTEGER ) AS col2 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL - 98 DIV + + col1 col0 FROM tab0
----
-1
-4
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT ALL - 98 / + + col1 col0 FROM tab0
----
-1
-4
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - COUNT( * ) FROM tab0 WHERE ( NOT ( + 66 + + - 40 ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( * ) FROM tab0 WHERE ( NOT ( + 66 + + - 40 ) IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4257
SELECT * FROM tab2 WHERE - col1 + - + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4257
SELECT * FROM tab2 WHERE - col1 + - + CAST ( col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT 35 AS col2, col1 AS col1 FROM tab2
----
35
51
35
67
35
77

query I rowsort
SELECT DISTINCT + 4 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 32 AS col0, 28 AS col1 FROM tab2
----
32
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT COUNT( DISTINCT 96 ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + + 92, - col2 * - ( ( - col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT COUNT ( DISTINCT 96 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + + 92, - col2 * - ( ( - col1 ) ) )
----
0

query I rowsort
SELECT ALL + - col1 * + 43 + col1 FROM tab0 AS cor0
----
-3402
-42
-882

query I rowsort
SELECT 82 / - col1 * + 70 + col1 + + ( - ( - col1 ) ) + + col1 AS col1 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + 60 + - 3 * + 8 AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT 13 * - col0 AS col2 FROM tab0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT DISTINCT CAST( - 88 AS SIGNED ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT CAST ( - 88 AS INTEGER ) AS col0 FROM tab2
----
-88

query I rowsort
SELECT col1 + 13 * + col1 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + ( COUNT( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + ( COUNT ( col2 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 78 ) col1 FROM tab1
----
78
78
78

query I rowsort
SELECT ALL 4 + col2 AS col1 FROM tab0 WHERE NOT NULL <= ( - col0 + + 66 )
----

query I rowsort
SELECT ALL ( - col1 ) * ( - col0 ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT + col1 DIV - col2 + + col2 AS col0 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-4273
SELECT + col1 / - col2 + + col2 AS col0 FROM tab2
----
21
39
57

query I rowsort
SELECT 52 AS col2 FROM tab2 WHERE NOT - 70 BETWEEN NULL AND - col1
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 97 AS DECIMAL ) * + col1 IN ( 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 97 AS REAL ) * + col1 IN ( 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 1 + - 46 AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 31 * COUNT( ALL - col1 ) col0 FROM tab2 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT + 31 * COUNT ( ALL - col1 ) col0 FROM tab2 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL COUNT( ALL col2 ) FROM tab1 WHERE + 95 NOT IN ( 48 * - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL COUNT ( ALL col2 ) FROM tab1 WHERE + 95 NOT IN ( 48 * - col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL + 75 DIV col2 AS col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 75 / col2 AS col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT 76 * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
228

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT 76 * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
228

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) / 98 AND ( NULL )
----

query I rowsort
SELECT ( 91 ) - 39 * col0 FROM tab0
----
-3302
-3692
-494

query I rowsort
SELECT 19 * ( col2 ) FROM tab1 WHERE NOT + 22 > NULL
----

query I rowsort
SELECT 97 + 99 * col0 FROM tab0
----
1582
8710
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4285
SELECT col2 / CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT col2 / CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 47 FROM tab2
----
111
122
93

query I rowsort
SELECT ALL - col2 * - 48 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT ( + 68 ) + - 14 FROM tab2
----
54
54
54

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 28 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL + col2 DIV - col1 + + col1 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + col2 / - col1 + + col1 FROM tab0
----
-98
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT 98 DIV + col0 - - 11 * col1 AS col1 FROM tab1
----
155
518
56

skipif mysql # not compatible
query I rowsort label-4291
SELECT 98 / + col0 - - 11 * col1 AS col1 FROM tab1
----
155
518
56

query I rowsort
SELECT - ( - 72 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 * - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4293
SELECT ALL - col0 + - ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - col0 + - ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT 84 * - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <> - 37
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT 84 * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <> - 37
----
0

query I rowsort
SELECT ALL - col0 + - col1 * 65 FROM tab1
----
-3146
-410
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * - ( + 13 ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-871

query I rowsort
SELECT 3 * 10 FROM tab2 WHERE ( 51 ) IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col1 + ( 73 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 68 IN ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( + 73 - col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 6 col2 FROM tab0 AS cor0
----
282
594
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT MIN( 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4302
SELECT MIN ( 87 ) FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT - COUNT( col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT DISTINCT - COUNT ( col1 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - - COUNT( * ) * + SUM( ALL - 5 ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - - COUNT ( * ) * + SUM ( ALL - 5 ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT 73 * + COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT 73 * + COUNT ( * ) FROM tab0 AS cor0
----
219

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 / + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col1 + - 73 <= 86
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT 22 * MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1782

skipif mysql # not compatible
query I rowsort label-4309
SELECT 22 * MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1782

query I rowsort
SELECT ALL col1 * - ( + 60 + - 87 ) + col0 AS col0 FROM tab0 AS cor0
----
124
2202
654

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4311
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 - + col1 / ( + CAST( + col2 AS SIGNED ) ) < - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4311
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 - + col1 / ( + CAST ( + col2 AS INTEGER ) ) < - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 58 * - col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4313
SELECT DISTINCT - - ( + 6 ) * COUNT( * ) + CAST( NULL AS SIGNED ) * MAX( ( - col2 ) * - ( 0 ) + CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT DISTINCT - - ( + 6 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) * MAX ( ( - col2 ) * - ( 0 ) + CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 67 AS col2 FROM tab2 AS cor0
----
-4355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT DISTINCT + col0 * + 18 FROM tab1 cor0 WHERE NOT - col2 + - col0 * + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + col0 * + 18 FROM tab1 cor0 WHERE NOT - col2 + - col0 * + CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 IN ( + 29 * + col1 - 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL 33 + + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 33 + + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT - col0 DIV 51 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - col0 / 51 AS col1 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + COUNT( * ) FROM tab1 WHERE - 13 NOT IN ( 83 * 9 )
----
3

skipif mysql # not compatible
query I rowsort label-4320
SELECT + COUNT ( * ) FROM tab1 WHERE - 13 NOT IN ( 83 * 9 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4321
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
0

query I rowsort
SELECT col1 + + + col1 * 72 FROM tab0
----
1533
5913
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 6 AS col1 FROM tab0 WHERE NULL IS NULL
----
6
6
6

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + 2 IS NULL
----

query I rowsort
SELECT 16 * + - 99 * col1 + 99 AS col0 FROM tab0
----
-128205
-1485
-33165

query I rowsort
SELECT DISTINCT - 21 + 55 * - col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + SUM( - - 92 ) AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4328
SELECT + SUM ( - - 92 ) AS col1 FROM tab1
----
276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + 42 * 32 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT + 43 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + CAST( NULL AS SIGNED ) * ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 43 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + CAST ( NULL AS INTEGER ) * ( + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * - col0 IS NULL AND NOT - col1 BETWEEN ( - col2 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 30 + + - ( COUNT( * ) ) FROM tab2, tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 30 + + - ( COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT - 41 FROM tab0 WHERE NOT + col1 NOT BETWEEN + 62 * col1 + - CAST( - ( - 2 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - 41 FROM tab0 WHERE NOT + col1 NOT BETWEEN + 62 * col1 + - CAST ( - ( - 2 ) AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 35
----

query I rowsort
SELECT 1 + 5 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL 72 + + 72 + - col2 DIV 42 AS col2 FROM tab0 AS cor0
----
142
143
144

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 72 + + 72 + - col2 / 42 AS col2 FROM tab0 AS cor0
----
142
143
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + + 73 + - COUNT( * ) * + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
364

skipif mysql # not compatible
query I rowsort label-4339
SELECT + + 73 + - COUNT ( * ) * + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
364

query I rowsort
SELECT 37 + + + col0 FROM tab1 AS cor0
----
122
128
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - ( - MIN( col1 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - ( - MIN ( col1 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 39 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4344
SELECT MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT col0 AS col2, - 63 AS col1 FROM tab0 AS cor0
----
15
-63
87
-63
97
-63

query I rowsort
SELECT 31 FROM tab2 WHERE NOT + col2 IS NULL
----
31
31
31

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT - - 32 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL 30 * + MAX( + col0 ) FROM tab2
----
2250

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL 30 * + MAX ( + col0 ) FROM tab2
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + COUNT( * ) * - 67 * COUNT( * ) AS col0 FROM tab0
----
-603

skipif mysql # not compatible
query I rowsort label-4349
SELECT + COUNT ( * ) * - 67 * COUNT ( * ) AS col0 FROM tab0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL + + SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4352
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4352
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 < - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 46 + - col0 * ( + col0 ) * col2 FROM tab0
----
-10529
-75644
-931445

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - 17 * col0 * + col1 * + col1
----

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND + ( col0 ) * + col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT - - 33 + - CAST( NULL AS SIGNED ) * col1 + - - col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT DISTINCT - - 33 + - CAST ( NULL AS INTEGER ) * col1 + - - col2 col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 10 + + col0 ) NOT BETWEEN ( col0 ) * + 30 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col1 * col1 * + + 78, ( 95 ) + + 76 AS col1 FROM tab2 AS cor0
----
-202878
171
-350142
171
-462462
171

query I rowsort
SELECT DISTINCT col1 + + 5 FROM tab2 AS cor0
----
56
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - CAST( + ( + ( - 34 ) ) AS SIGNED ) * col2 col1 FROM tab0 AS cor0
----
1598
3366
340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4362
SELECT - CAST ( + ( + ( - 34 ) ) AS INTEGER ) * col2 col1 FROM tab0 AS cor0
----
1598
3366
340

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 - + ( - 36 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT ALL - - col1 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - - col1 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT COUNT( * ) * + 30 * 4 + - 61 FROM tab2 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-4365
SELECT COUNT ( * ) * + 30 * 4 + - 61 FROM tab2 AS cor0
----
299

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT + MAX( ALL col0 ) AS col0, 90 FROM tab0
----
97
90

skipif mysql # not compatible
query II rowsort label-4366
SELECT + MAX ( ALL col0 ) AS col0, 90 FROM tab0
----
97
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT DISTINCT 98 + col2 FROM tab0 WHERE NOT - + col2 * CAST( NULL AS SIGNED ) <= col2 * - + col0 + - 69 / col1
----

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT 98 + col2 FROM tab0 WHERE NOT - + col2 * CAST ( NULL AS INTEGER ) <= col2 * - + col0 + - 69 / col1
----

query I rowsort
SELECT col1 * - ( + - col2 ) * + - col2 + col2 + - col1 AS col2 FROM tab0
----
-178963
-2111
-9703

query I rowsort
SELECT DISTINCT 22 + + col2 + - 7 FROM tab2 cor0
----
38
55
73

query I rowsort
SELECT + col1 * - - 26 + 10 * - col1 AS col1 FROM tab2 AS cor0 WHERE col2 + + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - MIN( - col0 ) / + - 86 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - MIN ( - col0 ) / + - 86 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col0 + - 21 * - col2 * + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
193491
73127
97127

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - - MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - - MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT 83 * - ( + COUNT( * ) ) AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-4376
SELECT 83 * - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-249

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + + - col1 BETWEEN ( - col2 * - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + ( - 38 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + - MIN( ALL + 57 ) DIV + COUNT( * ) col0 FROM tab2 cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT ALL + - MIN ( ALL + 57 ) / + COUNT ( * ) col0 FROM tab2 cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - - 97 DIV - - col2 AS col0 FROM tab0 cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - 97 / - - col2 AS col0 FROM tab0 cor0
----
0
2
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 92 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT ALL - + COUNT( - - 86 ), 10 col2 FROM tab2 AS cor0
----
-3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4382
SELECT ALL - + COUNT ( - - 86 ), 10 col2 FROM tab2 AS cor0
----
-3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT - col0, - 77 AS col0 FROM tab0
----
-15
-77
-87
-77
-97
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - ( + - COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT - ( + - COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT 21 FROM tab1 WHERE NOT + col1 + + + 78 + - 34 BETWEEN + col1 / - - col1 AND NULL
----

query I rowsort
SELECT col2 * + col1 FROM tab1 WHERE NOT - + col2 <= + col1
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT + col1 * + col1 / + + col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col1, 34 AS col2 FROM tab1 AS cor0
----
14
34
47
34
5
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 50 NOT IN ( + 24 + + ( - + col1 ) ) AND ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE 27 - - CAST( - col0 AS SIGNED ) * - - 74 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4392
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE 27 - - CAST ( - col0 AS INTEGER ) * - - 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + 62 * + + col2 + col0 FROM tab2 AS cor0
----
1472
2544
3671

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL 45 + - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 45 + - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT - - SUM( - col1 ) + - ( + - MIN( DISTINCT - col2 ) ) FROM tab0 cor0
----
-202

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - - SUM ( - col1 ) + - ( + - MIN ( DISTINCT - col2 ) ) FROM tab0 cor0
----
-202

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= ( + col1 + + col0 * 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 + col0 * - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 WHERE - 63 BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4401
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( + col1, CAST( NULL AS SIGNED ) + + col1, 64 )
----

skipif mysql # not compatible
query III rowsort label-4401
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( + col1, CAST ( NULL AS INTEGER ) + + col1, 64 )
----

query I rowsort
SELECT ALL 32 + - 94 AS col1 FROM tab2
----
-62
-62
-62

query III rowsort
SELECT * FROM tab1 WHERE 89 NOT BETWEEN - col1 * col1 AND NULL
----

query I rowsort
SELECT ALL + + 55 * + col1 FROM tab2 AS cor0
----
2805
3685
4235

query I rowsort
SELECT DISTINCT 94 + - 93 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 + - + col2 * 13 * + 56 AS col1 FROM tab1 AS cor0
----
-42867
-49413
-69837

query II rowsort
SELECT + 89, - col2 FROM tab2 AS cor0 WHERE + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - - SUM( - + 62 ) AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4408
SELECT - - SUM ( - + 62 ) AS col2 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT ALL + 24 + - col0 FROM tab2 AS cor0
----
-22
-40
-51

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4411
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + ( - + ( - + col0 ) ) * + 43 / - 92 + + col2 AND NULL
----

query I rowsort
SELECT - 33 * col0 AS col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT + + 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + 99 * - ( + - col0 ) AS col2 FROM tab2
----
4554
6336
7425

query II rowsort
SELECT ALL + 95 AS col1, - col1 * + col0 AS col1 FROM tab1 AS cor0
----
95
-425
95
-4277
95
-714

query I rowsort
SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 45 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT ALL - - 26 AS col0 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT - 60 FROM tab1 AS cor0 WHERE NOT col0 + + 0 IS NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT DISTINCT - col2 / + + CAST( + + col2 AS SIGNED ) * - - 50 * - col0 - + col2 FROM tab1 AS cor0 WHERE NOT + 57 > ( + 35 + - col0 - - 54 )
----

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - col2 / + + CAST ( + + col2 AS INTEGER ) * - - 50 * - col0 - + col2 FROM tab1 AS cor0 WHERE NOT + 57 > ( + 35 + - col0 - - 54 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col1 / + 31 ) >= col1 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col1 * 15 FROM tab0
----
15
6615
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT COUNT( * ) * COUNT( * ) * + + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4424
SELECT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT MAX( - 17 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4425
SELECT MAX ( - 17 ) FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-4426
SELECT DISTINCT ( - col0 ) AS col2, - 55 * + + col2 + + col0 DIV 21 FROM tab1
----
-51
-5278
-85
-3241
-91
-3736

skipif mysql # not compatible
query II rowsort label-4426
SELECT DISTINCT ( - col0 ) AS col2, - 55 * + + col2 + + col0 / 21 FROM tab1
----
-51
-5278
-85
-3241
-91
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + COUNT( 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + COUNT ( 14 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab0 cor0
----
-55

query I rowsort
SELECT ( - ( + 33 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 56 IS NULL
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT - CAST( + 65 AS SIGNED ) + - - ( - + 73 ) - - - col2 FROM tab0 AS cor0
----
-148
-185
-237

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) + - - ( - + 73 ) - - - col2 FROM tab0 AS cor0
----
-148
-185
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + 46 * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 46 * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT ALL + - 87 + + col2 AS col0 FROM tab2 AS cor0
----
-29
-47
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4435
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) * col0 * + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4435
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * col0 * + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT 90 * + col1 + - 5 + + + col0 DIV - + col0 AS col0 FROM tab2 AS cor0
----
4584
6024
6924

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT 90 * + col1 + - 5 + + + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
4584
6024
6924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4437
SELECT * FROM tab2 AS cor0 WHERE col1 / - - CAST( NULL AS SIGNED ) <> 75 + - 7 * - 38
----

skipif mysql # not compatible
query III rowsort label-4437
SELECT * FROM tab2 AS cor0 WHERE col1 / - - CAST ( NULL AS INTEGER ) <> 75 + - 7 * - 38
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL + MIN( 40 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + MIN ( 40 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
40

query II rowsort
SELECT DISTINCT + ( + 11 ) * - 76 + + 80 AS col1, col0 + col1 AS col2 FROM tab1
----
-756
138
-756
65
-756
90

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + col0 * col1 + + col1 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT SUM( DISTINCT - - col0 ) - SUM( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT SUM ( DISTINCT - - col0 ) - SUM ( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + 1 - col1 AS col2 FROM tab2
----
-27
-36
-8

query I rowsort
SELECT ALL + col0 + + + 25 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT - ( 53 ) AS col1 FROM tab0
----
-53
-53
-53

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 9 + + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84 AS col1, - col0 col0 FROM tab2 AS cor0
----
84
-46
84
-64
84
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + + MIN( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4451
SELECT + + MIN ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT + - col0 AS col1, + 63 FROM tab0 cor0
----
-15
63
-87
63
-97
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, col0 FROM tab0 WHERE NOT - 2 NOT BETWEEN - col0 AND + col0
----
1
97
21
87
81
15

query I rowsort
SELECT 36 * + col1 + - 80 FROM tab2
----
1756
2332
2692

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - - SUM( - 25 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - - SUM ( - 25 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT COUNT( * ) + + MIN( ALL - col0 ) + + 38 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - col0 ) + + 38 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 85 + ( + 99 ) + + col2 AS col1 FROM tab1 AS cor0
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - ( - + COUNT( * ) ) + - SUM( ALL - 70 ) col1 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4461
SELECT - ( - + COUNT ( * ) ) + - SUM ( ALL - 70 ) col1 FROM tab1 AS cor0
----
213

query I rowsort
SELECT - 70 AS col2 FROM tab2 AS cor0 WHERE ( - ( - - 91 ) ) BETWEEN NULL AND + col1 + + 0 * + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 54 + - col0 FROM tab2
----
-10
-21
8

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT + 68 >= ( + 70 )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 53 * + 97 FROM tab1
----
5141
5141
5141

query I rowsort
SELECT - + col1 + col1 FROM tab0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT COUNT( DISTINCT + + 67 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT COUNT ( DISTINCT + + 67 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 33 <> col1 * col1 + + - 99
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 33 <> col1 * col1 + + - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT + 59 - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-26
-32
8

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 59 - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-26
-32
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4472
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT ALL + + CAST( col0 AS SIGNED ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + + CAST ( col0 AS INTEGER ) * col0 + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT + 40 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 69, col0, + + ( + 36 ) / col0 )
----

query I rowsort
SELECT - 63 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= + col0 )
----

query I rowsort
SELECT + 76 * col1 AS col1 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT - SUM( - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - SUM ( - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 * - 13
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT ALL 59 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - col1 * - 26 IS NULL
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT MAX( DISTINCT + + ( - + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4481
SELECT MAX ( DISTINCT + + ( - + col2 ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT DISTINCT + COUNT( * ), + MIN( + 19 ) AS col2 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-4483
SELECT DISTINCT + COUNT ( * ), + MIN ( + 19 ) AS col2 FROM tab0
----
3
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( col1 ) ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT - 58 * - CAST( 70 AS SIGNED ) * + ( - ( - + col0 ) ) FROM tab1
----
207060
345100
369460

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 58 * - CAST ( 70 AS INTEGER ) * + ( - ( - + col0 ) ) FROM tab1
----
207060
345100
369460

query I rowsort
SELECT DISTINCT ( + 22 ) FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + SUM( ALL + col1 ) FROM tab2 WHERE NOT NULL > - ( col2 ) * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + SUM ( ALL + col1 ) FROM tab2 WHERE NOT NULL > - ( col2 ) * + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * col2 + + ( - col2 ) col0 FROM tab1 cor0
----
-295
-340
-480

query II rowsort
SELECT DISTINCT - - col1 + + col1 * + col1, 52 * col1 * col2 AS col1 FROM tab0 AS cor0
----
2
5148
462
10920
6642
197964

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE - 59 IS NOT NULL AND NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query I rowsort
SELECT DISTINCT + col2 + - + 26 * + 64 AS col2 FROM tab1
----
-1568
-1596
-1605

query II rowsort
SELECT DISTINCT 21, + 48 AS col1 FROM tab1
----
21
48

query I rowsort
SELECT 58 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + 53 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 23 )
----

query I rowsort
SELECT ALL + col0 * - 47 + + 97 + 41 AS col1 FROM tab0 AS cor0
----
-3951
-4421
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 36 col0 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT 98 - + col0 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
108014
315490
376973

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col1 - + + col1 * 17 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT 28 * + - 97 + - + 31 * - MIN( ALL + + CAST( - + col2 AS SIGNED ) ) + - + SUM( col1 ) + COUNT( * ) FROM tab2
----
-4706

skipif mysql # not compatible
query I rowsort label-4501
SELECT 28 * + - 97 + - + 31 * - MIN ( ALL + + CAST ( - + col2 AS INTEGER ) ) + - + SUM ( col1 ) + COUNT ( * ) FROM tab2
----
-4706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4502
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col1 - - 1 * + - 71 FROM tab2
----
-20
-4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + 72 * COUNT( * ) + - SUM( - 15 ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 72 * COUNT ( * ) + - SUM ( - 15 ) AS col2 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + COUNT( DISTINCT - 5 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + COUNT ( DISTINCT - 5 ) FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT DISTINCT - - MAX( - col0 ) * + + 90 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-4140
NULL

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT - - MAX ( - col0 ) * + + 90 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-4140
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT COUNT( ALL 83 ) FROM tab2 AS cor0 WHERE NOT + 5 + - ( - 19 ) - + - col0 + + - CAST( NULL AS SIGNED ) * - 16 * ( + col0 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT COUNT ( ALL 83 ) FROM tab2 AS cor0 WHERE NOT + 5 + - ( - 19 ) - + - col0 + + - CAST ( NULL AS INTEGER ) * - 16 * ( + col0 ) < ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL - + col1 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - + col1 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ( + MIN( ALL + - 0 ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT ( + MIN ( ALL + - 0 ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + + ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query II rowsort
SELECT ALL - col1, + 64 AS col1 FROM tab2 AS cor0
----
-51
64
-67
64
-77
64

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + 33 FROM tab0, tab0 cor0
----
33

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * + - col0 * col2 AS col2 FROM tab1
----
-244800
-421260
-556920

query I rowsort
SELECT ALL + 81 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 51 + - 10 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 56 * col0 AS col0 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL 40 + 78 DIV - col1 FROM tab1 AS cor0
----
25
35
39

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL 40 + 78 / - col1 FROM tab1 AS cor0
----
25
35
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL + col1 * - 0 DIV col2 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + col1 * - 0 / col2 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - COUNT( * ) + - COUNT( + + col2 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - COUNT ( * ) + - COUNT ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4524
SELECT ALL - + CAST( NULL AS DECIMAL ) + + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - + CAST ( NULL AS REAL ) + + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 71 - - col2 AS col1 FROM tab2 AS cor0
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 - + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 - + - col0 IS NULL
----
0

query I rowsort
SELECT ALL + 82 - + - ( + 99 ) AS col1 FROM tab1 cor0
----
181
181
181

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4528
SELECT ALL col1, col1 / + 52 / - - CAST( NULL AS DECIMAL ) * + + ( 13 ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4528
SELECT ALL col1, col1 / + 52 / - - CAST ( NULL AS REAL ) * + + ( 13 ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 26 AS col0 FROM tab1
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT SUM( - 76 ) AS col2 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4531
SELECT SUM ( - 76 ) AS col2 FROM tab0 AS cor0
----
-228

query I rowsort
SELECT ALL + 12 * - col0 + - col2 FROM tab0 AS cor0 WHERE NOT + 12 IS NULL
----
-1054
-1263
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 41 - + 81 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 78 ) col0, col2 FROM tab1 cor0
----
78
59
78
68
78
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 71 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col2 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT MIN( DISTINCT + - col1 ) AS col1 FROM tab1 cor0 WHERE + 19 * + col2 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-4539
SELECT MIN ( DISTINCT + - col1 ) AS col1 FROM tab1 cor0 WHERE + 19 * + col2 IS NOT NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - COUNT( 41 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4540
SELECT - COUNT ( 41 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 15 ) col0 FROM tab1 AS cor0
----
-15
-15
-15

query II rowsort
SELECT ALL 46, col1 FROM tab2
----
46
51
46
67
46
77

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + - col0 - - col0 < - 9
----

query III rowsort
SELECT * FROM tab0 WHERE 52 * + col1 * + col2 <> NULL
----

query II rowsort
SELECT ALL + col0 AS col2, col2 + ( ( + + col2 ) ) * - 38 AS col0 FROM tab2
----
46
-851
64
-1480
75
-2146

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT COUNT( * ), + 47 AS col0 FROM tab0
----
3
47

skipif mysql # not compatible
query II rowsort label-4546
SELECT COUNT ( * ), + 47 AS col0 FROM tab0
----
3
47

query I rowsort
SELECT DISTINCT - col0 + col2 + 35 AS col2 FROM tab2
----
11
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + ( - 84 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT 11 DIV COUNT( * ) * + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 11 / COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT 35 DIV SUM( DISTINCT col1 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT 35 / SUM ( DISTINCT col1 ) col1 FROM tab0
----
0

query I rowsort
SELECT - col2 - - + 97 AS col2 FROM tab0 AS cor0
----
-2
50
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 7 ) * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 14 * col1 AS col0 FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( DISTINCT - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( DISTINCT - + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 * 48 AS col2 FROM tab1
----
-4512
-4512
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + 22 * + COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 22 * + COUNT ( * ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT + CAST( - 5 AS SIGNED ) * - - 87 AS col0 FROM tab0
----
-435

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) * - - 87 AS col0 FROM tab0
----
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT + 11 DIV - + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + 11 / - + col1 FROM tab2
----
0

query I rowsort
SELECT ALL 76 AS col0 FROM tab0 cor0
----
76
76
76

query II rowsort
SELECT ALL + 28 AS col1, col0 FROM tab2 AS cor0
----
28
46
28
64
28
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT 42 AS col2, + SUM( - + 64 ) AS col0 FROM tab0
----
42
-192

skipif mysql # not compatible
query II rowsort label-4564
SELECT 42 AS col2, + SUM ( - + 64 ) AS col0 FROM tab0
----
42
-192

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + 11 ) AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4567
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 51, + CAST( NULL AS SIGNED ), - col1 - + 88 * + col2 * + 11, + col0, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4568
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 51, + CAST ( NULL AS INTEGER ), - col1 - + 88 * + col2 * + 11, + col0, + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT - SUM( + + col2 ) + + 60 + 63 DIV 55 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4569
SELECT - SUM ( + + col2 ) + + 60 + 63 / 55 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + + 99 + - col2 FROM tab0 AS cor0
----
0
52
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT + + AVG ( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + + AVG ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 8 + + col0 AS col2 FROM tab0 AS cor0
----
7
79
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + col1 ) IS NULL
----

query I rowsort
SELECT col0 * + 12 * + - col1 AS col2 FROM tab2
----
-28152
-59136
-60300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - col2 * - col2 col1 FROM tab1
----
313290
416160
829440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 75 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + ( + MAX( ALL + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4577
SELECT + ( + MAX ( ALL + col2 ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + + ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT + + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL CAST( col0 AS SIGNED ) - + col2 + - - 13 FROM tab2 AS cor0
----
30
36
37

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL CAST ( col0 AS INTEGER ) - + col2 + - - 13 FROM tab2 AS cor0
----
30
36
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND + ( - - ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4580
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND + ( - - ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - col0 + - 24 AS col1 FROM tab2
----
-70
-88
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 * + + 71 * col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 0 + 32 AS col1 FROM tab0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - col0 * col2 * - ( - 73 ) AS col0 FROM tab1
----
59
-366095
68
-451724
96
-357408

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT + 53 * + 89 IS NULL ) )
----

query I rowsort
SELECT + 5 * - col1 + + - col0 - - - ( + col1 ) * + col1 FROM tab1 cor0
----
-135
-2535
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - col1 * 40 * + - 43, 50 * + col0 AS col1 FROM tab2 AS cor0
----
115240
3750
132440
3200
87720
2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4589
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) + + + MAX( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) + + + MAX ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 > + col0
----
59
68
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 < col1 * col2
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 * 98 * 27 FROM tab0
----
214326
2646
55566

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 IS NULL AND NOT ( NULL ) < col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT + ( + SUM( DISTINCT - col1 ) ) * + 96 col2, 82 AS col0 FROM tab0
----
-9888
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4595
SELECT + ( + SUM ( DISTINCT - col1 ) ) * + 96 col2, 82 AS col0 FROM tab0
----
-9888
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT + CAST( + + 6 AS SIGNED ) * + - col2 col2 FROM tab1
----
-354
-408
-576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT + CAST ( + + 6 AS INTEGER ) * + - col2 col2 FROM tab1
----
-354
-408
-576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL + - col0 * col2 * - + 37 AS col2 FROM tab0 cor0
----
26085
32190
355311

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT + 72 + ( + 92 ) FROM tab2
----
164
164
164

query I rowsort
SELECT col2 * - + 79 + - - col1 FROM tab0
----
-3632
-769
-7820

query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - ( + 65 ) AS col0 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + - 75 * - col0 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < - + 50 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT ALL + col2 DIV + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + col2 / + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN - - col1 + + col0 AND + + col2 - col2
----

query I rowsort
SELECT col1 + col1 + + ( + + col2 ) - col2 * col2 * - col1 FROM tab2
----
123394
225580
27104

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( * ) * - - SUM( DISTINCT - col1 ) + + + 84 FROM tab0
----
393

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( * ) * - - SUM ( DISTINCT - col1 ) + + + 84 FROM tab0
----
393

query I rowsort
SELECT + col2 * + + 44 + - col2 + - col0 AS col2 FROM tab1
----
2452
2833
4077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + 7 col1 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE - 60 + - - col0 = - col1 * - col2
----

query I rowsort
SELECT DISTINCT + 67 + + 99 * + - 15 AS col1 FROM tab1 AS cor0
----
-1418

query II rowsort
SELECT DISTINCT col2 - - 80 * 63 + + col1 - col0 * + col1 AS col0, col0 * - col1 FROM tab0 AS cor0
----
3244
-1827
3953
-1215
5043
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 42 BETWEEN + 82 * + 50 * - 98 AND NULL
----

query II rowsort
SELECT DISTINCT + 82 + + col0, - col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 50 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - col0 * - col2 + + col1 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 16 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - + 81 - + ( + + 73 ) FROM tab2 cor0
----
3653
5111
6002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT - - COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4623
SELECT - - COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 * col0 * ( + - col2 ) FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4625
SELECT - + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col2 * 99 * + col1 + col1 FROM tab1 AS cor0
----
-133042
-29200
-316357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4627
SELECT DISTINCT COUNT( * ) AS col0, + SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT COUNT ( * ) AS col0, + SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL col1 * - - CAST( 85 AS SIGNED ) FROM tab1 AS cor0
----
1190
3995
425

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL col1 * - - CAST ( 85 AS INTEGER ) FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT - 64 DIV 50 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - 64 / 50 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT + - 35 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
1785
2975
3185

skipif mysql # not compatible
query I rowsort label-4630
SELECT + - 35 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
1785
2975
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT DISTINCT + 95 DIV col1 AS col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 95 / col1 AS col1 FROM tab1 AS cor0
----
19
2
6

query I rowsort
SELECT + col0 * - 25 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + 22 AS col2 FROM tab1 WHERE + col2 * + col2 >= - col0 * - col0 - 20
----
22

query I rowsort
SELECT ALL col2 * + 89 + - col0 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
10245
4416
8528

onlyif mysql # DIV for integer division: 
query II rowsort label-4636
SELECT col0 + + 14 + col1 * - + ( - 93 ) AS col0, 72 DIV - col0 + + col1 FROM tab0 AS cor0
----
204
1
2054
21
7562
77

skipif mysql # not compatible
query II rowsort label-4636
SELECT col0 + + 14 + col1 * - + ( - 93 ) AS col0, 72 / - col0 + + col1 FROM tab0 AS cor0
----
204
1
2054
21
7562
77

query I rowsort
SELECT 46 + - - col2 AS col2 FROM tab2 AS cor0
----
104
69
86

query I rowsort
SELECT + 40 + - + 98 * col0 * - 81 AS col0 FROM tab2 AS cor0
----
365188
508072
595390

query I rowsort
SELECT ALL + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + + ( + - COUNT( ALL + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + + ( + - COUNT ( ALL + col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( - 24 ) FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - col1 - - - 34 * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - col1 - - - 34 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4643
SELECT CAST( NULL AS DECIMAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT CAST ( NULL AS REAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 97 + col2 * 18 * + col1 FROM tab1 AS cor0
----
24289
5407
57625

query I rowsort
SELECT - 5 - - 82 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL col1 + - 49 AS col2 FROM tab0 AS cor0
----
-28
-48
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - CAST( NULL AS SIGNED ) + + + 14 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 14 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT + AVG ( DISTINCT + - 91 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + AVG ( DISTINCT + - 91 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56, - col2 col1 FROM tab2 AS cor0
----
56
-23
56
-40
56
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT DISTINCT + - COUNT( * ) AS col1, MIN( + col0 ) FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-4652
SELECT DISTINCT + - COUNT ( * ) AS col1, MIN ( + col0 ) FROM tab0 AS cor0
----
-3
15

query I rowsort
SELECT - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 90 * + - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4654
SELECT 90 * + - COUNT ( * ) FROM tab2 AS cor0
----
-270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, + 13 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + col0 AND NULL
----

query I rowsort
SELECT + col1 * + - col0 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL CAST( + 46 AS SIGNED ) * ( + col0 ) FROM tab0
----
4002
4462
690

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL CAST ( + 46 AS INTEGER ) * ( + col0 ) FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + COUNT( DISTINCT ( 81 ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + COUNT ( DISTINCT ( 81 ) ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( + col0 IS NOT NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - SUM( ALL - - 5 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT - SUM ( ALL - - 5 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + + col2 >= col0
----
14

query I rowsort
SELECT ALL - col2 * - col2 * - col0 * col0 + - 19 * - - col1 FROM tab1 AS cor0
----
-23971082
-25150320
-38292237

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT 28 + - 35 + - SUM( col0 ) AS col1 FROM tab0 cor0
----
-206

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT 28 + - 35 + - SUM ( col0 ) AS col1 FROM tab0 cor0
----
-206

query I rowsort
SELECT ALL + 14 - + - col1 FROM tab0 AS cor0
----
15
35
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4667
SELECT DISTINCT + + COUNT( * ) - + CAST( NULL AS SIGNED ) - + CAST( + - 33 AS DECIMAL ) * - 17 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + CAST ( + - 33 AS REAL ) * - 17 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + COUNT( * ) + + - COUNT( * ) + + ( - 63 ) AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + + ( - 63 ) AS col1 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT col2 + 74 AS col2, col0 * 97 * + col0 FROM tab0
----
121
21825
173
912673
84
734193

query I rowsort
SELECT - 46 + 51 AS col0 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) < - col1
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) < - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - + 49 * - - 66 / + - col0 + - 50 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + ( - col0 ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 18 * - 96 FROM tab1
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col2 * col1 - - 58 * 3 * + 88 = col2
----
-3

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col2 * col1 - - 58 * 3 * + 88 = col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + - MAX( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4676
SELECT + - MAX ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 * - - col1 BETWEEN - - ( + 29 ) * - + 55 * - + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT col2 DIV col1 * + + col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4679
SELECT col2 / col1 * + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col1 * + ( + - 6 ) FROM tab0 AS cor0
----
2646
39366
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN ( - + 9 / + col2 * + 42 * + col0 ) AND NULL
----

query II rowsort
SELECT ALL - + col1, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 57 + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT NULL < 93 - - ( - col0 )
----

query I rowsort
SELECT - col0 + 11 + col0 / - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + ( - COUNT( DISTINCT col2 ) ) + + SUM( + - 39 ) AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4686
SELECT + ( - COUNT ( DISTINCT col2 ) ) + + SUM ( + - 39 ) AS col1 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT 9 + - + 64 FROM tab0
----
-55

query I rowsort
SELECT - - col2 * + col0 - + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 60 * + col0 AS col2 FROM tab0 AS cor0
----
13500
454140
564540

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL COUNT( * ) + - MAX( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL COUNT ( * ) + - MAX ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query II rowsort
SELECT DISTINCT col0 * - - 4 + - col0, col0 FROM tab1
----
153
51
255
85
273
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * 96 * - 14 + - col2 FROM tab0 AS cor0
----
116918
130269
20113

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * 69 + 30 + + COUNT( * ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4695
SELECT - COUNT ( * ) * 69 + 30 + + COUNT ( * ) FROM tab0 AS cor0
----
-174

query II rowsort
SELECT + + col1 + - col1, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT + col2 + - 74 AS col2 FROM tab2 AS cor0
----
-16
-34
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE col2 * - col0 <> - 60
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE col2 * - col0 <> - 60
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4699
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT 71 + + ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT 71 + + ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 73 col0 FROM tab1
----
1022
3431
365

query I rowsort
SELECT DISTINCT col1 - - + 84 FROM tab1
----
131
89
98

query I rowsort
SELECT ALL + col2 * - 71 FROM tab1 WHERE - col1 * + 57 IS NULL
----

query I rowsort
SELECT + col0 - - + 11 FROM tab0
----
108
26
98

query I rowsort
SELECT ALL col0 * 96 AS col1 FROM tab1
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * col1 col2 FROM tab0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4706
SELECT ALL * FROM tab2 WHERE NOT ( + CAST( col0 AS SIGNED ) * - col1 / + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4706
SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( col0 AS INTEGER ) * - col1 / + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL col2 DIV - ( + 47 ) AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL col2 / - ( + 47 ) AS col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 99 + ( + col0 + - 66 ) * + 6 FROM tab1
----
213
249
9

query I rowsort
SELECT 5 + - col2 AS col0 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT 38 + col1 FROM tab0 WHERE NOT NULL <> ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col1 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT ( 16 ) + - CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4713
SELECT ( 16 ) + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab0
----
19

query I rowsort
SELECT ALL 34 + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 39 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT - CAST( NULL AS SIGNED ) * 6 + - 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT - CAST ( NULL AS INTEGER ) * 6 + - 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - MAX( ALL 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - MAX ( ALL 60 ) FROM tab1
----
-60

query I rowsort
SELECT + col1 + - 79 AS col2 FROM tab1
----
-32
-65
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) + - 78 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) + - 78 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 27 FROM tab1 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT + col1 + + 54 * + col0 AS col2 FROM tab2
----
2535
3533
4117

query I rowsort
SELECT ALL + col1 + - 19 AS col1 FROM tab1 WHERE col2 * - col0 - + col1 BETWEEN ( NULL ) AND - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT + 27 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 27 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 82 + col1 AS col2 FROM tab0
----
-3773
-799
-8117

query I rowsort
SELECT DISTINCT 0 FROM tab1 WHERE NOT col1 / + 24 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 78 * col1 <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL 48 * COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 48 * COUNT ( * ) FROM tab1
----
144

query I rowsort
SELECT DISTINCT - col2 - + 52 * - col1 AS col0 FROM tab1
----
201
2376
632

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> + col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT + col1 * - CAST( col1 AS SIGNED ) + + 79 AS col0 FROM tab0 WHERE NOT NULL <= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4731
SELECT + col1 * - CAST ( col1 AS INTEGER ) + + 79 AS col0 FROM tab0 WHERE NOT NULL <= ( + col2 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE ( col1 ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 * 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 10
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT SUM( 19 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
171

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT SUM ( 19 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
171

query I rowsort
SELECT ALL 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 AS cor0 WHERE + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL + + 20 - COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + + 20 - COUNT ( * ) FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL + + 25 - col2 DIV - col1 FROM tab1 AS cor0
----
26
31
36

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + + 25 - col2 / - col1 FROM tab1 AS cor0
----
26
31
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT + ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT + ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 * 8 FROM tab0
----
1680
30456
792

query I rowsort
SELECT ( 26 ) AS col1 FROM tab0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( - col0 ) / 40 ) NOT IN ( - col0 - + col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL OR ( NULL ) <= + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 71 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - col0 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT - col1 DIV 29 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - col1 / 29 FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * - - col2 col1 FROM tab1
----
1947
2244
3168

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 WHERE NULL BETWEEN ( + col2 ) AND - ( 94 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col2 BETWEEN col0 AND NULL
----
46
64
75

query I rowsort
SELECT 63 * - col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + 37 * ( COUNT( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-4758
SELECT + 37 * ( COUNT ( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + ( - COUNT( * ) ) * 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-792

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + ( - COUNT ( * ) ) * 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-792

query I rowsort
SELECT ALL + ( col0 ) * col2 AS col0 FROM tab1 WHERE - 61 NOT IN ( col0 )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) > + 46
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT ALL - 0 * + 25 * - + ( col0 ) + 71 AS col0 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 0 + 66 * + col2 FROM tab2 AS cor0
----
1518
2640
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - 64 + COUNT( col1 ) + - 96 col0 FROM tab1 cor0
----
-157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT - 64 + COUNT ( col1 ) + - 96 col0 FROM tab1 cor0
----
-157

query I rowsort
SELECT 18 + col0 AS col2 FROM tab2 AS cor0
----
64
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL + COUNT( * ) / - + MIN( ALL + col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + COUNT ( * ) / - + MIN ( ALL + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN col0 - col0 / + 52 AND + col1
----

query I rowsort
SELECT + 35 FROM tab0 WHERE ( NULL ) IS NULL
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 51 ) BETWEEN NULL AND + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - col2 + 56 AS col0 FROM tab1 AS cor0
----
115
124
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT ALL + col2 + - ( - - col2 ) + - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + col2 + - ( - - col2 ) + - col0 + - col2 / col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT - MIN( ALL + ( + col0 ) ) / 96 * CAST( NULL AS SIGNED ) + 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - MIN ( ALL + ( + col0 ) ) / 96 * CAST ( NULL AS INTEGER ) + 93 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 97 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 97 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 26 FROM tab2 WHERE - col2 + + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----

query I rowsort
SELECT + - col2 + - + col2 AS col2 FROM tab2 WHERE - 92 IS NOT NULL
----
-116
-46
-80

query I rowsort
SELECT ALL 46 + - + col2 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL + ( + 31 ) + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + ( + 31 ) + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT col2 + + col2 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * + 8 FROM tab1 AS cor0 WHERE col2 / + col2 * + col0 BETWEEN ( - col2 ) AND col2 / ( + col0 ) + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4786
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-4786
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( 49 ) BETWEEN NULL AND 72 * + 64
----

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 24, + col1 + 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT + 9 FROM tab1 WHERE + ( + + CAST( NULL AS SIGNED ) ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + 9 FROM tab1 WHERE + ( + + CAST ( NULL AS INTEGER ) ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * + 49 AS col0 FROM tab2
----
-103684
-200704
-275625

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - COUNT( - - 79 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - COUNT ( - - 79 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col0 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4795
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col2, 40 AS col1 FROM tab2
----
23
40
40
40
58
40

query I rowsort
SELECT 7 * 43 FROM tab0
----
301
301
301

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 * 22 AND + col2 * - col1 * 26
----

query II rowsort
SELECT - ( + - col1 ) AS col0, + 89 + ( - col1 ) + + col1 FROM tab2
----
51
89
67
89
77
89

query II rowsort
SELECT DISTINCT col2, - 95 FROM tab1
----
59
-95
68
-95
96
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - MIN( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - MIN ( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, col2 * col0 col0 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col0 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2 WHERE - col0 + - + col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 * + col1 <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 90 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 93 + + col1 AS col2 FROM tab2 AS cor0
----
144
160
170

query I rowsort
SELECT 92 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) <= col1
----
115
132
150

query II rowsort
SELECT + col2 * + 89, col2 + + ( + 35 ) AS col2 FROM tab1 AS cor0
----
5251
94
6052
103
8544
131

query II rowsort
SELECT col0 + + + col0 AS col0, 61 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 + - ( col0 ) NOT IN ( - col1 + + col0 - - CAST( NULL AS SIGNED ) - - CAST( 54 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 + - ( col0 ) NOT IN ( - col1 + + col0 - - CAST ( NULL AS INTEGER ) - - CAST ( 54 AS INTEGER ) * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ALL + - col0 + 18 DIV - 99 * 4 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + - col0 + 18 / - 99 * 4 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL - SUM( ALL - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - SUM ( ALL - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 91 AS col2, col2 * 28 * + - col0 AS col2 FROM tab1
----
91
-137088
91
-140420
91
-173264

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + COUNT( * ) + - 72 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4816
SELECT + COUNT ( * ) + - 72 FROM tab1
----
-69

query II rowsort
SELECT DISTINCT 86 AS col2, + col2 AS col0 FROM tab1
----
86
59
86
68
86
96

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT 77 + - + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - SUM( col0 ) AS col2 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - SUM ( col0 ) AS col2 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
-199

query I rowsort
SELECT ALL 59 + + col0 AS col0 FROM tab0
----
146
156
74

query I rowsort
SELECT col0 * + 83 * - - ( + col0 ) + + - col0 FROM tab2
----
175582
339904
466800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT + col1 + + ( 42 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT + col1 + + ( 42 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT col0 * + + 14 * col1 AS col0 FROM tab2
----
32844
68992
70350

query I rowsort
SELECT DISTINCT - + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 + + col2 * + + col0 * + 95 col1 FROM tab0
----
67037
82747
912481

query I rowsort
SELECT - 98 - 53 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f40aa0b5c301d6179d07413f4c2d6796

query I rowsort
SELECT + + col0 - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - + 1 <= col1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + COUNT( DISTINCT - ( - col1 ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4829
SELECT + COUNT ( DISTINCT - ( - col1 ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1 + - col0 * col1 AS col0, 24 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - SUM( - 84 ) FROM tab0 cor0
----
252

skipif mysql # not compatible
query I rowsort label-4832
SELECT - SUM ( - 84 ) FROM tab0 cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * col0 + col0 col0 FROM tab0 AS cor0 WHERE ( col0 + col2 * + + col1 ) NOT IN ( ( + col1 ) )
----
105
609
679

query II rowsort
SELECT DISTINCT + - col2 * - - col0 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT col0 DIV - - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4835
SELECT col0 / - - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT - 92 + col2 * + 3 AS col0 FROM tab0 WHERE NOT - col0 / + - 48 - 14 * + + col1 IS NULL
----
-62
205
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4837
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 + col2 BETWEEN ( col2 + - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( 6 ) AND - + col2 + + ( - col2 ) + - - col0 / - 19
----

query I rowsort
SELECT ALL - - col2 * col2 + col2 + - + col2 + + col0 + col0 FROM tab0 AS cor0
----
2239
274
9995

query I rowsort
SELECT ALL - 81 + + col0 FROM tab1
----
-30
10
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - col0 + - col1 col0 FROM tab1
----
59
-90
68
-138
96
-65

query I rowsort
SELECT - col1 + - + 26 + - col2 + + - col0 FROM tab0 AS cor0
----
-144
-169
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT DISTINCT - 46 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-131
-137
-97

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - 46 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-131
-137
-97

query I rowsort
SELECT ALL + 96 + + - col0 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT 77 * + 37 + col1 FROM tab1 AS cor0
----
2854
2863
2896

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT col0 DIV 36 * + + col1 + + 79 + 26 AS col0 FROM tab2 AS cor0
----
156
182
239

skipif mysql # not compatible
query I rowsort label-4847
SELECT col0 / 36 * + + col1 + + 79 + 26 AS col0 FROM tab2 AS cor0
----
156
182
239

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 41 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT 51 - - MAX( + 8 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT 51 - - MAX ( + 8 ) FROM tab2
----
59

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 15 = NULL )
----

query I rowsort
SELECT - 87 * 3 - - col1 FROM tab1 AS cor0
----
-214
-247
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL + - col1 DIV - col1 FROM tab1 AS cor0 WHERE 71 * 77 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - col1 / - col1 FROM tab1 AS cor0 WHERE 71 * 77 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - COUNT( * ) * + 32 * - COUNT( * ) * 57 * + - COUNT( * ) FROM tab2
----
-49248

skipif mysql # not compatible
query I rowsort label-4855
SELECT - COUNT ( * ) * + 32 * - COUNT ( * ) * 57 * + - COUNT ( * ) FROM tab2
----
-49248

query II rowsort
SELECT - + col2, + col2 AS col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT + 88 AS col2, + COUNT( * ) * + MIN( - 53 ) col1 FROM tab0 AS cor0
----
88
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4857
SELECT + 88 AS col2, + COUNT ( * ) * + MIN ( - 53 ) col1 FROM tab0 AS cor0
----
88
-159

query II rowsort
SELECT DISTINCT + 54, + col0 FROM tab1 AS cor0
----
54
51
54
85
54
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + col0 + + - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - MIN( DISTINCT + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4860
SELECT - MIN ( DISTINCT + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

query II rowsort
SELECT DISTINCT + + col0, + col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - - MIN( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - + MAX( 47 ) * - COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - + MAX ( 47 ) * - COUNT ( * ) FROM tab1 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT col1 DIV - col0 col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4864
SELECT col1 / - col0 col1 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL COUNT( ALL - + 24 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4865
SELECT ALL COUNT ( ALL - + 24 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL - ( + 80 ) AS col2 FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + + MAX( ALL - 99 ) FROM tab2 WHERE 8 + + col0 BETWEEN NULL AND - 87 * - + col1 * - col1 + - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + + MAX ( ALL - 99 ) FROM tab2 WHERE 8 + + col0 BETWEEN NULL AND - 87 * - + col1 * - col1 + - + col1
----
NULL

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1, tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 11 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 11 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 72 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4872
SELECT DISTINCT + - 50 * + - ( + 82 ) + - + 92 + + COUNT( * ) * - + 34 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
3906
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT + - 50 * + - ( + 82 ) + - + 92 + + COUNT ( * ) * - + 34 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
3906
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT - col1 + - 87 DIV col0 + + 83 + + + col1 FROM tab2
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4873
SELECT - col1 + - 87 / col0 + + 83 + + + col1 FROM tab2
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - 10 * + - 66 * - CAST( NULL AS SIGNED ) + + - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - 10 * + - 66 * - CAST ( NULL AS INTEGER ) + + - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 + + col0 + + 50 + + 4 AS col1 FROM tab1
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 + - col1 <> - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 52 * ( col2 ) FROM tab2
----
1196
2080
3016

query I rowsort
SELECT DISTINCT - ( + 83 ) * - col0 * + - col2 AS col1 FROM tab2
----
-212480
-361050
-87814

query I rowsort
SELECT + 59 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - - CAST( MIN( ALL 33 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4880
SELECT - - CAST ( MIN ( ALL 33 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4881
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + COUNT( * ) * - - 50 AS col2 FROM tab1 AS cor0
----
NULL
150

skipif mysql # not compatible
query II rowsort label-4881
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + COUNT ( * ) * - - 50 AS col2 FROM tab1 AS cor0
----
NULL
150

query I rowsort
SELECT - ( + ( - 81 ) ) AS col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT - - ( - + 68 ) DIV + - 12 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4883
SELECT - - ( - + 68 ) / + - 12 FROM tab0 AS cor0
----
5
5
5

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col1, 34 FROM tab2 AS cor0
----
-1058
34
-2560
34
-4350
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 79 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 79 / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * + + col2 * 82 * - col2 * - col1 + col2 FROM tab0 AS cor0
----
1722010
689592413
79564617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT ALL 51 DIV + - MIN( DISTINCT 49 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 51 / + - MIN ( DISTINCT 49 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT MAX( - 2 ) col0 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT MAX ( - 2 ) col0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT - ( + col1 ) * + 9 AS col0 FROM tab2
----
-459
-603
-693

query III rowsort
SELECT * FROM tab2 WHERE NOT + 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 / 89 + + - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT + 91 * - - ( COUNT( * ) ) AS col0, 75 FROM tab1
----
273
75

skipif mysql # not compatible
query II rowsort label-4893
SELECT + 91 * - - ( COUNT ( * ) ) AS col0, 75 FROM tab1
----
273
75

query II rowsort
SELECT + - col2 AS col0, + col1 AS col0 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - 96 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 > - col1
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE 81 + col1 - - col0 >= ( - - col2 * - col1 * + - col1 * 84 + + - col2 )
----

query I rowsort
SELECT DISTINCT col2 + + ( - col0 ) FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab1 AS cor0 WHERE - col1 * col0 + + 13 < - + col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT COUNT( * ) / + COUNT( * ) + + + 63 - 95 + + CAST( NULL AS SIGNED ) * + 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT COUNT ( * ) / + COUNT ( * ) + + + 63 - 95 + + CAST ( NULL AS INTEGER ) * + 60 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT + CAST( + 68 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4901
SELECT + CAST ( + 68 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 + + 66 BETWEEN 85 AND NULL
----

query I rowsort
SELECT + - col1 + - - 99 FROM tab0 cor0
----
18
78
98

query I rowsort
SELECT + - 73 + - col0 + col2 FROM tab0 AS cor0
----
-150
-41
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 21 BETWEEN - + 20 AND col0
----

query I rowsort
SELECT DISTINCT + - ( - col2 ) - col1 * - col1 * 35 FROM tab2 AS cor0
----
157173
207555
91058

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4907
SELECT COUNT( * ) AS col2, 43 DIV + 72 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-4907
SELECT COUNT ( * ) AS col2, 43 / + 72 FROM tab1
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 26 * - col0 ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ( + COUNT( ALL + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4909
SELECT ( + COUNT ( ALL + col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT MAX( ALL - col2 ) - - - SUM( + col0 ) AS col1 FROM tab0
----
-209

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT MAX ( ALL - col2 ) - - - SUM ( + col0 ) AS col1 FROM tab0
----
-209

query I rowsort
SELECT ALL - 87 * 46 * - col1 AS col1 FROM tab2
----
204102
268134
308154

query I rowsort
SELECT + col0 * 4 * - col0 FROM tab1 AS cor0
----
-10404
-28900
-33124

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 96 / - + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - SUM( + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-4914
SELECT - SUM ( + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4915
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4916
SELECT DISTINCT - COUNT( * ), COUNT( * ) col1, - - COUNT( * ) AS col1 FROM tab0
----
-3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4916
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col1, - - COUNT ( * ) AS col1 FROM tab0
----
-3
3
3

query II rowsort
SELECT DISTINCT - - 12 * col0, col2 - - 61 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * col1 * - 94 IS NOT NULL
----

query II rowsort
SELECT + - col2 AS col1, - col0 * - col0 FROM tab0 cor0
----
-10
7569
-47
225
-99
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + COUNT( * ) * + - SUM( - + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-4919
SELECT + COUNT ( * ) * + - SUM ( - + col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT DISTINCT - + COUNT( * ), + 75 AS col2 FROM tab0 AS cor0
----
-3
75

skipif mysql # not compatible
query II rowsort label-4920
SELECT DISTINCT - + COUNT ( * ), + 75 AS col2 FROM tab0 AS cor0
----
-3
75

query II rowsort
SELECT + 61, 33 AS col2 FROM tab2 AS cor0
----
61
33
61
33
61
33

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT DISTINCT 60, COUNT( * ) AS col1 FROM tab0 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-4923
SELECT DISTINCT 60, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
60
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 3 * + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT - ( COUNT( * ) ) DIV - 35 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT - ( COUNT ( * ) ) / - 35 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 53 * - - col0 AS col0 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT + 70 DIV COUNT( * ) * + + COUNT( DISTINCT + + col0 ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 70 / COUNT ( * ) * + + COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT - ( - - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4930
SELECT - ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 * + - 13 FROM tab1
----
884
884
884

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 24 col0 FROM tab0
----
-105
-25
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT - - 44 FROM tab0 AS cor0 WHERE NULL > - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4935
SELECT - - 44 FROM tab0 AS cor0 WHERE NULL > - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + 76 + - MAX( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-4936
SELECT + 76 + - MAX ( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - MIN( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - MIN ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT col1 / - - col2 + + CAST( NULL AS SIGNED ) * - 41 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT col1 / - - col2 + + CAST ( NULL AS INTEGER ) * - 41 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4940
SELECT - CAST( CAST( + - col0 AS DECIMAL ) AS SIGNED ) - - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( CAST ( + - col0 AS REAL ) AS INTEGER ) - - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col1 + - - 12 IN ( col2 * + - col1, col0 * + 75, - col1 )
----

query I rowsort
SELECT + col1 + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND + col2 * - + 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - 74 FROM tab0 cor0
----
-53
-73
7

query I rowsort
SELECT ALL + col0 - - 24 AS col1 FROM tab0 AS cor0
----
111
121
39

query I rowsort
SELECT - - col1 + - col1 * + 61 AS col2 FROM tab0 AS cor0
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + + ( + col1 ) + - - col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT + col2 * - 17 + CAST( NULL AS SIGNED ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT + col2 * - 17 + CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + 35, 87 * 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4949
SELECT DISTINCT CAST( - 28 AS SIGNED ) AS col0, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT CAST ( - 28 AS INTEGER ) AS col0, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col2 ) * 27 < 82 / + ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4952
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - + SUM( ALL col0 ) FROM tab2 cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - + SUM ( ALL col0 ) FROM tab2 cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4955
SELECT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4955
SELECT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT MIN( + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4956
SELECT MIN ( + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + 90 * + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + ( + 15 ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4959
SELECT + ( + 15 ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL 34 * - 30 FROM tab0 AS cor0
----
-1020
-1020
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT - + 26 DIV + + SUM( - + col0 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT DISTINCT - + 26 / + + SUM ( - + col0 ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + - 76 AS col2 FROM tab2 AS cor0
----
-116
-134
-99

query I rowsort
SELECT - ( + 75 ) + + + 98 + col0 + col0 + - + col0 FROM tab1
----
108
114
74

query I rowsort
SELECT col1 + + 57 + col2 * - col2 + - + 49 * + + col0 FROM tab0
----
-14496
-2806
-4285

query I rowsort
SELECT ALL col1 / + + ( - 53 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 * - col1 * col1 / 23 + - 40 + col1 )
----

query II rowsort
SELECT DISTINCT + 87, - col0 AS col1 FROM tab2
----
87
-46
87
-64
87
-75

query I rowsort
SELECT ALL col0 * - 98 + + col2 FROM tab1
----
-4902
-8271
-8850

query III rowsort
SELECT * FROM tab2 WHERE + + 28 < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL 31 * - COUNT( * ) * + - 31 AS col2 FROM tab1
----
2883

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL 31 * - COUNT ( * ) * + - 31 AS col2 FROM tab1
----
2883

query I rowsort
SELECT col1 * + - col1 * ( col1 ) * + - 42 * + 7 AS col0 FROM tab1 AS cor0 WHERE NULL > + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4971
SELECT + 60 AS col0, + 34 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
60
-1360
60
-1972
60
-782

skipif mysql # not compatible
query II rowsort label-4971
SELECT + 60 AS col0, + 34 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
60
-1360
60
-1972
60
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col0 * + + col2 - + 27 AS col1 FROM tab0 cor0
----
-732
-897
-9630

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - 50 + + COUNT( * ) AS col2 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 50 + + COUNT ( * ) AS col2 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4975
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1, col0 )
----
0

query I rowsort
SELECT ALL + 33 + + col2 * + 66 FROM tab0 AS cor0
----
3135
6567
693

query I rowsort
SELECT ALL - col1 - - - 87 AS col0 FROM tab2 cor0
----
-138
-154
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4978
SELECT DISTINCT + ( - col0 ), + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> - 37
----

skipif mysql # not compatible
query II rowsort label-4978
SELECT DISTINCT + ( - col0 ), + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> - 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 16 AS col2, - 61 * - 69 col1 FROM tab1
----
16
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT ( - MAX( ALL + col0 ) ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT DISTINCT ( - MAX ( ALL + col0 ) ) col2 FROM tab0
----
-97

query II rowsort
SELECT + 61, 35 AS col1 FROM tab2
----
61
35
61
35
61
35

query II rowsort
SELECT 9 AS col0, col2 FROM tab1
----
9
59
9
68
9
96

query I rowsort
SELECT ( - col0 ) * + col1 * + + col1 * + - col2 AS col2 FROM tab2
----
15178240
19527150
2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT - MIN( ALL + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - MIN ( ALL + - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - - COUNT( * ) FROM tab0 WHERE NOT col0 * - - col2 * + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT col0 * - - col2 * + col2 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 col0, col1 AS col0 FROM tab1
----
21
14
21
47
21
5

query I rowsort
SELECT - ( - + col1 ) / 62 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL < NULL )
----

query II rowsort
SELECT col0, 7 AS col2 FROM tab1 AS cor0
----
51
7
85
7
91
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT - col0 DIV + 71 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT - col0 / + 71 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( 44, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL COUNT( ALL + - 67 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL COUNT ( ALL + - 67 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 9 FROM tab1 WHERE NOT col0 + - - col0 > NULL
----

query I rowsort
SELECT DISTINCT 8 * - - 29 - - + 13 FROM tab0 AS cor0
----
245

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4995
SELECT DISTINCT col1 + + CAST( + - col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT col1 + + CAST ( + - col1 AS REAL ) FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - 37 * + col0 * + col2 + + - col1, + col0 FROM tab2 AS cor0
----
160883
75
39095
46
94643
64

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - 25 * - col2 * + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 7 AS col1 FROM tab0 cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5000
SELECT ALL - COUNT( DISTINCT CAST( + col0 AS DECIMAL ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - COUNT ( DISTINCT CAST ( + col0 AS REAL ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT 73 * + CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab0
----
1620
170
5928

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 73 * + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab0
----
1620
170
5928

onlyif mysql # aggregate syntax: 
query II rowsort label-5002
SELECT DISTINCT - COUNT( * ) AS col0, 45 col2 FROM tab0
----
-3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5002
SELECT DISTINCT - COUNT ( * ) AS col0, 45 col2 FROM tab0
----
-3
45

query I rowsort
SELECT DISTINCT - col0 * - 10 AS col2 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL - 73 * + col0 + - col2 FROM tab2
----
-3381
-4712
-5533

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE 34 / + col2 + + 35 * CAST( NULL AS SIGNED ) * - - 44 * - ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE 34 / + col2 + + 35 * CAST ( NULL AS INTEGER ) * - - 44 * - ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT - 77, col0 FROM tab2 AS cor0
----
-77
46
-77
64
-77
75

query I rowsort
SELECT + 25 * + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT + 54 - - COUNT( * ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 54 - - COUNT ( * ) AS col2 FROM tab0
----
57

query I rowsort
SELECT ALL col2 * - 55 - ( - 15 ) + 68 AS col1 FROM tab0
----
-2502
-467
-5362

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT ALL + col2 DIV + + col2 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + col2 / + + col2 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col2 + + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5012
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN col1 AND - + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5012
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN col1 AND - + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5013
SELECT DISTINCT - - col2 + - 15 * + - CAST( + 68 AS SIGNED ) AS col0, 77 FROM tab2 AS cor0
----
1043
77
1060
77
1078
77

skipif mysql # not compatible
query II rowsort label-5013
SELECT DISTINCT - - col2 + - 15 * + - CAST ( + 68 AS INTEGER ) AS col0, 77 FROM tab2 AS cor0
----
1043
77
1060
77
1078
77

query I rowsort
SELECT DISTINCT - col1 + - 96 AS col2 FROM tab1 AS cor0
----
-101
-110
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT DISTINCT - COUNT( * ), + 57 AS col2 FROM tab2 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-5015
SELECT DISTINCT - COUNT ( * ), + 57 AS col2 FROM tab2 AS cor0
----
-3
57

query I rowsort
SELECT ALL + - col2 * - 79 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT DISTINCT 93 * col2 * 79 * + 91 * + 1 AS col2 FROM tab0
----
31423119
66189123
6685770

query I rowsort
SELECT ALL 32 * + - ( + col0 ) AS col2 FROM tab1
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col0 + + + ( col2 ) * 74 <> 4
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT - + col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT - + col0 / - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT - 81 DIV + col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - 81 / + col2 FROM tab0 AS cor0
----
-1
-8
0

query II rowsort
SELECT DISTINCT col0, col1 * - 16 FROM tab0
----
15
-1296
87
-336
97
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT col2 * + ( - col2 ) + - 99 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-199
-2308
-9801

skipif mysql # not compatible
query I rowsort label-5024
SELECT col2 * + ( - col2 ) + - 99 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
-199
-2308
-9801

query I rowsort
SELECT + - 82 * - col0 * + 18 + + - col2 AS col0 FROM tab1 AS cor0
----
125401
134248
75180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col2 * - ( + col0 ) + - + col2 AS col2 FROM tab2 cor0
----
-163880
-326308
-48691

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + COUNT( - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5028
SELECT + COUNT ( - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + col1 + + col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT + 66 + - + col1 FROM tab1 AS cor0
----
19
52
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + + - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ( + 68 ) + + SUM( ALL - col1 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5032
SELECT ( + 68 ) + + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT DISTINCT MAX( ALL + - col2 ) * - 61 * + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT MAX ( ALL + - col2 ) * - 61 * + + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + 24 + + ( - 57 ) * + - 21 + - col1 FROM tab0
----
-828
1172
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT - CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5035
SELECT - CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 + + 26 FROM tab2 AS cor0
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT - COUNT( DISTINCT + + 23 ) AS col1 FROM tab2 WHERE NOT - 96 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - COUNT ( DISTINCT + + 23 ) AS col1 FROM tab2 WHERE NOT - 96 IS NULL
----
-1

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT - ( - 75 ) - - 13 < - col0
----
1
21
81

query I rowsort
SELECT DISTINCT + 5 + + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 62 AND NULL
----

query I rowsort
SELECT - col0 * + - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - 57 * + COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5041
SELECT - 57 * + COUNT ( * ) FROM tab2 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT col1 * - 20 - - 25 * + col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 27 + + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL + + CAST( + col0 AS SIGNED ) FROM tab2 WHERE NULL IN ( - - col0, - col1 * 99 )
----

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NULL IN ( - - col0, - col1 * 99 )
----

query I rowsort
SELECT DISTINCT + col1 * - 5 AS col1 FROM tab0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT 98 * - COUNT( ALL - ( - - col1 ) ) AS col2 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-5049
SELECT 98 * - COUNT ( ALL - ( - - col1 ) ) AS col2 FROM tab0
----
-294

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + col2 ) BETWEEN NULL AND + 39 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - + COUNT( - 36 ) * - 62 AS col1 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - + COUNT ( - 36 ) * - 62 AS col1 FROM tab0 AS cor0
----
186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 43, col0 AS col0 FROM tab0 AS cor0
----
-43
15
-43
87
-43
97

query II rowsort
SELECT ALL - - col2, - col1 * - 33 * - col2 AS col0 FROM tab2 cor0
----
23
-38709
40
-101640
58
-128238

query I rowsort
SELECT ALL - + 23 AS col2 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5056
SELECT CAST( NULL AS DECIMAL ) + - ( - + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT CAST ( NULL AS REAL ) + - ( - + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( - ( - 81 ) ) * + 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5057
SELECT COUNT ( - ( - 81 ) ) * + 36 FROM tab2
----
108

query I rowsort
SELECT DISTINCT - 80 + + 44 AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL col1 + + col1 - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
3

query I rowsort
SELECT - + 76 - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-174
-42
-65

query I rowsort
SELECT + ( - + col0 ) + + + col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5063
SELECT 81 + col0 * + + 72, CAST( NULL AS DECIMAL ) + + 63 AS col1 FROM tab2
----
3393
NULL
4689
NULL
5481
NULL

skipif mysql # not compatible
query II rowsort label-5063
SELECT 81 + col0 * + + 72, CAST ( NULL AS REAL ) + + 63 AS col1 FROM tab2
----
3393
NULL
4689
NULL
5481
NULL

query I rowsort
SELECT 89 + - 65 FROM tab0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 97 NOT BETWEEN - - 34 AND NULL
----

query I rowsort
SELECT - col2 * - col2 * - + col0 + col1 * + col0 AS col2 FROM tab2
----
-21988
-247275
-97472

query I rowsort
SELECT - col2 + + + 56 AS col1 FROM tab2
----
-2
16
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT col0 - 55 FROM tab1 AS cor0 WHERE col0 + - col2 - 18 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5068
SELECT col0 - 55 FROM tab1 AS cor0 WHERE col0 + - col2 - 18 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * - + col1 * col0 AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + COUNT( * ) * + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + COUNT ( * ) * + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
630

query I rowsort
SELECT 38 * + + col0 FROM tab1 AS cor0 WHERE NOT col1 <> ( + col1 / + 5 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 46 col2 FROM tab1 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 33 col0 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT 54 DIV - COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT 54 / - COUNT ( * ) AS col0 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 WHERE - ( 54 ) * 78 >= - + col2 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5076
SELECT DISTINCT * FROM tab1 WHERE - ( 54 ) * 78 >= - + col2 * + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5078
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * col2 + + 70 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5078
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * col2 + + 70 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 cor0 WHERE NOT col0 > col0
----
-15
-87
-97

query I rowsort
SELECT - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL + col2 + ( - ( + + 74 ) ) FROM tab0
----
-27
-64
25

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 72 FROM tab2
----
-5
21
5

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + 47 + - 61 * + - MAX( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3064

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 47 + - 61 * + - MAX ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3064

query I rowsort
SELECT - + 67 + 27 AS col1 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 8 + - SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-5086
SELECT 8 + - SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - 24 col1 FROM tab0 AS cor0 WHERE NOT 92 NOT IN ( - col1 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5087
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - 24 col1 FROM tab0 AS cor0 WHERE NOT 92 NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT DISTINCT - 94 + - col2 FROM tab1 AS cor0
----
-153
-162
-190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT ALL * FROM tab1 cor0 WHERE + CAST( ( + + 93 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5089
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( ( + + 93 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT COUNT( + col1 ) * + 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-5090
SELECT COUNT ( + col1 ) * + 87 FROM tab2
----
261

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= + col1 * + col1 + 96
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 90 + + + col0 * - 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - 61 / - 64 - + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 61 / - 64 - + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 98 - + col2 FROM tab2
----
40
58
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < - 45 / - 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL - ( - 97 ) DIV col2 + + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * 35 * - + col1 + - + col1 + - col0 IS NOT NULL
----
27
42
59

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - ( - 97 ) / col2 + + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * 35 * - + col1 + - + col1 + - col0 IS NOT NULL
----
27
42
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 11 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT + 90 * - 17 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + + ( + + SUM( DISTINCT col2 ) ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT DISTINCT + + ( + + SUM ( DISTINCT col2 ) ) col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL - + col2, col1 / + col0 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + - 22 AS col2, col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

query I rowsort
SELECT DISTINCT + - 28 * col1 FROM tab1 AS cor0
----
-1316
-140
-392

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 81 * - 64 FROM tab0 cor0
----
5184
5184
5184

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 64 > NULL
----

query II rowsort
SELECT + ( + col1 ) AS col2, + 58 FROM tab1
----
14
58
47
58
5
58

query I rowsort
SELECT DISTINCT + col2 * col2 + + - col0 AS col2 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT - ( + 15 ) * - 11 * - + COUNT( * ) col0 FROM tab1
----
-495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT DISTINCT - ( + 15 ) * - 11 * - + COUNT ( * ) col0 FROM tab1
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 81 ) IN ( - CAST( + 18 AS SIGNED ), + col2 * - col0 / col1 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 81 ) IN ( - CAST ( + 18 AS INTEGER ), + col2 * - col0 / col1 * - + col1 )
----

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 16 * + - 21 AND - col0
----

query I rowsort
SELECT ALL + ( - + 1 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + COUNT( * ) * - 87 * - + COUNT( DISTINCT + 24 ) * ( - - 37 ) FROM tab1
----
9657

skipif mysql # not compatible
query I rowsort label-5113
SELECT + COUNT ( * ) * - 87 * - + COUNT ( DISTINCT + 24 ) * ( - - 37 ) FROM tab1
----
9657

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
210
3807
99

query I rowsort
SELECT DISTINCT + - 88 + col0 AS col1 FROM tab0 cor0
----
-1
-73
9

query I rowsort
SELECT ALL - 22 - - 3 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - 42 + 29 + + col0 FROM tab1
----
38
72
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT DISTINCT COUNT( * ) * + 30, - COUNT( * ) AS col0 FROM tab0
----
90
-3

skipif mysql # not compatible
query II rowsort label-5120
SELECT DISTINCT COUNT ( * ) * + 30, - COUNT ( * ) AS col0 FROM tab0
----
90
-3

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE 53 BETWEEN NULL AND col2 * - col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5122
SELECT MAX( - 7 ) * + MIN( - 18 ) DIV + COUNT( * ) col2 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5122
SELECT MAX ( - 7 ) * + MIN ( - 18 ) / + COUNT ( * ) col2 FROM tab2
----
42

query I rowsort
SELECT + + ( - 33 ) FROM tab0 AS cor0
----
-33
-33
-33

query II rowsort
SELECT + 36, col1 AS col1 FROM tab1 AS cor0
----
36
14
36
47
36
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT - 0 AS col1, ( + - 21 ) * 89 + - CAST( NULL AS SIGNED ) - - col0 - - - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5125
SELECT - 0 AS col1, ( + - 21 ) * 89 + - CAST ( NULL AS INTEGER ) - - col0 - - - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + col2 * + 37
----

query I rowsort
SELECT - 15 * 24 AS col0 FROM tab1 AS cor0
----
-360
-360
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 34 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 34 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5130
SELECT + + 63 * + + CAST( + CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1 cor0
----
189

skipif mysql # not compatible
query I rowsort label-5130
SELECT + + 63 * + + CAST ( + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col1 FROM tab1 cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * + col0 + - col2 col1 FROM tab0
----
4166
4557
673

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 38 col1 FROM tab0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + COUNT( ALL 44 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( ALL 44 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - SUM( 98 ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - SUM ( 98 ) FROM tab1
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 7 DIV ( - 31 ) + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5136
SELECT 7 / ( - 31 ) + col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT 29 * col2 AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT ( 20 ) * 58 FROM tab1
----
1160
1160
1160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 94 * + 67 ) = NULL
----

query I rowsort
SELECT col1 + 23 * col0 FROM tab0
----
2022
2232
426

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 71 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT SUM( 66 ) * - 56 FROM tab2 WHERE ( - 67 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT SUM ( 66 ) * - 56 FROM tab2 WHERE ( - 67 ) >= NULL
----
NULL

query I rowsort
SELECT + 68 * 53 FROM tab0
----
3604
3604
3604

query I rowsort
SELECT DISTINCT + 64 + 52 * - 62 AS col0 FROM tab0
----
-3160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * col1 + + 96 * col1 col2 FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 / 1 AND ( - col1 )
----

query I rowsort
SELECT - ( - ( col2 ) ) + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5148
SELECT + ( 62 ) * CAST( NULL AS DECIMAL ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT + ( 62 ) * CAST ( NULL AS REAL ) + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 96 ) IN ( 99 * + 21 + 85 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5150
SELECT CAST( 64 AS DECIMAL ) AS col2 FROM tab1 WHERE ( col2 ) IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5150
SELECT CAST ( 64 AS REAL ) AS col2 FROM tab1 WHERE ( col2 ) IN ( CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 1 ) - - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( 84 ) * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT ALL - col2 DIV 73 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - col2 / 73 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 72 + - col2 AS col0 FROM tab2
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT COUNT( + 58 ) FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT COUNT ( + 58 ) FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
3

query I rowsort
SELECT - col2 * + col0 - + col1 * - 71 FROM tab1
----
-2851
-3902
-4660

query III rowsort
SELECT * FROM tab2 WHERE - 40 + 92 IN ( - 24 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - ( - col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5161
SELECT 71 * CAST( NULL AS DECIMAL ) + - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5161
SELECT 71 * CAST ( NULL AS REAL ) + - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5162
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT - + CAST( - AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5163
SELECT - + CAST ( - AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST( - 69 AS SIGNED ) + col0 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT CAST ( - 69 AS INTEGER ) + col0 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + 36 ) * col2 FROM tab2
----
1440
2088
828

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT + 23 DIV - col2 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 23 / - col2 AS col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab1 WHERE col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 55 * + col2 FROM tab0 AS cor0
----
2570
463
5348

query I rowsort
SELECT ALL + col0 * - col1 + 59 AS col0 FROM tab2 AS cor0 WHERE 38 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT + 31 + - - COUNT( * ) col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT DISTINCT + 31 + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
34

query I rowsort
SELECT - col0 * + + 85 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT - col2 - + 63 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT - col2 - + 63 IS NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT + 64 DIV COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 64 / COUNT ( * ) AS col0 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT SUM( 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
459

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT SUM ( 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
459

query I rowsort
SELECT ALL col0 * + + 93 * - - ( col1 ) FROM tab0
----
112995
169911
9021

query I rowsort
SELECT DISTINCT + 30 + - - col1 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT - - col2 + col1 FROM tab0 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL < col0 * - col2 + 84 * col1
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < col0 * - col2 + 84 * col1
----
0

query I rowsort
SELECT + 65 + - + ( - + col2 ) * col1 FROM tab1 AS cor0
----
1409
3261
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + col0 * 74 AS col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( - 81 )
----

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + col0 * 74 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( - 81 )
----

query I rowsort
SELECT ALL 80 * col2 FROM tab1 AS cor0 WHERE ( - 12 ) <= ( - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( - + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( - + col2 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / - col0 * col2 BETWEEN col2 * - col1 AND 63 * 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT - 77 + COUNT( * ) FROM tab2 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-5190
SELECT - 77 + COUNT ( * ) FROM tab2 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----
-77

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * - 32 + 18 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 48 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 cor0 WHERE ( NOT + col0 <= NULL )
----

query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + 80 * + + col0 * col0 - - col0 AND 94
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL + col0 DIV + 64 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + col0 / + 64 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5198
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( CAST( 76 AS DECIMAL ) ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-5198
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( CAST ( 76 AS REAL ) ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT - MAX( + + 51 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - MAX ( + + 51 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 0 + col2 + col2 - 93 AS col1 FROM tab1 AS cor0
----
25
43
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT DISTINCT + CAST( + - 15 AS SIGNED ) + - + 22 AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + CAST ( + - 15 AS INTEGER ) + - + 22 AS col0 FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - COUNT( * ) + + 92 FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-5203
SELECT - COUNT ( * ) + + 92 FROM tab0 cor0
----
89

query I rowsort
SELECT DISTINCT - 23 + - + col0 * col2 FROM tab2 AS cor0
----
-1081
-2583
-4373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT DISTINCT - 94 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - 94 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5206
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5206
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, CAST ( - - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT - - col2 * + 21 + 74 DIV 96 AS col1 FROM tab1 AS cor0
----
1239
1428
2016

skipif mysql # not compatible
query I rowsort label-5207
SELECT - - col2 * + 21 + 74 / 96 AS col1 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT + - col2 + col1 + - 26 AS col2 FROM tab0 AS cor0
----
-124
-15
8

query I rowsort
SELECT + ( - ( + col2 ) ) + col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NOT - col0 IS NULL )
----
-59
-68
-96

query I rowsort
SELECT + 32 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT DISTINCT CAST( + 1 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT CAST ( + 1 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT col2 FROM tab2 WHERE ( + + CAST( NULL AS SIGNED ) * - + col0 * + col2 * + + col1 - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5214
SELECT col2 FROM tab2 WHERE ( + + CAST ( NULL AS INTEGER ) * - + col0 * + col2 * + + col1 - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + col1 col1 FROM tab2 WHERE ( - col1 + col1 + + col1 * - - ( col1 ) ) IS NULL
----

query II rowsort
SELECT ALL col1 + - col2, - col0 AS col0 FROM tab1
----
-21
-91
-54
-85
-82
-51

query II rowsort
SELECT ALL col0 AS col1, 40 FROM tab1 WHERE - + col1 IS NOT NULL
----
51
40
85
40
91
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * ( col1 ) col2 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL - col0 / + col0 - + CAST( NULL AS SIGNED ) + 56 + - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - col0 / + col0 - + CAST ( NULL AS INTEGER ) + 56 + - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + 4 + + 87 AS col0 FROM tab1 AS cor0
----
36
69
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 40 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5222
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( + CAST( + + 28 AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-5222
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( + CAST ( + + 28 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT + 17 DIV + - 28 + + + 26 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 17 / + - 28 + + + 26 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 67
----

query II rowsort
SELECT - - 8 + - - ( col1 ) AS col0, 38 / + ( 33 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT - 58 > col2 * col0 + col1 / col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - col1 + + + col1 FROM tab2 WHERE NULL IN ( col1, - col2 * - 33 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + + 3 BETWEEN NULL AND - col2 * + + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 27 ) FROM tab1
----
27
27
27

query I rowsort
SELECT ALL - col0 + + col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 69 AS col2 FROM tab2
----
3174
4416
5175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + - 57 AND - + ( - + col1 )
----

query I rowsort
SELECT ALL - col0 * 31 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT - col1 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + ( MAX( DISTINCT - + col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + ( MAX ( DISTINCT - + col2 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col2 * + - 97 AS col2 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL col2 + + - 1 + - col0 FROM tab2
----
-18
-24
-25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 <> + - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col1 + col2 AS col2, 65 * 87 + - 61 AS col0 FROM tab0 AS cor0
----
100
5594
128
5594
31
5594

query I rowsort
SELECT - 8 FROM tab2 cor0 WHERE 7 * col1 <= - col2 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT ALL 19 DIV + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 19 / + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + MIN( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - + col1 ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + MIN ( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - + col1 ) AND col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT - 87 DIV + + ( - col1 ) col1 FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT DISTINCT - 87 / + + ( - col1 ) col1 FROM tab1 AS cor0
----
1
17
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( CAST( + - 91 AS SIGNED ) * - 36 * + + ( - 94 ) + 68 * - + col2 + 43 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( + - 91 AS INTEGER ) * - 36 * + + ( - 94 ) + 68 * - + col2 + 43 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - + MIN( ALL col0 ) * 70 FROM tab2 AS cor0
----
-3220

skipif mysql # not compatible
query I rowsort label-5248
SELECT - + MIN ( ALL col0 ) * 70 FROM tab2 AS cor0
----
-3220

query I rowsort
SELECT + 83 + - col0 AS col1 FROM tab1
----
-2
-8
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL + MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + MAX ( + - col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT col2 DIV - col2 + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5251
SELECT col2 / - col2 + + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL - col1 + + + col0 FROM tab0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL ( 2 ) * - 34 * - + COUNT( * ) * SUM( - col1 ) - COUNT( * ) FROM tab1 AS cor0
----
-13467

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL ( 2 ) * - 34 * - + COUNT ( * ) * SUM ( - col1 ) - COUNT ( * ) FROM tab1 AS cor0
----
-13467

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT MAX( DISTINCT + 2 ) col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT MAX ( DISTINCT + 2 ) col2 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5257
SELECT DISTINCT + col2, + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5257
SELECT DISTINCT + col2, + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT + ( - 41 ) * + col2 FROM tab2 cor0
----
-1640
-2378
-943

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NULL = col0 / - 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT 82 * col1 AS col1 FROM tab2 WHERE 84 BETWEEN + - col0 * ( col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - 25
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 69 - + col1 - + - col0 ) IN ( - 3 * + + 32, 20 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 53 = - col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT col2 FROM tab0 WHERE NOT NULL < - + CAST( 12 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5265
SELECT col2 FROM tab0 WHERE NOT NULL < - + CAST ( 12 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 col0 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT - COUNT( * ) * + - COUNT( * ) DIV + - MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT - COUNT ( * ) * + - COUNT ( * ) / + - MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 + - + col2 FROM tab2 WHERE NULL = col2
----

query I rowsort
SELECT - + col0 + 38 + + + 46 * + - 85 FROM tab2 AS cor0
----
-3918
-3936
-3947

onlyif mysql # DIV for integer division: 
query II rowsort label-5270
SELECT 70 DIV col0, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-5270
SELECT 70 / col0, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
59
0
68
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT DISTINCT 96 DIV 65 * - col0 + 88 AS col2 FROM tab1 AS cor0
----
-3
3
37

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT 96 / 65 * - col0 + 88 AS col2 FROM tab1 AS cor0
----
-3
3
37

query I rowsort
SELECT ALL + 69 + col2 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 3 + - - 97 + col2 * - 94 col2 FROM tab0 AS cor0
----
-4318
-840
-9206

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT - ( + 1 ) + col2 + col1 DIV + 34 + + col2 AS col2 FROM tab2 AS cor0
----
116
46
81

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - ( + 1 ) + col2 + col1 / + 34 + + col2 AS col2 FROM tab2 AS cor0
----
116
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT SUM( + + 37 ) col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT SUM ( + + 37 ) col1 FROM tab1 AS cor0
----
111

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( - col1, 98 / + col2 * 17 + - + 75 + + col1, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT 15 DIV + MIN( DISTINCT + + 38 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT 15 / + MIN ( DISTINCT + + 38 ) FROM tab0
----
0

query I rowsort
SELECT + col1 - - col2 + - 96 FROM tab2 AS cor0
----
-22
21
29

query I rowsort
SELECT - - col0 - - col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - COUNT( * ) - + 42 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - COUNT ( * ) - + 42 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT - COUNT( * ) DIV - 97 FROM tab2 WHERE NOT ( NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT - COUNT ( * ) / - 97 FROM tab2 WHERE NOT ( NULL < NULL )
----
0

query I rowsort
SELECT ALL + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - 68 DIV COUNT( * ) * - 92 FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 68 / COUNT ( * ) * - 92 FROM tab2 AS cor0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - ( - - ( CAST( 10 AS SIGNED ) ) ) BETWEEN + - col1 AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - ( - - ( CAST ( 10 AS INTEGER ) ) ) BETWEEN + - col1 AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 38 FROM tab1 cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 col1, col1 AS col1 FROM tab0
----
9
1
9
21
9
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + + CAST( NULL AS SIGNED ) - - + 48 FROM tab0 WHERE NOT - col2 + 87 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + + CAST ( NULL AS INTEGER ) - - + 48 FROM tab0 WHERE NOT - col2 + 87 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 14 * 36 FROM tab2
----
504
504
504

query II rowsort
SELECT DISTINCT + col0 * col0 AS col2, - col1 FROM tab0
----
225
-81
7569
-21
9409
-1

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab0 WHERE NULL IS NULL
----
46
46
46

query I rowsort
SELECT + + 52 * + + col1 + - 8 + - + 82 * ( + + 34 ) FROM tab0 WHERE NOT + ( + col0 ) / - col2 BETWEEN + 16 + - ( + + 7 ) AND NULL
----
-1704
-2744
1416

query III rowsort
SELECT DISTINCT col0 AS col0, + col0 AS col1, + + col2 FROM tab2 AS cor0
----
9 values hashing to 798e672c4b70c465069b48010c06bdc3

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT COUNT( * ) + - MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT COUNT ( * ) + - MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT - col0 * - 44 * + col1 FROM tab1 cor0
----
18700
188188
31416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + 68 / + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 68 / + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 11 col2 FROM tab0 AS cor0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - - COUNT( * ) + + + 36 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - - COUNT ( * ) + + + 36 FROM tab2 AS cor0
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT COUNT( * ) * - 15 * + SUM( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE ( 52 + - col2 ) IS NOT NULL
----
1800

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( * ) * - 15 * + SUM ( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE ( 52 + - col2 ) IS NOT NULL
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT - ( CAST( + 74 AS SIGNED ) ) * - - col2 + - - col0 + - - col1 AS col2 FROM tab1 cor0
----
-4276
-4894
-7039

skipif mysql # not compatible
query I rowsort label-5304
SELECT - ( CAST ( + 74 AS INTEGER ) ) * - - col2 + - - col0 + - - col1 AS col2 FROM tab1 cor0
----
-4276
-4894
-7039

query I rowsort
SELECT 98 + - col2 AS col0 FROM tab0
----
-1
51
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT + col1 * 12 DIV - - col2 + col1 + - 23 FROM tab1
----
-17
-8
32

skipif mysql # not compatible
query I rowsort label-5306
SELECT + col1 * 12 / - - col2 + col1 + - 23 FROM tab1
----
-17
-8
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5307
SELECT DISTINCT COUNT( + + CAST( ( + col2 ) AS DECIMAL ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT COUNT ( + + CAST ( ( + col2 ) AS REAL ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL - col2 + - 58 + + - col0 + + col1 * col1 * + + col0 AS col0, col1 FROM tab2
----
119519
51
336484
67
379294
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL 44 * - + COUNT( * ) AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL 44 * - + COUNT ( * ) AS col1 FROM tab0
----
-132

query I rowsort
SELECT 49 FROM tab1 WHERE + + col1 IS NOT NULL
----
49
49
49

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE col1 NOT BETWEEN NULL AND + 32
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT - 27 DIV - + 96 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - 27 / - + 96 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 3 ) * + col0 * + col2 FROM tab1 AS cor0
----
14688
15045
18564

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT ( - + COUNT( * ) ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5315
SELECT ( - + COUNT ( * ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-3
-3

query I rowsort
SELECT ALL + + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 37 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5319
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * CAST( - col1 AS SIGNED ) * - + 37 IN ( - col1 * col2 * 6, 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5319
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * CAST ( - col1 AS INTEGER ) * - + 37 IN ( - col1 * col2 * 6, 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - MIN( ALL + 92 ) AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - MIN ( ALL + 92 ) AS col0 FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT + col1 DIV - ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5322
SELECT + col1 / - ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT 8 DIV - 80 * + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT 8 / - 80 * + COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + 24 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 70 FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + COUNT( * ) * 66 + + 94 AS col2 FROM tab0 cor0
----
292

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + COUNT ( * ) * 66 + + 94 AS col2 FROM tab0 cor0
----
292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT - + 43 * col2 * CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-144652
-22747
-68800

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - + 43 * col2 * CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-144652
-22747
-68800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5328
SELECT + 37 DIV - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5328
SELECT + 37 / - COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT MIN( ALL + 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5329
SELECT MIN ( ALL + 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT col2 + + 36 DIV 36 DIV 7 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT col2 + + 36 / 36 / 7 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT ALL - col2 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL - col2 / 83 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - + SUM( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT - + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 BETWEEN + - 49 * - 42 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 45 - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 93 AS col2 FROM tab2 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + MIN( DISTINCT - col1 ) * 55 AS col1 FROM tab1 AS cor0
----
-2585

skipif mysql # not compatible
query I rowsort label-5336
SELECT + MIN ( DISTINCT - col1 ) * 55 AS col1 FROM tab1 AS cor0
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - COUNT( * ) + + ( + + 48 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5337
SELECT - COUNT ( * ) + + ( + + 48 ) FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 22 + - 70 * + col1 * - col0 AS col2, col0 * 22 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL CAST( NULL AS SIGNED ) * + + ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + MIN( + 13 ) * COUNT( * ) / + + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + MIN ( + 13 ) * COUNT ( * ) / + + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 71 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - - 84 * - 19 + + - MAX( ALL + 15 ) + COUNT( * ) FROM tab0 AS cor0
----
-1608

skipif mysql # not compatible
query I rowsort label-5342
SELECT - - 84 * - 19 + + - MAX ( ALL + 15 ) + COUNT ( * ) FROM tab0 AS cor0
----
-1608

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT + col1 + + - 88 DIV ( col0 ) + - + col0 + + - col2 FROM tab2 AS cor0
----
-19
-28
-67

skipif mysql # not compatible
query I rowsort label-5343
SELECT + col1 + + - 88 / ( col0 ) + - + col0 + + - col2 FROM tab2 AS cor0
----
-19
-28
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 29 * 25 <= - col0 / 29 + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL - 0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - 0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 65 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL - 91 - + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-44
-81
8

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - 91 - + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-44
-81
8

query II rowsort
SELECT col1 * + - 62, + col1 AS col1 FROM tab0
----
-1302
21
-5022
81
-62
1

query I rowsort
SELECT ALL 67 - - 51 FROM tab0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - SUM( ALL + 26 ) * - 66 FROM tab2 WHERE col0 IS NOT NULL
----
5148

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - SUM ( ALL + 26 ) * - 66 FROM tab2 WHERE col0 IS NOT NULL
----
5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 75 FROM tab0 WHERE NULL IS NULL
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL ( - COUNT( DISTINCT col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL ( - COUNT ( DISTINCT col1 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL - - MAX( ALL + ( ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - - MAX ( ALL + ( ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL + SUM( - 40 ) * + 60 FROM tab2 AS cor0
----
-7200

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL + SUM ( - 40 ) * + 60 FROM tab2 AS cor0
----
-7200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 89 + + col1 * - col2 > NULL
----

query I rowsort
SELECT DISTINCT + - 44 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-44

query II rowsort
SELECT + col0 AS col1, col0 * 98 * + 58 AS col1 FROM tab0
----
15
85260
87
494508
97
551348

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT MAX( 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5360
SELECT MAX ( 95 ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + - col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT 33 * + 20 AS col1 FROM tab1 AS cor0
----
660

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) >= - 18
----
91
47
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + col0 + + - col2 / col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL ( + 4 ) FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT - ( + - col2 ) * + 32 FROM tab0
----
1504
3168
320

query I rowsort
SELECT ALL 26 + - + ( + 30 ) FROM tab0
----
-4
-4
-4

query II rowsort
SELECT - 99, col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - SUM( ALL + - ( + 39 ) ) * - 65 + COUNT( * ) AS col0 FROM tab1
----
-7602

skipif mysql # not compatible
query I rowsort label-5371
SELECT - SUM ( ALL + - ( + 39 ) ) * - 65 + COUNT ( * ) AS col0 FROM tab1
----
-7602

query I rowsort
SELECT ALL col0 + + - col2 + + 45 FROM tab1
----
0
68
71

query I rowsort
SELECT ALL col0 * - col0 + - 72 AS col1 FROM tab2 cor0
----
-2188
-4168
-5697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col0 - + + col0
----

query I rowsort
SELECT ALL + col0 + 36 FROM tab2 AS cor0
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5377
SELECT CAST( - + col1 AS SIGNED ) DIV + col1, col2 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-5377
SELECT CAST ( - + col1 AS INTEGER ) / + col1, col2 FROM tab0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT DISTINCT - 82 + - col2 FROM tab1 cor0
----
-141
-150
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT SUM( ALL - col1 ) + + 42 AS col0 FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5379
SELECT SUM ( ALL - col1 ) + + 42 AS col0 FROM tab1 cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * - + ( - 7 ) col2 FROM tab0
----
658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT + - MAX( col0 ) DIV ( - - 99 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT + - MAX ( col0 ) / ( - - 99 ) AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT 59 AS col0, + col1 * col1 FROM tab1 AS cor0
----
59
196
59
2209
59
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT DISTINCT 62 AS col2, - 37 DIV - + 65 + 25 AS col1 FROM tab2 AS cor0
----
62
25

skipif mysql # not compatible
query II rowsort label-5384
SELECT DISTINCT 62 AS col2, - 37 / - + 65 + 25 AS col1 FROM tab2 AS cor0
----
62
25

query II rowsort
SELECT - col0, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 55 * - col2 * - col2 col1 FROM tab0
----
-115500
-539055
-9841095

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT - - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT - - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT + + COUNT( * ) + + COUNT( ( - - 27 ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + + COUNT ( * ) + + COUNT ( ( - - 27 ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 80 AS col2 FROM tab2
----
126
144
155

query III rowsort
SELECT ALL * FROM tab1 WHERE + 58 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT CAST( + ( - COUNT( * ) ) AS SIGNED ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5393
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER ) col2 FROM tab0
----
-3

query I rowsort
SELECT ALL 67 + 47 AS col1 FROM tab2 AS cor0
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 52 ) * - col1 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 34 < - - ( - 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL + MAX( DISTINCT + 20 ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + MAX ( DISTINCT + 20 ) AS col0 FROM tab2
----
20

query I rowsort
SELECT DISTINCT col1 * col2 * + + col2 AS col0 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT DISTINCT ( col2 ) + 91 AS col0 FROM tab0 AS cor0
----
101
138
190

query I rowsort
SELECT ALL - 25 + - + 68 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - ( - 25 ) - 83 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT DISTINCT 7 DIV 44 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT 7 / 44 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - COUNT( * ) * - + 98 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-5403
SELECT - COUNT ( * ) * - + 98 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + MIN( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5404
SELECT + MIN ( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5405
SELECT ALL - CAST( NULL AS SIGNED ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
query II rowsort label-5405
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0
----
NULL
96
NULL
96
NULL
96

query II rowsort
SELECT ALL + 33 AS col0, - 74 FROM tab2
----
33
-74
33
-74
33
-74

query II rowsort
SELECT + 23, - col1 AS col1 FROM tab0 WHERE NOT + 6 <= - - col1
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - col0 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT col2 * 41 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col2 + - 89 FROM tab1 AS cor0
----
-21
-30
7

query II rowsort
SELECT ALL + 28 + + - 57 - + 54 AS col1, col2 AS col0 FROM tab0
----
-83
10
-83
47
-83
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT - ( + col1 ) DIV + col1 + - + col0 + col1 AS col1 FROM tab2
----
-9
12
4

skipif mysql # not compatible
query I rowsort label-5415
SELECT - ( + col1 ) / + col1 + - + col0 + col1 AS col1 FROM tab2
----
-9
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL COUNT( ALL - + 88 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL COUNT ( ALL - + 88 ) FROM tab0
----
3

query I rowsort
SELECT - col2 FROM tab0 WHERE ( col1 ) = - col0 / + - col0
----
-99

query I rowsort
SELECT + ( 81 ) + - 41 FROM tab1
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST( col0 AS SIGNED ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST ( col0 AS INTEGER ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - + + 16 AS col2 FROM tab1 AS cor0
----
-11
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT - SUM( col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT DISTINCT - SUM ( col1 ) col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL col0 * - + col0 - + col2 FROM tab0
----
-272
-7579
-9508

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT BETWEEN col2 AND - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 65 <> - + col2 * - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT col2 - - CAST( - - 61 AS SIGNED ) FROM tab2
----
101
119
84

skipif mysql # not compatible
query I rowsort label-5427
SELECT col2 - - CAST ( - - 61 AS INTEGER ) FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COUNT( + 83 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( + 83 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + - 19 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - 92 + 98 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT ALL - - 21 DIV - - 13 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - - 21 / - - 13 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - COUNT( + ( - - 86 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - COUNT ( + ( - - 86 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - 12 * - + col1 >= - - col0 * + col2
----
-1

query I rowsort
SELECT + + 84 * - 21 FROM tab0 cor0
----
-1764
-1764
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT ALL COUNT( * ) AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5436
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT CAST( 50 AS SIGNED ) AS col2 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-5438
SELECT CAST ( 50 AS INTEGER ) AS col2 FROM tab2
----
50
50
50

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - col0 - - - col0 * col0 <= + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + 4 * + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 4 * + COUNT ( * ) FROM tab0
----
12

query II rowsort
SELECT ( 26 ), + col2 FROM tab0
----
26
10
26
47
26
99

query I rowsort
SELECT ALL 58 * col0 AS col1 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - 80 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - COUNT( * ) * + + MAX( DISTINCT + 47 ) FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) * + + MAX ( DISTINCT + 47 ) FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / + col0 * - col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL ( COUNT( * ) ) * + + 56 + + MIN( - col2 ) AS col2 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL ( COUNT ( * ) ) * + + 56 + + MIN ( - col2 ) AS col2 FROM tab2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + col2 + + + ( + col2 ) FROM tab2 AS cor0
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 28 ) col2 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col0, + col2 * - col2 AS col0 FROM tab1
----
14
-9216
47
-4624
5
-3481

query I rowsort
SELECT ALL col1 * - 15 AS col0 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT DISTINCT 58 * + col0 + + - col0 FROM tab1
----
2907
4845
5187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 - + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT ( - col2 * + + col1 BETWEEN + col2 + 9 + + col1 AND + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT ( - col2 * + + col1 BETWEEN + col2 + 9 + + col1 AND + col0 )
----
-3

query I rowsort
SELECT + col1 - - col2 AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
110
115
64

query I rowsort
SELECT ALL 43 * - + col1 AS col1 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT ALL + + col2 + - col0 * - 46 FROM tab1 AS cor0
----
2442
3969
4254

query I rowsort
SELECT ALL - col0 + + - col1 * - + col2 AS col0 FROM tab0 AS cor0
----
123
2
3792

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + 33 IS NULL
----

query I rowsort
SELECT + col2 + - col2 * - 2 FROM tab2
----
120
174
69

query I rowsort
SELECT + col2 * - ( + 90 ) * + 4 FROM tab2 AS cor0
----
-14400
-20880
-8280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 70 ) col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT - COUNT( * ) * - 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT - COUNT ( * ) * - 0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + col0 + + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - MIN( ( ( + 32 ) ) ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5466
SELECT - MIN ( ( ( + 32 ) ) ) FROM tab0 AS cor0
----
-32

query II rowsort
SELECT - 84 AS col2, + 99 AS col0 FROM tab0 AS cor0 WHERE NOT - 71 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL < NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT 41 * + - ( + MIN( DISTINCT - 19 ) ) FROM tab1
----
779

skipif mysql # not compatible
query I rowsort label-5469
SELECT 41 * + - ( + MIN ( DISTINCT - 19 ) ) FROM tab1
----
779

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL <= - + col0 * + 72
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5471
SELECT ALL col1 DIV col0 * - - 21 * - CAST( + 35 AS SIGNED ) AS col1 FROM tab0
----
-3675
0
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL col1 / col0 * - - 21 * - CAST ( + 35 AS INTEGER ) AS col1 FROM tab0
----
-3675
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT ALL + 72 DIV + - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + 72 / + - col2 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5474
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + + col0 + - - col1 NOT BETWEEN 30 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5474
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + + col0 + - - col1 NOT BETWEEN 30 AND NULL
----

query I rowsort
SELECT ALL col0 * - col2 * + - col1 AS col1 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT + ( + CAST( NULL AS SIGNED ) ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 80 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 35 - - - 43 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5480
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 17 < NULL
----

query I rowsort
SELECT ALL - 84 * 37 FROM tab1 AS cor0
----
-3108
-3108
-3108

query II rowsort
SELECT DISTINCT col1, ( - 10 ) FROM tab1
----
14
-10
47
-10
5
-10

query I rowsort
SELECT 32 + - col0 AS col1 FROM tab0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( * ) * + ( + + COUNT( * ) ) * + COUNT( * ) + + - 27 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( * ) * + ( + + COUNT ( * ) ) * + COUNT ( * ) + + - 27 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5486
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col1 + 52 * + col1 FROM tab0
----
1113
4293
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT - col1 * + - 89 + - col2 DIV - + col1 AS col1 FROM tab1
----
1252
4184
456

skipif mysql # not compatible
query I rowsort label-5489
SELECT - col1 * + - 89 + - col2 / - + col1 AS col1 FROM tab1
----
1252
4184
456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 99 > - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5492
SELECT * FROM tab2 AS cor0 WHERE NULL >= - ( - col1 ) + 53 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5492
SELECT * FROM tab2 AS cor0 WHERE NULL >= - ( - col1 ) + 53 + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL MIN( DISTINCT 1 ) * + SUM( DISTINCT + 4 ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MIN ( DISTINCT 1 ) * + SUM ( DISTINCT + 4 ) AS col1 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT ALL - + COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5494
SELECT ALL - + COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( col2 + + - col2 * col1 ) <> NULL
----

query I rowsort
SELECT ALL 36 AS col0 FROM tab1 AS cor0 WHERE - 31 + col1 + - col2 / + col0 >= + col2
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL >= - 62 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - 80 * + - COUNT( * ) * 42 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
10083

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - 80 * + - COUNT ( * ) * 42 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
10083

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT - + ( 38 ) DIV - + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT - + ( 38 ) / - + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ( + - COUNT( col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5500
SELECT ( + - COUNT ( col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + COUNT( * ) * + 60 AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + COUNT ( * ) * + 60 AS col0 FROM tab1 AS cor0
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5502
SELECT - - 40 DIV - - MIN( + 87 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT - - 40 / - - MIN ( + 87 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT + - 11 DIV + + col1 + col1 col1 FROM tab0 cor0
----
-10
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT + - 11 / + + col1 + col1 col1 FROM tab0 cor0
----
-10
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5505
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2, 77 DIV - 12 FROM tab0
----
9
-6

skipif mysql # not compatible
query II rowsort label-5505
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2, 77 / - 12 FROM tab0
----
9
-6

query I rowsort
SELECT DISTINCT col1 * + 88 AS col0 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT - COUNT( * ) * - + ( - 57 ) * - COUNT( * ) AS col2 FROM tab2
----
513

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - COUNT ( * ) * - + ( - 57 ) * - COUNT ( * ) AS col2 FROM tab2
----
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 26 col2 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT - + 66 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT - + 66 / col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT + 22 DIV - COUNT( * ) + + - 16 AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 22 / - COUNT ( * ) + + - 16 AS col2 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - 75 + 64 AS col0 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 22 + col0 AS col0 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL - 52 AS col0, - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5515
SELECT ALL - 52 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT + - CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT + - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT - col2 + - col0 DIV + col2 FROM tab0 cor0 WHERE 43 * + col0 <> - + 47
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-5517
SELECT - col2 + - col0 / + col2 FROM tab0 cor0 WHERE 43 * + col0 <> - + 47
----
-18
-47
-99

query I rowsort
SELECT + - ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT col1 AS col2, 18 FROM tab0 AS cor0
----
1
18
21
18
81
18

query I rowsort
SELECT DISTINCT - 5 - + col1 - - 70 FROM tab2
----
-12
-2
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 16 ) col1 FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT 92 * + col2 - - - 68 + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
4209
842
8941

skipif mysql # not compatible
query I rowsort label-5523
SELECT 92 * + col2 - - - 68 + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
4209
842
8941

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL - SUM( DISTINCT - col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - SUM ( DISTINCT - col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + - col2 = + 90 AND NOT NULL NOT BETWEEN + col2 AND - ( + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 + + col0 col0 FROM tab0 AS cor0
----
148
158
76

query I rowsort
SELECT DISTINCT - - 54 FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL - 12 * + col0 FROM tab1 cor0
----
-1020
-1092
-612

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT + + AVG ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 66, col2 AS col1, + col0 col2 FROM tab1
----
9 values hashing to 5ab5685aa398b0d6f6fbb151040227c9

query I rowsort
SELECT DISTINCT 74 * 56 * col2 FROM tab1
----
244496
281792
397824

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL MIN( DISTINCT - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL MIN ( DISTINCT - 99 ) FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT - ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 98 - + col1 FROM tab0
----
-64
56
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL + MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + MAX ( + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 * + col0 > + + col0 * - + col0 * + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 98 AS col1, + ( + col0 ) FROM tab1 AS cor0
----
98
51
98
85
98
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT + col2 DIV 31 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5541
SELECT + col2 / 31 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT + 90 * col1 FROM tab1 WHERE NOT - 79 * col2 <= - + 86 + - 36 * - col2 - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT DISTINCT - ( - 53 ) + - COUNT( * ) + - COUNT( * ) * + COUNT( * ), - MIN( ALL - - 92 ) + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
-21

skipif mysql # not compatible
query II rowsort label-5543
SELECT DISTINCT - ( - 53 ) + - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ), - MIN ( ALL - - 92 ) + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
-21

query I rowsort
SELECT DISTINCT col1 + - + 23 + col2 * - - ( + col2 ) FROM tab2
----
1654
3408
557

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col2 / + 27 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( col0 ), + 94 / + col2, + - col1, + - ( + - col2 ) * + + 92 / - - col0 + col2, + col2 )
----

query II rowsort
SELECT + col0 - - col2 * - col2, - col1 AS col0 FROM tab2 AS cor0
----
-1536
-77
-3289
-67
-483
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT DISTINCT - ( + - col1 ) + + ( CAST( - 74 AS SIGNED ) ) FROM tab0 AS cor0
----
-53
-73
7

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT - ( + - col1 ) + + ( CAST ( - 74 AS INTEGER ) ) FROM tab0 AS cor0
----
-53
-73
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5551
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - ( - col2 ) = + + CAST( + - col1 AS SIGNED ) * CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-5551
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - ( - col2 ) = + + CAST ( + - col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) / col2
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT - + col2 * + + col2 + + - col1 * col2 + col0 + ( - 99 ) AS col1 FROM tab0 cor0
----
-322
-6100
-9902

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + COUNT( * ) - + + 46 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + COUNT ( * ) - + + 46 FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 - ( col1 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - + col2 = + col1
----

query I rowsort
SELECT - + col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - 32 AS col0 FROM tab2 cor0 WHERE NOT - col1 / - col0 IS NULL
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0 cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 63 / - ( - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) < ( - 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT - COUNT( * ) + + ( 24 ) FROM tab0 WHERE CAST( NULL AS SIGNED ) = ( col2 )
----
24

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - COUNT ( * ) + + ( 24 ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) = ( col2 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT - 98 + + COUNT( * ) AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - 98 + + COUNT ( * ) AS col0 FROM tab2
----
-95

query I rowsort
SELECT 70 FROM tab1 WHERE NULL NOT BETWEEN - 29 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT col2 + - 57 DIV 11 FROM tab0
----
42
5
94

skipif mysql # not compatible
query I rowsort label-5566
SELECT col2 + - 57 / 11 FROM tab0
----
42
5
94

query I rowsort
SELECT col0 / + col1 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 13 IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE col0 + 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * + 58 col0 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + 71 * - 92 + + COUNT( * ) AS col2 FROM tab0
----
-6529

skipif mysql # not compatible
query I rowsort label-5571
SELECT + 71 * - 92 + + COUNT ( * ) AS col2 FROM tab0
----
-6529

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT + ( col1 ) * + col1 + - col2 FROM tab2
----
2578
4431
5889

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT - 72 + - SUM( ALL col2 + 61 DIV 11 ) col2 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5575
SELECT DISTINCT - 72 + - SUM ( ALL col2 + 61 / 11 ) col2 FROM tab0
----
-243

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND ( + 71 + - 45 )
----

query I rowsort
SELECT ALL + 36 - + col0 FROM tab0
----
-51
-61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT SUM( - 43 ) * - COUNT( * ) FROM tab0
----
387

skipif mysql # not compatible
query I rowsort label-5578
SELECT SUM ( - 43 ) * - COUNT ( * ) FROM tab0
----
387

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) < col1
----

query I rowsort
SELECT ALL - col1 - + 37 FROM tab1
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT COUNT( ALL col1 ) FROM tab1 WHERE NULL <> col2 * - ( 8 )
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab1 WHERE NULL <> col2 * - ( 8 )
----
0

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT NULL <= - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 48 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT - CAST( - 54 AS SIGNED ) * col2 + ( - col0 ) AS col0 FROM tab0
----
2523
453
5249

skipif mysql # not compatible
query I rowsort label-5584
SELECT - CAST ( - 54 AS INTEGER ) * col2 + ( - col0 ) AS col0 FROM tab0
----
2523
453
5249

query I rowsort
SELECT DISTINCT - 92 * 17 FROM tab1
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT ALL - ( col0 ) * - col0 + - col0 DIV col1 FROM tab1 AS cor0
----
2598
7208
8280

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - ( col0 ) * - col0 + - col0 / col1 FROM tab1 AS cor0
----
2598
7208
8280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - 14 - col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 97 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 59 col0 FROM tab1
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL COUNT( * ) * + 97 col0 FROM tab1
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5592
SELECT ALL COUNT ( * ) * + 97 col0 FROM tab1
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT 4 + col0 DIV - col0 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5593
SELECT 4 + col0 / - col0 FROM tab1
----
3
3
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 96 / + 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + SUM( + 28 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5596
SELECT + SUM ( + 28 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT SUM( col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT SUM ( col1 ) col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 / - col0 + + col1 NOT IN ( 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col2 + - 77 ) > - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + CAST( 40 AS SIGNED ) AS col1 FROM tab2 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5600
SELECT + CAST ( 40 AS INTEGER ) AS col1 FROM tab2 cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL col1 DIV col0 - col1 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL col1 / col0 - col1 FROM tab2 AS cor0
----
-50
-67
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 50 = ( 68 * 95 )
----

query I rowsort
SELECT ALL - - col2 * 42 - + col0 FROM tab2 AS cor0
----
1616
2361
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 NOT BETWEEN col1 AND - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 NOT BETWEEN col1 AND - 88
----
NULL

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT - COUNT( * ) * + + MAX( + col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - COUNT ( * ) * + + MAX ( + col1 ) FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + MAX( DISTINCT - 40 ) AS col2 FROM tab2 WHERE NOT ( 40 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + MAX ( DISTINCT - 40 ) AS col2 FROM tab2 WHERE NOT ( 40 ) < NULL
----
NULL

query I rowsort
SELECT col0 * + 36 AS col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT DISTINCT 30 * col1 AS col1 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 BETWEEN NULL AND - col0 * col0
----
3

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 BETWEEN NULL AND - col0 * col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT CAST( - 32 AS SIGNED ) * - ( - 50 ) col1 FROM tab1
----
-1600
-1600
-1600

skipif mys