sqllogictest
Artifact Content
Not logged in

Artifact eda557c763a4b230c23e5ed2b04019d337918136:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 82 * - col2 * + 79 FROM tab0 AS cor0
----
-304466
-641322
-64780

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL - ( - - MIN( + col0 ) ) * 48 FROM tab2 AS cor0
----
-2208

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - ( - - MIN ( + col0 ) ) * 48 FROM tab2 AS cor0
----
-2208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT + MIN( + col1 ) + + ( - + COUNT( - + col1 ) ) * + 78 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + MIN ( + col1 ) + + ( - + COUNT ( - + col1 ) ) * + 78 FROM tab2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - MIN( ALL - col0 ) / - MAX( ALL - col1 ) FROM tab2 WHERE + - 91 >= - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - MIN ( ALL - col0 ) / - MAX ( ALL - col1 ) FROM tab2 WHERE + - 91 >= - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT + 47 * COUNT( ( 2 ) ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-7
SELECT + 47 * COUNT ( ( 2 ) ) FROM tab0 AS cor0
----
141

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

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

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

query I rowsort
SELECT - + AVG ( + 91 ) AS col0 FROM tab0 WHERE - col2 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-11
SELECT col2 DIV col2, 14 AS col1 FROM tab0
----
1
14
1
14
1
14

skipif mysql # not compatible
query II rowsort label-11
SELECT col2 / col2, 14 AS col1 FROM tab0
----
1
14
1
14
1
14

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT - 33 * - COUNT( * ) AS col0, - 22 + + + COUNT( * ) - - 65 AS col1 FROM tab2
----
99
46

skipif mysql # not compatible
query II rowsort label-12
SELECT - 33 * - COUNT ( * ) AS col0, - 22 + + + COUNT ( * ) - - 65 AS col1 FROM tab2
----
99
46

query I rowsort
SELECT 8 * + - 22 * col1 AS col2 FROM tab2 AS cor0
----
-11792
-13552
-8976

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-15
SELECT DISTINCT - MIN( - + 2 ), 20 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
2
60

skipif mysql # not compatible
query II rowsort label-15
SELECT DISTINCT - MIN ( - + 2 ), 20 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2
60

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 50 * 38 IS NOT NULL
----

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

skipif mysql # not compatible
query III rowsort label-17
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT - - 60 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-18
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT - - 60 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + SUM( - - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-19
SELECT + SUM ( - - col2 ) AS col1 FROM tab2
----
121

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 2 + - col1 ) < - ( 25 )
----
51
14
96
85
5
59

query I rowsort
SELECT 89 * + col0 AS col1 FROM tab1
----
4539
7565
8099

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

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

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

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

query I rowsort
SELECT + 46 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
2944
3450

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

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

query I rowsort
SELECT DISTINCT 32 * + 82 FROM tab0 AS cor0
----
2624

query I rowsort
SELECT 85 * 42 FROM tab2 AS cor0
----
3570
3570
3570

query II rowsort
SELECT ALL col1 + - col0 AS col2, col0 FROM tab2
----
-8
75
13
64
5
46

query I rowsort
SELECT DISTINCT + 9 * ( col0 ) FROM tab0 AS cor0
----
135
783
873

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

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

query I rowsort
SELECT DISTINCT 98 + + - col0 AS col1 FROM tab0 AS cor0
----
1
11
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 23 * - col1 + - - col2 * 99, ( col1 ) * col0 + col2 * - col1, + col1 / + - col2, - col1, + col1, col0 )
----

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

skipif mysql # not compatible
query I rowsort label-36
SELECT - col1 / col1 AS col0 FROM tab2 AS cor0 WHERE - 23 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL + 7 * - + 88 AS col2, col2 * 92 + - col0 FROM tab0 AS cor0
----
-616
4309
-616
833
-616
9011

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT + col0 + - col2 DIV + col1 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-38
SELECT + col0 + - col2 / + col1 FROM tab1
----
45
74
90

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

query II rowsort
SELECT 72 * + 92 + 72 AS col1, col2 FROM tab2
----
6696
23
6696
40
6696
58

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

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

query II rowsort
SELECT - ( - 62 ) * col2 * + col0 + - col1 AS col2, - col1 FROM tab1
----
303538
-14
310925
-5
383609
-47

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NULL AND NOT NULL < NULL
----

query I rowsort
SELECT + col0 + - + col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + col2 FROM tab1 WHERE + - col1 >= col1 * - col2 * col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT 11 + SUM( + col1 ) col2 FROM tab1
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-46
SELECT 11 + SUM ( + col1 ) col2 FROM tab1
----
77

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

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

query I rowsort
SELECT DISTINCT - col2 - - 57 FROM tab1 AS cor0 WHERE ( - - ( + - col1 ) IS NULL )
----

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

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

query I rowsort
SELECT ALL + - col0 * + col1 + col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT 96 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT col0 - + + 83 AS col1 FROM tab2
----
-19
-37
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-55
SELECT ALL COUNT( * ) + - - CAST( - COUNT( * ) AS SIGNED ) * 14 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL COUNT ( * ) + - - CAST ( - COUNT ( * ) AS INTEGER ) * 14 FROM tab2
----
-39

query I rowsort
SELECT ALL + ( col2 ) * - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT DISTINCT - col1 DIV - CAST( + col0 AS SIGNED ) col1 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-57
SELECT DISTINCT - col1 / - CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
0
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 62, + col0 col1 FROM tab0 AS cor0
----
-62
15
-62
87
-62
97

query II rowsort
SELECT DISTINCT + 31 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
31
1
31
21
31
81

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

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

query I rowsort
SELECT - 55 * ( - + col1 ) AS col0 FROM tab1 AS cor0
----
2585
275
770

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

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

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

skipif mysql # not compatible
query II rowsort label-64
SELECT + 46, col2 / + col0 AS col0 FROM tab1 AS cor0
----
46
0
46
0
46
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT DISTINCT 63 * + COUNT( * ) AS col1, - 73 AS col2 FROM tab1
----
189
-73

skipif mysql # not compatible
query II rowsort label-66
SELECT DISTINCT 63 * + COUNT ( * ) AS col1, - 73 AS col2 FROM tab1
----
189
-73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT ( 73 ) * + col2 + - col2 + - CAST( + + col1 AS SIGNED ) FROM tab0
----
3303
699
7127

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT ( 73 ) * + col2 + - col2 + - CAST ( + + col1 AS INTEGER ) FROM tab0
----
3303
699
7127

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL + COUNT( * ) * + - 22 + + COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + COUNT ( * ) * + - 22 + + COUNT ( * ) AS col0 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL COUNT( * ) + + 97 AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL COUNT ( * ) + + 97 AS col0 FROM tab0
----
100

query I rowsort
SELECT DISTINCT col2 + + 73 FROM tab2
----
113
131
96

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

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

query I rowsort
SELECT - 57 + - + col2 AS col1 FROM tab2 AS cor0
----
-115
-80
-97

query I rowsort
SELECT + + col1 + - col1 + - + 96 AS col1 FROM tab2 cor0
----
-96
-96
-96

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

query I rowsort
SELECT col0 * - col2 + - ( - col2 ) + + 40 FROM tab1 AS cor0
----
-4760
-4916
-6080

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

skipif mysql # not compatible
query I rowsort label-79
SELECT - + col2 / + - col2 AS col1 FROM tab2 AS cor0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT 27 FROM tab2 WHERE + 26 * CAST( NULL AS SIGNED ) <> + ( ( - - 18 ) ) * - + col0
----

skipif mysql # not compatible
query I rowsort label-81
SELECT 27 FROM tab2 WHERE + 26 * CAST ( NULL AS INTEGER ) <> + ( ( - - 18 ) ) * - + col0
----

query I rowsort
SELECT col2 - - - ( + ( - - col2 ) ) + col0 + - 33 * + 67 + col0 FROM tab1
----
-2029
-2041
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT 54 + - 2 - - - COUNT( * ) AS col1 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT 54 + - 2 - - - COUNT ( * ) AS col1 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT 80 - + ( SUM( DISTINCT + col0 ) ) AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-84
SELECT 80 - + ( SUM ( DISTINCT + col0 ) ) AS col2 FROM tab2
----
-105

query I rowsort
SELECT + 13 * + 10 + - col2 AS col0 FROM tab1 cor0
----
34
62
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT - ( CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-86
SELECT - ( CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-88
SELECT - + col1 * + - 97 * col0 AS col2, col1 DIV - col2 AS col0 FROM tab2 AS cor0
----
227562
-2
478016
-1
487425
-1

skipif mysql # not compatible
query II rowsort label-88
SELECT - + col1 * + - 97 * col0 AS col2, col1 / - col2 AS col0 FROM tab2 AS cor0
----
227562
-2
478016
-1
487425
-1

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

query I rowsort
SELECT - 46 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-46
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL - 65 * + - MAX( ALL - ( - - col2 ) ) FROM tab0 AS cor0
----
-650

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - 65 * + - MAX ( ALL - ( - - col2 ) ) FROM tab0 AS cor0
----
-650

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

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

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

query I rowsort
SELECT - col2 * - 48 * + + col1 FROM tab1
----
14160
153408
64512

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-96
SELECT DISTINCT - CAST( + col1 AS DECIMAL ) * col2 + CAST( NULL AS SIGNED ), 92 AS col2 FROM tab0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-96
SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0
----
NULL
92

query I rowsort
SELECT + ( ( + col0 ) ) * + 12 FROM tab1
----
1020
1092
612

query I rowsort
SELECT + 78 + 19 * + col0 FROM tab1 AS cor0
----
1047
1693
1807

query II rowsort
SELECT + col2 + + col0, col0 * - 15 FROM tab0 AS cor0 WHERE NOT ( NULL <= - + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT - + 23 + - + MAX( col1 ) AS col0 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT - + 23 + - + MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
-104

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

onlyif mysql # aggregate syntax: 
query II rowsort label-103
SELECT ALL - 0 + + 42 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-103
SELECT ALL - 0 + + 42 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
42
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + - col0, + CAST( col2 AS SIGNED ), 9 ) AND NOT NULL <= NULL
----

skipif mysql # not compatible
query III rowsort label-104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + - col0, + CAST ( col2 AS INTEGER ), 9 ) AND NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-105
SELECT + MAX( - ( + col2 ) ) + + 21 DIV - - 98 * + SUM( - col2 ) DIV - CAST( + - 27 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-105
SELECT + MAX ( - ( + col2 ) ) + + 21 / - - 98 * + SUM ( - col2 ) / - CAST ( + - 27 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + 49 * - 91 AS col2 FROM tab2 AS cor0
----
-4459

query I rowsort
SELECT + col0 * - col2 + + 70 * + 31 * + + col2 * col0 FROM tab2 AS cor0 WHERE ( NULL ) = 75
----

query I rowsort
SELECT 54 + - col0 AS col0 FROM tab0
----
-33
-43
39

query I rowsort
SELECT col2 + + 2 + + col1 * + - 2 FROM tab0
----
-113
-30
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT CAST( + col1 AS SIGNED ) * + 18 + - col2 + - col2 FROM tab1
----
-28
60
710

skipif mysql # not compatible
query I rowsort label-110
SELECT CAST ( + col1 AS INTEGER ) * + 18 + - col2 + - col2 FROM tab1
----
-28
60
710

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

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ( - SUM( ALL 40 ) ) * + 52 AS col1 FROM tab0
----
-6240

skipif mysql # not compatible
query I rowsort label-112
SELECT ( - SUM ( ALL 40 ) ) * + 52 AS col1 FROM tab0
----
-6240

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * + col2 col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT + col1 * + col1 - - col2 - - + col1 AS col0 FROM tab0 AS cor0
----
101
472
6689

query I rowsort
SELECT + 61 - + col1 AS col0 FROM tab1 AS cor0
----
14
47
56

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

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

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

query I rowsort
SELECT ALL col0 + col0 * - col1 FROM tab1
----
-340
-4186
-663

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + + 80 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - 83 * - COUNT( * ) + + 62 AS col0 FROM tab0
----
311

skipif mysql # not compatible
query I rowsort label-123
SELECT - 83 * - COUNT ( * ) + + 62 AS col0 FROM tab0
----
311

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 44 + col2 * + col2 > col2 - - col0
----

query I rowsort
SELECT - ( 77 ) AS col2 FROM tab0 WHERE - 44 * col0 > + ( col1 ) * col1 + + col2
----

query I rowsort
SELECT + col1 + col2 FROM tab1 WHERE NOT col1 <> ( - 20 * + col1 )
----

query I rowsort
SELECT col2 + - col0 * col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT DISTINCT 4 - SUM( - 52 ) AS col1 FROM tab1
----
160

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT 4 - SUM ( - 52 ) AS col1 FROM tab1
----
160

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

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

skipif mysql # not compatible
query III rowsort label-131
SELECT * FROM tab2 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col2 + - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col2 + - col0 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col1 FROM tab2 WHERE col2 BETWEEN - 89 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT MAX ( ALL + ( + col0 ) ) col1 FROM tab0
----
97

query I rowsort
SELECT col0 + + col0 * 37 FROM tab1
----
1938
3230
3458

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT ALL col2 + + 35 DIV + ( - col0 + col2 ) col1 FROM tab1
----
58
67
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT ALL col2 + + 35 / + ( - col0 + col2 ) col1 FROM tab1
----
58
67
96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 + 58 ) BETWEEN 96 * - 19 AND ( col1 )
----

query I rowsort
SELECT DISTINCT - 43 + + 88 AS col0 FROM tab0 AS cor0
----
45

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

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

query I rowsort
SELECT ALL + + 55 - - 37 AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT col0 + + col2 * col1 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > - col0
----

query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab2 cor0
----
-8
13
5

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

query I rowsort
SELECT ALL + col0 - - 40 FROM tab1 AS cor0
----
125
131
91

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

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

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

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

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

query I rowsort
SELECT col1 * + col0 - col1 AS col0 FROM tab0
----
1134
1806
96

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab2
----
102
134
154

query I rowsort
SELECT - col0 + - 68 FROM tab2
----
-114
-132
-143

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

query II rowsort
SELECT DISTINCT 64 AS col0, col2 * + + 40 FROM tab1
----
64
2360
64
2720
64
3840

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

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

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

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

query I rowsort
SELECT ( + col2 ) * - + col1 * col1 FROM tab1
----
-1475
-150212
-18816

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

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

skipif mysql # not compatible
query II rowsort label-164
SELECT + COUNT ( * ) AS col0, MAX ( col2 ) AS col2 FROM tab0 cor0
----
3
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT + COUNT( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN 80 * - col1 + col0 AND - ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT + COUNT ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN 80 * - col1 + col0 AND - ( 95 )
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, 65 AS col0 FROM tab2 AS cor0
----
-46
65
-64
65
-75
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT DISTINCT + CAST( 5 AS SIGNED ) * + col1 + 57 AS col2 FROM tab1 cor0
----
127
292
82

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT + CAST ( 5 AS INTEGER ) * + col1 + 57 AS col2 FROM tab1 cor0
----
127
292
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab0 cor0
----
-97

query I rowsort
SELECT 20 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
20
20
20

query I rowsort
SELECT DISTINCT + col1 * + col1 * 60 FROM tab2
----
156060
269340
355740

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-174
SELECT DISTINCT + CAST( 85 AS SIGNED ) DIV col1 + + col2 col2 FROM tab1
----
102
69
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT DISTINCT + CAST ( 85 AS INTEGER ) / col1 + + col2 col2 FROM tab1
----
102
69
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-175
SELECT DISTINCT * FROM tab0 WHERE - CAST( + + ( - 12 ) AS SIGNED ) BETWEEN ( - 4 ) AND 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-175
SELECT DISTINCT * FROM tab0 WHERE - CAST ( + + ( - 12 ) AS INTEGER ) BETWEEN ( - 4 ) AND 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 41 FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col1 >= - col0 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col1 >= - col0 / col1
----
NULL

query II rowsort
SELECT DISTINCT 4 * + - 32, 61 AS col0 FROM tab1 AS cor0
----
-128
61

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

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

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

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - SUM ( - col1 ) - + COUNT ( * ) AS col2 FROM tab1 cor0
----
63

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 - + col2 + - + col0 NOT BETWEEN ( - col1 + - col1 ) AND ( NULL )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT ALL col1 + + - 71 DIV - col0 AS col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL col1 + + - 71 / - col0 AS col1 FROM tab1 AS cor0
----
15
47
5

query I rowsort
SELECT + col2 * - 99 * + col1 + + ( 79 ) FROM tab2 AS cor0
----
-116048
-304841
-384635

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-188
SELECT * FROM tab2 AS cor0 WHERE - 24 NOT IN ( - 43, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-188
SELECT * FROM tab2 AS cor0 WHERE - 24 NOT IN ( - 43, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 84 - - col2 * + ( + - 23 ) * 72 FROM tab0 AS cor0
----
-163860
-16476
-77748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT ALL + CAST( col0 AS SIGNED ) - + col1 * + 63 FROM tab2 AS cor0
----
-3167
-4146
-4787

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + CAST ( col0 AS INTEGER ) - + col1 * + 63 FROM tab2 AS cor0
----
-3167
-4146
-4787

query I rowsort
SELECT - 59 + - col0 + + col2 * - col1 FROM tab2 AS cor0
----
-1278
-3203
-4020

query I rowsort
SELECT - 25 + + 83 AS col1 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - 74 + + COUNT( * ) FROM tab0 WHERE NULL IN ( + + 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-193
SELECT - 74 + + COUNT ( * ) FROM tab0 WHERE NULL IN ( + + 75 )
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + + col1 + 56 * col2 + + col2 * - 84 col2 FROM tab2
----
1927
2059
2961

query I rowsort
SELECT ALL - 61 - + 45 * + col0 AS col2 FROM tab1
----
-2356
-3886
-4156

query I rowsort
SELECT ALL - col0 * ( + + col2 ) FROM tab0
----
-705
-870
-9603

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

query I rowsort
SELECT 38 AS col1 FROM tab1 cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query II rowsort label-199
SELECT - 9 AS col1, 8 DIV col2 FROM tab0 AS cor0
----
-9
0
-9
0
-9
0

skipif mysql # not compatible
query II rowsort label-199
SELECT - 9 AS col1, 8 / col2 FROM tab0 AS cor0
----
-9
0
-9
0
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT col1 * + col2 FROM tab2 WHERE NOT 51 * + 42 * + col1 * - CAST( NULL AS SIGNED ) * - - col1 NOT BETWEEN NULL AND ( col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-200
SELECT col1 * + col2 FROM tab2 WHERE NOT 51 * + 42 * + col1 * - CAST ( NULL AS INTEGER ) * - - col1 NOT BETWEEN NULL AND ( col0 * CAST ( NULL AS INTEGER ) )
----

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

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

query II rowsort
SELECT DISTINCT col2 * + 40 AS col2, col0 FROM tab0 AS cor0
----
1880
15
3960
97
400
87

query I rowsort
SELECT + col2 + ( 10 ) + 15 FROM tab0 AS cor0
----
124
35
72

query II rowsort
SELECT col2 + col0 AS col2, + col0 * - col0 + - 4 AS col0 FROM tab2 AS cor0
----
104
-4100
133
-5629
69
-2120

query II rowsort
SELECT ALL + ( col1 ), col2 - + ( + + col1 ) FROM tab0 AS cor0
----
1
98
21
-11
81
-34

query I rowsort
SELECT 54 * + col2 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT ALL + col1 + + + 20 AS col2 FROM tab2
----
71
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 67 - + + col0 + + - col0 / 70 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-210
SELECT - col0, + col2 DIV - - 90 AS col0 FROM tab1
----
-51
1
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-210
SELECT - col0, + col2 / - - 90 AS col0 FROM tab1
----
-51
1
-85
0
-91
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL + COUNT( * ) * - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL + COUNT ( * ) * - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

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

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL - - ( + col0 ) DIV - + col2 + ( - - 45 ) FROM tab0 AS cor0
----
37
45
45

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - - ( + col0 ) / - + col2 + ( - - 45 ) FROM tab0 AS cor0
----
37
45
45

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

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

query I rowsort
SELECT DISTINCT col2 + - 56 * + col1 FROM tab0 AS cor0
----
-1166
-4489
43

query I rowsort
SELECT DISTINCT 62 - + 6 AS col2 FROM tab2 AS cor0
----
56

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

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

query I rowsort
SELECT ALL - - col1 - + col2 + - 9 * + - col1 * + 0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT col2 * + 70 - col0 DIV col0 FROM tab0 cor0 WHERE NULL IS NULL
----
3289
6929
699

skipif mysql # not compatible
query I rowsort label-220
SELECT col2 * + 70 - col0 / col0 FROM tab0 cor0 WHERE NULL IS NULL
----
3289
6929
699

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-221
SELECT DISTINCT col2 AS col0, CAST( NULL AS SIGNED ) + col0 + 23 + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-221
SELECT DISTINCT col2 AS col0, CAST ( NULL AS INTEGER ) + col0 + 23 + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL ( - col1 ) * - 34 AS col2 FROM tab0
----
2754
34
714

query I rowsort
SELECT DISTINCT 68 * + 63 FROM tab2
----
4284

query I rowsort
SELECT 95 * 81 * col1 AS col1 FROM tab1
----
107730
361665
38475

query I rowsort
SELECT DISTINCT + col0 * + + 48 FROM tab2
----
2208
3072
3600

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

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

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

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT + - 23 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT - SUM( - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-231
SELECT - SUM ( - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
-669

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL + 22 AS col0, + SUM( ALL ( - 49 ) ) col0 FROM tab1 cor0
----
22
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-233
SELECT ALL + 22 AS col0, + SUM ( ALL ( - 49 ) ) col0 FROM tab1 cor0
----
22
-147

query I rowsort
SELECT - 38 * + + 89 AS col2 FROM tab2 AS cor0
----
-3382
-3382
-3382

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - COUNT( * ) + + ( - + COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-236
SELECT - COUNT ( * ) + + ( - + COUNT ( * ) ) FROM tab2
----
-6

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

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

query II rowsort
SELECT 94 + - col2 AS col1, - 73 FROM tab2
----
36
-73
54
-73
71
-73

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

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

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

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

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

query II rowsort
SELECT - 80 * col0 AS col1, + 56 + + + col2 AS col1 FROM tab1 AS cor0
----
-4080
152
-6800
115
-7280
124

query II rowsort
SELECT DISTINCT - col2 AS col0, - ( - 45 ) FROM tab2
----
-23
45
-40
45
-58
45

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL - 62 * COUNT( * ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - 62 * COUNT ( * ) FROM tab1
----
-186

query I rowsort
SELECT DISTINCT - col2 * col0 + 84 AS col0 FROM tab2
----
-2476
-4266
-974

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + col0 * + + 11 - - + col1 col0, col1 FROM tab1 AS cor0
----
28625
14
79480
5
91138
47

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

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

query I rowsort
SELECT ( - + 36 ) * + col2 FROM tab2 cor0
----
-1440
-2088
-828

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <> - + col0
----
1
21
81

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

skipif mysql # not compatible
query III rowsort label-253
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 * - col0 * col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT col0 * + 19 * + col0 AS col2 FROM tab1
----
137275
157339
49419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT ALL 50 DIV COUNT( * ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL 50 / COUNT ( * ) AS col0 FROM tab1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT COUNT( DISTINCT - 75 ) + + MAX( - 51 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-263
SELECT COUNT ( DISTINCT - 75 ) + + MAX ( - 51 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - col2 * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( - + 94 )
----

query I rowsort
SELECT 61 * col0 + + col2 - - col2 FROM tab1
----
3303
5303
5687

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

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

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

query I rowsort
SELECT DISTINCT - - 34 + + col1 FROM tab0 AS cor0
----
115
35
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 3 * MAX( + - col0 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-271
SELECT 3 * MAX ( + - col0 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-156

query I rowsort
SELECT - ( - - ( - col2 ) ) * - + 22 + col2 * + - col0 * + 0 FROM tab2 AS cor0
----
-1276
-506
-880

query I rowsort
SELECT ALL + - 28 AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= + - col0
----

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

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

query I rowsort
SELECT + 85 * + col0 AS col0 FROM tab1 WHERE ( + + 54 - + col1 ) NOT BETWEEN ( NULL ) AND + - 46 * - 34
----

query III rowsort
SELECT * FROM tab2 WHERE - 96 BETWEEN 22 AND - - ( col1 ) * + + col0
----

query II rowsort
SELECT ALL 45 AS col1, - 13 FROM tab2
----
45
-13
45
-13
45
-13

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

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + col0 * col1 AS col0 FROM tab0 WHERE - - col2 = - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col1 - - 8 + col2 AS col0 FROM tab1
----
118
123
72

query I rowsort
SELECT - 23 - - 33 AS col1 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT + + col1 + col0 + col2 - + + col1 AS col1 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT + col2 + - col1, 99 AS col1 FROM tab0
----
-11
99
-34
99
98
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL + MIN( ALL - ( - + 26 ) ) + - - COUNT( - 64 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
35

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL + MIN ( ALL - ( - + 26 ) ) + - - COUNT ( - 64 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-285
SELECT * FROM tab1 WHERE - + 44 NOT IN ( - col1, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-285
SELECT * FROM tab1 WHERE - + 44 NOT IN ( - col1, + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 58 AND 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL - - SUM( ALL + col0 ) FROM tab2 AS cor0 WHERE NOT 30 NOT IN ( - 49, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - - SUM ( ALL + col0 ) FROM tab2 AS cor0 WHERE NOT 30 NOT IN ( - 49, - col0 )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-288
SELECT ALL + MIN ( + 77 ) col0 FROM tab1 AS cor0
----
77

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

query I rowsort
SELECT col0 * + 62 FROM tab2
----
2852
3968
4650

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT + + col1 IS NULL
----
10
47
99

query I rowsort
SELECT ALL col1 * + + 6 AS col0 FROM tab1
----
282
30
84

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

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

query I rowsort
SELECT DISTINCT col0 * - - 99 AS col2 FROM tab0
----
1485
8613
9603

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

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

query I rowsort
SELECT + 27 * + 36 AS col2 FROM tab1
----
972
972
972

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT - + MAX( + + col2 ) * + - 73 AS col0 FROM tab2 AS cor0
----
4234

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - + MAX ( + + col2 ) * + - 73 AS col0 FROM tab2 AS cor0
----
4234

query I rowsort
SELECT DISTINCT + + 66 * + + col2 FROM tab1 AS cor0
----
3894
4488
6336

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 / - + 37 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - 66 + 88 * - col2 + + 2 FROM tab0
----
-4200
-8776
-944

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + SUM( - col0 ) + + 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT + SUM ( - col0 ) + + 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

query I rowsort
SELECT DISTINCT + - ( - - 95 ) * - col1 * + 73 FROM tab1 AS cor0
----
325945
34675
97090

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

skipif mysql # not compatible
query I rowsort label-311
SELECT + MIN ( + ( + 62 ) ) FROM tab2 AS cor0
----
62

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

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

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

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

query II rowsort
SELECT DISTINCT + col2, ( + col0 ) FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL - 30 * col2 - - col0 * - col0 FROM tab1 WHERE NOT + col1 >= NULL
----

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

query I rowsort
SELECT - 41 FROM tab0 WHERE NOT col0 > NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-320
SELECT ALL + - 93 AS col2, + col2 DIV ( 90 ) + - - col2 col2 FROM tab0 AS cor0 WHERE NOT + ( - 70 ) BETWEEN - col1 AND - col0 + 62
----
-93
10
-93
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-320
SELECT ALL + - 93 AS col2, + col2 / ( 90 ) + - - col2 col2 FROM tab0 AS cor0 WHERE NOT + ( - 70 ) BETWEEN - col1 AND - col0 + 62
----
-93
10
-93
100

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

query II rowsort
SELECT + - 9 * - col1, col0 FROM tab2 AS cor0
----
459
46
603
75
693
64

query I rowsort
SELECT DISTINCT + col2 * + + 27 * + 36 AS col2 FROM tab2 AS cor0
----
22356
38880
56376

query I rowsort
SELECT + ( - 88 ) FROM tab2 WHERE col0 > + col2 + - - col2
----

query I rowsort
SELECT DISTINCT 30 + + + col1 FROM tab0
----
111
31
51

query I rowsort
SELECT - col1 + + col1 * + - 40 AS col1 FROM tab1 AS cor0
----
-1927
-205
-574

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

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

query II rowsort
SELECT col1 AS col2, col0 + - - col2 + - 11 FROM tab2 AS cor0
----
51
58
67
122
77
93

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

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

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

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

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

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

query I rowsort
SELECT 35 * + + col2 - col0 FROM tab1
----
1980
2289
3309

query I rowsort
SELECT + col1 - + col1 + col2 * + + 54 * - 96 AS col1 FROM tab1
----
-305856
-352512
-497664

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

query I rowsort
SELECT ALL col1 * 56 + + 77 FROM tab0 AS cor0
----
1253
133
4613

query I rowsort
SELECT DISTINCT 13 - + 62 AS col0 FROM tab2 AS cor0
----
-49

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

query I rowsort
SELECT ALL + 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT CAST( - 60 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-341
SELECT CAST ( - 60 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-342
SELECT - - 78 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT - - 78 / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + - + 23 FROM tab2
----
-100
-74
-90

query II rowsort
SELECT 59 AS col0, - col1 + + col2 FROM tab2
----
59
-28
59
-37
59
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT - col2 + CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-351
SELECT - col2 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-118
-136
-192

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

query I rowsort
SELECT ALL - 72 * ( + col1 ) FROM tab1 AS cor0
----
-1008
-3384
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38 col2, - 39 col0 FROM tab2 AS cor0
----
38
-39

query I rowsort
SELECT DISTINCT + col1 * - 31 + ( + col1 ) * - col2 FROM tab2
----
-2754
-5467
-5963

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

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT 95 - - - 67 * COUNT( * ) FROM tab0 cor0
----
-106

skipif mysql # not compatible
query I rowsort label-357
SELECT 95 - - - 67 * COUNT ( * ) FROM tab0 cor0
----
-106

query I rowsort
SELECT ALL - + col1 - - ( + + col1 ) - 61 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT 57 FROM tab0 AS cor0 WHERE 61 * col1 * - + col0 IS NOT NULL
----
57
57
57

query I rowsort
SELECT - col2 + - col2 + - + col2 FROM tab1 AS cor0
----
-177
-204
-288

query I rowsort
SELECT DISTINCT - + col2 - + 10 FROM tab1 AS cor0
----
-106
-69
-78

query I rowsort
SELECT - - col1 + - + col2 * - col2 - + col0 AS col1 FROM tab2 AS cor0
----
1613
3356
534

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

query I rowsort
SELECT - + ( - col2 ) + + 90 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT col1 * + col2 * - + 23 + - col0 AS col1 FROM tab2 AS cor0
----
-27025
-70904
-89453

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

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT + ( + - 92 ) * + - COUNT( * ) * 97 FROM tab2
----
26772

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT + ( + - 92 ) * + - COUNT ( * ) * 97 FROM tab2
----
26772

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

query I rowsort
SELECT - 72 + - + 96 FROM tab0
----
-168
-168
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT MIN( DISTINCT 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-370
SELECT MIN ( DISTINCT 70 ) FROM tab0
----
70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2
----
9 values hashing to b2406d08169fd0ced1328ec222cc73fc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT ALL 40 * + MIN( CAST( + 46 AS SIGNED ) ) col2 FROM tab0
----
1840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-373
SELECT ALL 40 * + MIN ( CAST ( + 46 AS INTEGER ) ) col2 FROM tab0
----
1840

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL - col2 DIV + col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - col2 / + col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + 71 * - col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

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

skipif mysql # not compatible
query II rowsort label-376
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col2, + 60 AS col0 FROM tab2
----
-9
60

query I rowsort
SELECT + - 67 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT + + 8 - + COUNT( * ) FROM tab0 WHERE NOT NULL <= - + 77 * + + 87
----
8

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + + 8 - + COUNT ( * ) FROM tab0 WHERE NOT NULL <= - + 77 * + + 87
----
8

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - - col2 * + col0 / - ( - + col1 ) * - col0, + 38 * - ( + 16 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-380
SELECT + 32 DIV + ( - MIN( + + col1 ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-380
SELECT + 32 / + ( - MIN ( + + col1 ) ) FROM tab1 AS cor0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-382
SELECT * FROM tab2 cor0 WHERE NOT 6 + + 56 IS NULL AND NOT NULL IN ( col2 * - 13 - - 93 / - 2 * + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ), + 4 * + 60, + col2 )
----

skipif mysql # not compatible
query III rowsort label-382
SELECT * FROM tab2 cor0 WHERE NOT 6 + + 56 IS NULL AND NOT NULL IN ( col2 * - 13 - - 93 / - 2 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ), + 4 * + 60, + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-383
SELECT + - 80 DIV + COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-383
SELECT + - 80 / + COUNT ( * ) FROM tab2 AS cor0
----
-26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT - + col0 DIV + - 76 + - col2 - col0 * col1 DIV - 58 AS col2 FROM tab2 AS cor0
----
17
28
44

skipif mysql # not compatible
query I rowsort label-385
SELECT - + col0 / + - 76 + - col2 - col0 * col1 / - 58 AS col2 FROM tab2 AS cor0
----
17
28
44

query I rowsort
SELECT col0 * + - 37 FROM tab1
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL + 5 * - COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + 5 * - COUNT ( * ) AS col0 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + ( - col0 ) + 64 * + col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
4071
7112
8611

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT DISTINCT - ( MIN( + 7 ) ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - ( MIN ( + 7 ) ) AS col0 FROM tab1
----
-7

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

query I rowsort
SELECT - col0 * + 95 AS col1 FROM tab1 AS cor0
----
-4845
-8075
-8645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-392
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 38 - + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-392
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 38 - + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT - 37 + + COUNT( * ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-393
SELECT - 37 + + COUNT ( * ) AS col0 FROM tab2
----
-34

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

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

query I rowsort
SELECT - + 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + + col0 * - - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-397
SELECT - + 93 col0, + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
-93
NULL
-93
NULL
-93
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-397
SELECT - + 93 col0, + CAST ( NULL AS REAL ) FROM tab0 cor0
----
-93
NULL
-93
NULL
-93
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + ( col1 ) col2 FROM tab1 AS cor0
----
188
20
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT - + MAX( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT - + MAX ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - col0 - + col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT CAST( 10 AS SIGNED ) * + 54 + + 96 - - col2 AS col0 FROM tab1 AS cor0
----
695
704
732

skipif mysql # not compatible
query I rowsort label-404
SELECT CAST ( 10 AS INTEGER ) * + 54 + + 96 - - col2 AS col0 FROM tab1 AS cor0
----
695
704
732

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

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

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

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

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - MAX ( DISTINCT 42 ) AS col1 FROM tab0
----
-42

query I rowsort
SELECT ALL + 71 * + col2 - - col1 AS col1 FROM tab0
----
3418
7030
731

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL 38 * + SUM( col0 ) AS col0 FROM tab2
----
7030

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL 38 * + SUM ( col0 ) AS col0 FROM tab2
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT DISTINCT MIN( ALL + 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT MIN ( ALL + 80 ) FROM tab0
----
80

query I rowsort
SELECT ALL + col2 * + 82 AS col2 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT 14 * + COUNT( * ) AS col2, COUNT( * ) * - SUM( ALL - ( + col0 ) ) FROM tab0
----
42
597

skipif mysql # not compatible
query II rowsort label-412
SELECT 14 * + COUNT ( * ) AS col2, COUNT ( * ) * - SUM ( ALL - ( + col0 ) ) FROM tab0
----
42
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 14 col0 FROM tab1 WHERE NOT + + 94 / - col2 * - 80 / - + 1 + - 15 + + + col0 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT ( + col0 ) AS col0, 3 FROM tab1 cor0
----
51
3
85
3
91
3

query II rowsort
SELECT + col2 * col2 + col2 * + col1 * col2 AS col1, - col2 * col1 * - + 6 * - col0 - + col2 - - col2 * - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
181138
-344886
19602
-67518
2200
-109730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-418
SELECT DISTINCT - - CAST( 97 AS SIGNED ) AS col2, + col1 AS col1, 29 + - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 48b39c5e2f448b1e45127d533c863680

skipif mysql # not compatible
query III rowsort label-418
SELECT DISTINCT - - CAST ( 97 AS INTEGER ) AS col2, + col1 AS col1, 29 + - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 48b39c5e2f448b1e45127d533c863680

query I rowsort
SELECT DISTINCT - 87 / + - col0 + - 70 FROM tab2 AS cor0 WHERE col1 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-420
SELECT - CAST( col0 AS SIGNED ) * + col1 * 43 FROM tab0 WHERE NOT ( NOT NULL <= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-420
SELECT - CAST ( col0 AS INTEGER ) * + col1 * 43 FROM tab0 WHERE NOT ( NOT NULL <= ( NULL ) )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 3 DIV + 14 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-424
SELECT + 3 / + 14 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-425
SELECT DISTINCT SUM( ALL + ( - 52 ) ) AS col1, 97 col1 FROM tab2 AS cor0
----
-156
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-425
SELECT DISTINCT SUM ( ALL + ( - 52 ) ) AS col1, 97 col1 FROM tab2 AS cor0
----
-156
97

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + - col0 <= + 33 * - + col0 + ( 51 ) + - + col2 + - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT - 29 DIV 6 AS col2 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-429
SELECT - 29 / 6 AS col2 FROM tab0
----
-4
-4
-4

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

query I rowsort
SELECT ALL + col0 * col1 * - + 46 + - col1 AS col1 FROM tab0
----
-4463
-55971
-84063

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT 46 + + COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-432
SELECT 46 + + COUNT ( * ) FROM tab0
----
49

query I rowsort
SELECT DISTINCT + 33 + + + col1 FROM tab0 AS cor0
----
114
34
54

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

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

query I rowsort
SELECT ALL + col1 + col1 * - ( - ( col0 ) ) FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT 92 - - col0 AS col1 FROM tab2 AS cor0
----
138
156
167

query I rowsort
SELECT DISTINCT + 23 + - col1 AS col2 FROM tab2 cor0
----
-28
-44
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL + ( - COUNT( * ) ) + - - 18 AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + ( - COUNT ( * ) ) + - - 18 AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + 2 * - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-185
-79
-95

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

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

query I rowsort
SELECT + col0 * - + col2 * - - 25 - + + 21 AS col1 FROM tab1 AS cor0
----
-122421
-125396
-154721

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99, col1 + col0 col1 FROM tab2
----
99
141
99
142
99
97

query II rowsort
SELECT ALL col2, 79 AS col1 FROM tab2
----
23
79
40
79
58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL + ( 14 ) * - - MAX( DISTINCT + col0 ) FROM tab1
----
1274

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + ( 14 ) * - - MAX ( DISTINCT + col0 ) FROM tab1
----
1274

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + ( + 48 ) / col0 * - 83
----

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE NOT - ( + 67 ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 53 + col1 AS col0 FROM tab2
----
104
120
130

query I rowsort
SELECT - ( - col2 ) + - 74 FROM tab2 AS cor0
----
-16
-34
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT MAX( - col2 ) + - 93 FROM tab1 cor0
----
-152

skipif mysql # not compatible
query I rowsort label-453
SELECT MAX ( - col2 ) + - 93 FROM tab1 cor0
----
-152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 9 - - + 30 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - 67 + + COUNT( * ) + - COUNT( DISTINCT - 80 ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-455
SELECT - 67 + + COUNT ( * ) + - COUNT ( DISTINCT - 80 ) AS col1 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT ALL - col0 + + ( col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT + col1 DIV - - col2 - + 19 FROM tab0 cor0
----
-17
-18
-19

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + col1 / - - col2 - + 19 FROM tab0 cor0
----
-17
-18
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT DISTINCT COUNT( * ) * - 53 + 56 * + 61 FROM tab1 AS cor0
----
3257

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT COUNT ( * ) * - 53 + 56 * + 61 FROM tab1 AS cor0
----
3257

query I rowsort
SELECT col2 + - col0 * + - col0 FROM tab1 AS cor0
----
2697
7284
8349

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

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

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 * - 85 + + - col2 col1 FROM tab0
----
-17860
-323642
-8514

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT col0 DIV + + 3 AS col0 FROM tab0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT col0 / + + 3 AS col0 FROM tab0
----
29
32
5

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

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

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

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

query I rowsort
SELECT ALL 39 * - 38 + + + 52 FROM tab1
----
-1430
-1430
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 58 <= + col0 - + ( + + col0 ) + + 22
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 58 <= + col0 - + ( + + col0 ) + + 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT ALL - 35 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - 35 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT - 79 - - 64 + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT - 79 - - 64 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * ( 50 ) + - + col0 + 90 + + + col2 + + - col0 / col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT - 75 DIV 31 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-2

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - 75 / 31 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT + ( SUM( ALL ( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT + ( SUM ( ALL ( CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT + ( - 76 ) AS col0, 64 FROM tab1 AS cor0
----
-76
64
-76
64
-76
64

query I rowsort
SELECT DISTINCT 98 + - - 85 AS col0 FROM tab1 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT + + ( + MIN( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE 30 + col2 + col0 + col0 BETWEEN 71 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + + ( + MIN ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE 30 + col2 + col0 + col0 BETWEEN 71 AND col1
----
NULL

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

query I rowsort
SELECT ALL 4 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4
4
4

query II rowsort
SELECT ALL + col1 * - 66, col0 FROM tab2 AS cor0
----
-3366
46
-4422
75
-5082
64

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

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

query II rowsort
SELECT col2 AS col2, col1 FROM tab1 AS cor0 WHERE NOT + col0 * + + col1 IS NULL
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IS NULL OR + + col0 + + 11 IS NULL
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 * col2 col1 FROM tab0
----
2632
5544
560

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

query II rowsort
SELECT - col0 AS col0, col0 - + + 88 * - - col2 FROM tab0
----
-15
-4121
-87
-793
-97
-8615

query I rowsort
SELECT - ( - - 82 ) * - - col2 AS col1 FROM tab0
----
-3854
-8118
-820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-491
SELECT - col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT - col0 / CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 41 AS col2, - 86 AS col0 FROM tab1 AS cor0
----
41
-86
41
-86
41
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT + + MAX( ALL col2 ) AS col2, COUNT( * ) col1 FROM tab0 cor0
----
99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-493
SELECT + + MAX ( ALL col2 ) AS col2, COUNT ( * ) col1 FROM tab0 cor0
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-494
SELECT DISTINCT + col1 AS col0, - col2 * - - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-494
SELECT DISTINCT + col1 AS col0, - col2 * - - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col0 * + 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT ALL - - CAST( 90 AS SIGNED ) FROM tab1 cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - - CAST ( 90 AS INTEGER ) FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT ALL + col1 * + + 64 AS col1 FROM tab1 AS cor0
----
3008
320
896

query II rowsort
SELECT DISTINCT - 18 AS col0, + 71 FROM tab0 AS cor0
----
-18
71

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

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

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

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT COUNT ( DISTINCT - 5 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 + + col0 col2, - col2 AS col0 FROM tab2
----
128
-23
146
-40
157
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT ( + - 96 ) DIV + col0 + - + col0 AS col1 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-502
SELECT ( + - 96 ) / + col0 + - + col0 AS col1 FROM tab2
----
-48
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + + col1 col0 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + 92 * - - 83 AS col2 FROM tab0, tab1 AS cor0
----
7636

query I rowsort
SELECT DISTINCT col2 + 65 * 82 AS col2 FROM tab2
----
5353
5370
5388

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

query I rowsort
SELECT ALL + col1 * - 7 + - col1 * - 28 AS col0 FROM tab1
----
105
294
987

query I rowsort
SELECT DISTINCT - 78 - - 61 + - col0 FROM tab2 cor0
----
-63
-81
-92

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

skipif mysql # not compatible
query III rowsort label-509
SELECT * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) * + 86 * col1 NOT IN ( - col2 - col1, - col0 - - col0, + col2, + col0, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 5 - + col2, + 3 + 34 col0 FROM tab1 AS cor0
----
-101
37
-64
37
-73
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-511
SELECT CAST( NULL AS DECIMAL ) * 73 - - - col2 - + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT CAST ( NULL AS REAL ) * 73 - - - col2 - + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-512
SELECT + + CAST( - col2 AS SIGNED ) col2 FROM tab0 WHERE NOT - - col2 > NULL
----

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

query I rowsort
SELECT ALL - - 11 * col2 AS col2 FROM tab2 AS cor0
----
253
440
638

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

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

query II rowsort
SELECT + col1 AS col0, 62 + col0 AS col1 FROM tab0 AS cor0
----
1
159
21
149
81
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT 66 * col0 DIV 48 FROM tab2 cor0
----
103
63
88

skipif mysql # not compatible
query I rowsort label-517
SELECT 66 * col0 / 48 FROM tab2 cor0
----
103
63
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-518
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 68 * - CAST( col1 AS DECIMAL ) - + 57 * - col1 IN ( + - 48, col2, + col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-518
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 68 * - CAST ( col1 AS REAL ) - + 57 * - col1 IN ( + - 48, col2, + col2 )
----
46
64
75

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

query II rowsort
SELECT + 77, col0 - col2 AS col2 FROM tab0 AS cor0
----
77
-2
77
-32
77
77

query II rowsort
SELECT - col1, - col1 * - 62 * + + 21 AS col1 FROM tab2 AS cor0
----
-51
66402
-67
87234
-77
100254

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

query I rowsort
SELECT - ( - 51 ) AS col0 FROM tab2
----
51
51
51

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

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

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 )
----
10
47
99

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT - COUNT( * ) DIV - MIN( 37 ) * + COUNT( * ) * - + 76 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-529
SELECT - COUNT ( * ) / - MIN ( 37 ) * + COUNT ( * ) * - + 76 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-531
SELECT - col2 DIV 44 * + col0 FROM tab1 AS cor0
----
-102
-85
-91

skipif mysql # not compatible
query I rowsort label-531
SELECT - col2 / 44 * + col0 FROM tab1 AS cor0
----
-102
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-532
SELECT ALL * FROM tab2 cor0 WHERE NOT 97 BETWEEN + + CAST( + col0 AS SIGNED ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-532
SELECT ALL * FROM tab2 cor0 WHERE NOT 97 BETWEEN + + CAST ( + col0 AS INTEGER ) AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-533
SELECT DISTINCT + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-533
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - col2 ) * + 87 AS col0 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT DISTINCT + ( + 69 ) + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + ( + 69 ) + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT DISTINCT col1 + + - col2 + + col1 FROM tab1
----
-49
-68
26

query I rowsort
SELECT ALL 63 + col1 AS col0 FROM tab0
----
144
64
84

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

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

query I rowsort
SELECT col0 - - col0 * + - col2 AS col2 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - 45
----
3

skipif mysql # not compatible
query I rowsort label-543
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - 45
----
3

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

query I rowsort
SELECT DISTINCT - col2 + + + col0 * - col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT - 84 + + - 89 FROM tab0 AS cor0
----
-173
-173
-173

query I rowsort
SELECT DISTINCT + col2 * + 71 - + col1 AS col2 FROM tab2 cor0
----
1582
2763
4051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 col1, col0 + - col0 FROM tab1 AS cor0
----
85
0
85
0
85
0

query I rowsort
SELECT col0 * + 41 AS col1 FROM tab2
----
1886
2624
3075

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-550
SELECT + 47 + col1, 51 FROM tab2 AS cor0 WHERE NOT ( col2 + CAST( - + 68 AS SIGNED ) / - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-550
SELECT + 47 + col1, 51 FROM tab2 AS cor0 WHERE NOT ( col2 + CAST ( - + 68 AS INTEGER ) / - col1 ) IS NOT NULL
----

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

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

query I rowsort
SELECT + ( - - col2 ) * - 24 + - col0 AS col0 FROM tab0 cor0
----
-1143
-2473
-327

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

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

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

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

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

query I rowsort
SELECT col1 * + 83 AS col0 FROM tab2
----
4233
5561
6391

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT 97 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - ( + - col2 ) col2 FROM tab1
----
59
59
68
68
96
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col1 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT 1 + + SUM( ALL col1 ) * 0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-562
SELECT 1 + + SUM ( ALL col1 ) * 0 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT DISTINCT - COUNT( * ) * CAST( MIN( - col1 ) * + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - COUNT ( * ) * CAST ( MIN ( - col1 ) * + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL <> ( NULL )
----
NULL

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

query I rowsort
SELECT ALL 3 FROM tab0 WHERE NOT ( NULL ) = col2
----

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE + col1 >= ( col1 * - col2 )
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col2 FROM tab1 WHERE NOT + col1 < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT col2 * - col0 + col1 DIV - col2 FROM tab0
----
-706
-872
-9603

skipif mysql # not compatible
query I rowsort label-568
SELECT col2 * - col0 + col1 / - col2 FROM tab0
----
-706
-872
-9603

query I rowsort
SELECT ALL col0 * ( col1 * - col1 ) AS col1 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT ALL - col0 + 98 FROM tab2
----
23
34
52

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * 77 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT 47 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT 73 * + col1 FROM tab0
----
1533
5913
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - 46 * COUNT( + col0 ) AS col0 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-576
SELECT - 46 * COUNT ( + col0 ) AS col0 FROM tab0
----
-138

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - 4 col1 FROM tab1
----
-204
-340
-364

query I rowsort
SELECT 2 * + col0 + col1 AS col2 FROM tab1
----
116
175
229

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT col0 DIV 42 + col2 * - 85 AS col2 FROM tab0
----
-3995
-8413
-848

skipif mysql # not compatible
query I rowsort label-580
SELECT col0 / 42 + col2 * - 85 AS col2 FROM tab0
----
-3995
-8413
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT DISTINCT ( MAX( + 97 ) ) AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT ( MAX ( + 97 ) ) AS col2 FROM tab2
----
97

query I rowsort
SELECT ALL col0 * - ( + 29 ) FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= 53 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL + 33 * - SUM( - 48 ) FROM tab1
----
4752

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + 33 * - SUM ( - 48 ) FROM tab1
----
4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT col0 + + CAST( + 82 AS SIGNED ) FROM tab2 AS cor0
----
128
146
157

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT col0 + + CAST ( + 82 AS INTEGER ) FROM tab2 AS cor0
----
128
146
157

query I rowsort
SELECT 96 * 64 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL COUNT( * ) * + 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
657

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL COUNT ( * ) * + 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
657

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

query I rowsort
SELECT - col1 - col1 FROM tab0 WHERE NOT 43 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab1 WHERE NOT col1 IN ( + col2 + - col0 * col1 )
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT col0 / - col1 AS col2 FROM tab1 WHERE NOT col1 IN ( + col2 + - col0 * col1 )
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT + - 29 * - col2 AS col0 FROM tab1 AS cor0
----
1711
1972
2784

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 77 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-597
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-597
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= col2 * - ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - COUNT( * ) * - 58 AS col2 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-599
SELECT - COUNT ( * ) * - 58 AS col2 FROM tab1 AS cor0
----
174

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 NOT IN ( - col1 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( + 1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT 72 + + COUNT( col2 ) AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( - 63 * + ( + col0 ) )
----
72

skipif mysql # not compatible
query I rowsort label-604
SELECT 72 + + COUNT ( col2 ) AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( - 63 * + ( + col0 ) )
----
72

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + - 18 * + 82 FROM tab0 WHERE ( NULL ) IS NULL
----
-1377
-1429
-1466

query I rowsort
SELECT ALL + col0 * - - col2 + + 51 FROM tab0
----
756
921
9654

query I rowsort
SELECT + AVG ( DISTINCT - 28 ) FROM tab0 AS cor0 WHERE NOT NULL < ( - 75 * + 27 )
----
NULL

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

query I rowsort
SELECT - col2 + - - 98 AS col0 FROM tab1 AS cor0
----
2
30
39

query I rowsort
SELECT + col2 + - - 55 * col0 FROM tab0 AS cor0
----
4795
5434
872

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT ALL col1 DIV + + CAST( - - col1 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL col1 / + + CAST ( - - col1 AS INTEGER ) FROM tab0
----
1
1
1

query I rowsort
SELECT - + 61 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-617
SELECT DISTINCT * FROM tab1 WHERE ( + col1 / CAST( + 42 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-617
SELECT DISTINCT * FROM tab1 WHERE ( + col1 / CAST ( + 42 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL + MAX( ALL + ( - - ( col1 ) ) ) + - SUM( DISTINCT 89 ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + MAX ( ALL + ( - - ( col1 ) ) ) + - SUM ( DISTINCT 89 ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + 16 - 83 AS col0 FROM tab2 AS cor0
----
-67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-621
SELECT ALL - - 93 AS col0, COUNT( * ) DIV + 14 FROM tab2 cor0
----
93
0

skipif mysql # not compatible
query II rowsort label-621
SELECT ALL - - 93 AS col0, COUNT ( * ) / + 14 FROM tab2 cor0
----
93
0

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

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

query I rowsort
SELECT ALL - 8 * 21 * 57 * col2 - - col0 * col2 FROM tab0 AS cor0
----
-449367
-938421
-94890

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

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

query I rowsort
SELECT DISTINCT - col2 * + - col2 * - 0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT COUNT( * ) * 97 * 77 FROM tab2
----
22407

skipif mysql # not compatible
query I rowsort label-627
SELECT COUNT ( * ) * 97 * 77 FROM tab2
----
22407

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL + - CAST( - - 56 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + - CAST ( - - 56 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

query I rowsort
SELECT - - ( 16 ) * 70 FROM tab0 AS cor0
----
1120
1120
1120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT DISTINCT - CAST( 77 AS SIGNED ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT - CAST ( 77 AS INTEGER ) FROM tab1 AS cor0
----
-77

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT 89 + - 31 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) BETWEEN NULL AND - col0 / + col2 + col2 * 20
----

skipif mysql # not compatible
query I rowsort label-637
SELECT 89 + - 31 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) BETWEEN NULL AND - col0 / + col2 + col2 * 20
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * + + col1 + - col0 * - col2 FROM tab2 AS cor0
----
-1288
-2368
-675

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * + + col1 + - col0 * - col2 FROM tab2 AS cor0
----
-1288
-2368
-675

query II rowsort
SELECT col2, - 1 + - 94 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
-95
68
-95
96
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT - MIN( - 91 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-641
SELECT - MIN ( - 91 ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT - ( - + col0 ) + + col1 - + - col0 FROM tab1
----
116
175
229

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-643
SELECT DISTINCT - 37 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT MAX( - col2 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT MAX ( - col2 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL + COUNT( ALL + col0 ) * - SUM( DISTINCT - col0 ) + SUM( + + 13 ) FROM tab1
----
720

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + COUNT ( ALL + col0 ) * - SUM ( DISTINCT - col0 ) + SUM ( + + 13 ) FROM tab1
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT COUNT( * ) DIV COUNT( * ) + 31 AS col1 FROM tab1 AS cor0 WHERE - col2 - + col0 + - 52 - + col0 * + col0 DIV + col0 NOT BETWEEN + 32 AND - 13
----
32

skipif mysql # not compatible
query I rowsort label-648
SELECT COUNT ( * ) / COUNT ( * ) + 31 AS col1 FROM tab1 AS cor0 WHERE - col2 - + col0 + - 52 - + col0 * + col0 / + col0 NOT BETWEEN + 32 AND - 13
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 - - + 61 col1 FROM tab1
----
158
158
158

query I rowsort
SELECT ALL 16 + col0 + col1 FROM tab2
----
113
157
158

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + COUNT( * ) + - 34 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-652
SELECT + COUNT ( * ) + - 34 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-653
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col2 * + col2 - + CAST( + + 82 AS SIGNED ) * col0 - + col0 BETWEEN ( col2 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-653
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col2 * + col2 - + CAST ( + + 82 AS INTEGER ) * col0 - + col0 BETWEEN ( col2 ) AND NULL )
----

query I rowsort
SELECT ALL - col2 + - col0 + + + 64 FROM tab0 AS cor0
----
-132
-33
2

query I rowsort
SELECT ALL 26 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

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

query I rowsort
SELECT ALL + col2 * - col1 - + col0 FROM tab1
----
-1395
-3287
-380

query II rowsort
SELECT ALL - col1, col0 + - + col2 AS col1 FROM tab2
----
-51
23
-67
17
-77
24

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 97 + - col0 + col0 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col0 * - + col1 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT - - col1 + - col2 >= + col0 / - 14
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + + SUM( - + 48 ) AS col1 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-663
SELECT + + SUM ( - + 48 ) AS col1 FROM tab2 AS cor0
----
-144

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

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

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

query II rowsort
SELECT 74 AS col1, 7 AS col1 FROM tab2 AS cor0
----
74
7
74
7
74
7

query I rowsort
SELECT 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 31 * + ( 17 ) * + 77 * - + 15 AS col1 FROM tab1
----
-608685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 61 * + 29 + + col1 / + + col2 * 31 - - 8
----

query I rowsort
SELECT - col1 + - col0 + + ( + 26 ) + + + 13 - - 9 * + 51 FROM tab2 AS cor0
----
356
357
401

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-671
SELECT + - 37 DIV - CAST( - 50 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-671
SELECT + - 37 / - CAST ( - 50 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col2 * 47 AS col1, - col1 * + - col1 FROM tab2 cor0
----
-1081
2601
-1880
5929
-2726
4489

query I rowsort
SELECT ALL 53 * + 74 FROM tab1 AS cor0
----
3922
3922
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL - - 78 + + COUNT( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - - 78 + + COUNT ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
81

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-677
SELECT - 77, - col0 DIV - 21 AS col1 FROM tab2
----
-77
2
-77
3
-77
3

skipif mysql # not compatible
query II rowsort label-677
SELECT - 77, - col0 / - 21 AS col1 FROM tab2
----
-77
2
-77
3
-77
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 > + + col2
----
87
21
10

query I rowsort
SELECT DISTINCT - col0 + 40 AS col0 FROM tab2
----
-24
-35
-6

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

skipif mysql # not compatible
query I rowsort label-680
SELECT - MAX ( DISTINCT + + col2 ) FROM tab2
----
-58

query II rowsort
SELECT ALL 70 * + col1 + + - col1 + + col1 + + col1 AS col1, - 46 FROM tab2
----
3621
-46
4757
-46
5467
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT + col1 DIV + ( + col1 ) + - - 20 col2 FROM tab2
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-682
SELECT DISTINCT + col1 / + ( + col1 ) + - - 20 col2 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * col0 col0 FROM tab2 AS cor0 WHERE col0 * col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col1 + + + col0 + + 35 + + col1 * - ( + 93 ) FROM tab1 AS cor0
----
-1230
-350
-4292

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

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

query I rowsort
SELECT + col1 + 54 * col1 FROM tab2 cor0
----
2805
3685
4235

query I rowsort
SELECT - - ( + - 56 ) * - col1 + ( + 64 ) AS col2 FROM tab1 cor0
----
2696
344
848

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT + COUNT( * ) DIV COUNT( * ) + 83 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-691
SELECT + COUNT ( * ) / COUNT ( * ) + 83 FROM tab2 AS cor0
----
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT + col0 DIV + col1 + + col2 * col2 FROM tab0 AS cor0
----
104
2209
9898

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT + col0 / + col1 + + col2 * col2 FROM tab0 AS cor0
----
104
2209
9898

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-694
SELECT - 29 * - + ( + col0 ) * + col1 + - - col2 + - 39 * + - CAST( - + ( 41 ) AS SIGNED ), col1 AS col0 FROM tab0 AS cor0
----
1313
1
33683
81
51394
21

skipif mysql # not compatible
query II rowsort label-694
SELECT - 29 * - + ( + col0 ) * + col1 + - - col2 + - 39 * + - CAST ( - + ( 41 ) AS INTEGER ), col1 AS col0 FROM tab0 AS cor0
----
1313
1
33683
81
51394
21

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT MAX( DISTINCT col1 ) * + 15 AS col0 FROM tab1 AS cor0 WHERE NULL = - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT MAX ( DISTINCT col1 ) * + 15 AS col0 FROM tab1 AS cor0 WHERE NULL = - 32
----
NULL

query I rowsort
SELECT DISTINCT col2 - - + col2 + 99 FROM tab0 AS cor0
----
119
193
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - + - col1 * 81 col2 FROM tab0 AS cor0
----
1680
6480
80

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT NULL >= + 99 / col0 + + - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-701
SELECT DISTINCT - 75 * COUNT( * ) col0, - CAST( NULL AS SIGNED ) * - MIN( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
-225
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-701
SELECT DISTINCT - 75 * COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) * - MIN ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
-225
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( 79 ) * + col1 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT - CAST( - 38 AS SIGNED ) FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-703
SELECT - CAST ( - 38 AS INTEGER ) FROM tab1 AS cor0
----
38
38
38

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

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab2 WHERE NULL IS NULL
----
128
150
92

query I rowsort
SELECT DISTINCT - 33 FROM tab0 WHERE - col0 = - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT - CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-707
SELECT - CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT ALL - 3 col2, 42 + - - COUNT( * ) + 50 FROM tab0 AS cor0
----
-3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-708
SELECT ALL - 3 col2, 42 + - - COUNT ( * ) + 50 FROM tab0 AS cor0
----
-3
95

query I rowsort
SELECT - 50 + - 58 AS col1 FROM tab2
----
-108
-108
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT MIN( - col1 ) * + ( + + 80 ) + 82 + - - SUM( ALL + ( 1 ) ) FROM tab0
----
-6395

skipif mysql # not compatible
query I rowsort label-710
SELECT MIN ( - col1 ) * + ( + + 80 ) + 82 + - - SUM ( ALL + ( 1 ) ) FROM tab0
----
-6395

query I rowsort
SELECT DISTINCT 35 + col2 - - col0 AS col0 FROM tab1
----
179
182
194

query I rowsort
SELECT + ( - - col1 ) + 29 FROM tab1
----
34
43
76

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - - COUNT( * ) * - - 81 * MAX( ALL col2 ) FROM tab1 AS cor0
----
23328

skipif mysql # not compatible
query I rowsort label-716
SELECT - - COUNT ( * ) * - - 81 * MAX ( ALL col2 ) FROM tab1 AS cor0
----
23328

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT COUNT( ALL - ( + col1 ) ) * - + 37 - 15 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-717
SELECT COUNT ( ALL - ( + col1 ) ) * - + 37 - 15 FROM tab1
----
-126

query I rowsort
SELECT + col0 - + 56 AS col2 FROM tab0
----
-41
31
41

query I rowsort
SELECT ALL + ( + - col0 ) + + 93 + col0 FROM tab2
----
93
93
93

query I rowsort
SELECT ALL + 63 + - - col1 * + + 26 FROM tab2
----
1389
1805
2065

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-721
SELECT ALL + - 41 + + 78 + + col0 - - col0 DIV + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
105
127
85

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + - 41 + + 78 + + col0 - - col0 / + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
105
127
85

query I rowsort
SELECT ALL + col0 - + 49 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
479
49
6527

query I rowsort
SELECT DISTINCT + 80 * - col1 FROM tab0 cor0
----
-1680
-6480
-80

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col0 * - 72 * - - 83 col0 FROM tab1 AS cor0
----
2539800
25559352
4266864

query I rowsort
SELECT ALL - - 37 AS col1 FROM tab1 cor0 WHERE + col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT + 36 * - COUNT( + - 55 ) AS col2 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-729
SELECT + 36 * - COUNT ( + - 55 ) AS col2 FROM tab1
----
-108

query I rowsort
SELECT ALL + col1 * 87 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - + + 62 + 49 / 35 = ( + 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 - + ( - col2 ) ) <> 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL SUM( DISTINCT + - col0 ) * - COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL SUM ( DISTINCT + - col0 ) * - COUNT ( * ) FROM tab2
----
555

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-736
SELECT + + CAST( 33 AS SIGNED ) * 65 DIV col1 + + 27 FROM tab1 AS cor0
----
180
456
72

skipif mysql # not compatible
query I rowsort label-736
SELECT + + CAST ( 33 AS INTEGER ) * 65 / col1 + + 27 FROM tab1 AS cor0
----
180
456
72

query II rowsort
SELECT DISTINCT - col1 + - col0 - + - 88 AS col0, col2 * 95 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 * + col1 * ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + SUM( ALL - 37 ) AS col1 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-738
SELECT + SUM ( ALL - 37 ) AS col1 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT DISTINCT + 2 FROM tab1 AS cor0 WHERE + 83 IS NOT NULL
----
2

query I rowsort
SELECT 36 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 66 + + - col0 AS col2 FROM tab2 AS cor0
----
-9
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT ALL - + 14 + + MIN( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - + 14 + + MIN ( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - - 11 AS col2 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT COUNT( * ) * 20 AS col1 FROM tab1, tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-744
SELECT COUNT ( * ) * 20 AS col1 FROM tab1, tab2 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-199

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-199

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

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

query I rowsort
SELECT ALL col2 - - 38 AS col1 FROM tab0 AS cor0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - - SUM( + col0 ) + - - MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
262

skipif mysql # not compatible
query I rowsort label-749
SELECT - - SUM ( + col0 ) + - - MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
262

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL + COUNT( * ) * - + 12 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + COUNT ( * ) * - + 12 FROM tab2 cor0
----
-36

query I rowsort
SELECT DISTINCT col1 * col1 * - col2 * - col2 FROM tab2
----
1375929
15100996
9486400

query I rowsort
SELECT col1 * + ( + 65 ) FROM tab1
----
3055
325
910

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-754
SELECT DISTINCT COUNT( - CAST( NULL AS DECIMAL ) ) AS col1, + 85 AS col0 FROM tab1 AS cor0
----
0
85

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT COUNT ( - CAST ( NULL AS REAL ) ) AS col1, + 85 AS col0 FROM tab1 AS cor0
----
0
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col2 FROM tab0 AS cor0 WHERE NOT NULL = + col0 * col2 * - + 63
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-757
SELECT DISTINCT 23 * + col0 AS col1, CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE col1 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-757
SELECT DISTINCT 23 * + col0 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE col1 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT + col0 * + col2 - - 4 FROM tab1 AS cor0
----
4900
5019
6192

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 60, col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT + COUNT( * ), + COUNT( * ) FROM tab2 WHERE NOT 25 NOT IN ( + col0 )
----
0
0

skipif mysql # not compatible
query II rowsort label-761
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT 25 NOT IN ( + col0 )
----
0
0

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

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT - col0 NOT IN ( - 72 / col2, 51 )
----

query I rowsort
SELECT col2 * - 55 AS col2 FROM tab2
----
-1265
-2200
-3190

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

query I rowsort
SELECT 53 * + col0 AS col2 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL + COUNT( ALL 99 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + COUNT ( ALL 99 ) FROM tab1
----
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND - + col2 * + ( - - CAST( + + 54 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND - + col2 * + ( - - CAST ( + + 54 AS INTEGER ) )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 * + + 54 + col1 AND - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT - + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - + col2 / col2 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT DISTINCT + COUNT( * ) AS col2, + 67 FROM tab1 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-775
SELECT DISTINCT + COUNT ( * ) AS col2, + 67 FROM tab1 AS cor0
----
3
67

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT ALL - ( + col0 ) DIV - - col2 + - - 75 - - + col0 * - + col1 + + + col0 FROM tab2 WHERE NOT + ( col0 ) IS NULL
----
-2227
-4790
-4876

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - ( + col0 ) / - - col2 + - - 75 - - + col0 * - + col1 + + + col0 FROM tab2 WHERE NOT + ( col0 ) IS NULL
----
-2227
-4790
-4876

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col0 - + + col2 * 24 * + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 36 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - col1 + col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - COUNT( + - ( - + ( - 11 ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-783
SELECT - COUNT ( + - ( - + ( - 11 ) ) ) AS col0 FROM tab2
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-784
SELECT - ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT - - COUNT( * ) DIV + 61 + 1 * SUM( - - 97 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-787
SELECT - - COUNT ( * ) / + 61 + 1 * SUM ( - - 97 ) FROM tab0 AS cor0
----
291

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT DISTINCT + ( + - COUNT( * ) ) * 22 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + ( + - COUNT ( * ) ) * 22 FROM tab2
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 - + - 66 >= + 28 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 + - - col0 col1 FROM tab2
----
140
158
169

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT + col2 * + CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab1
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-795
SELECT + col2 * + CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab1
----
1440
3264
354

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

skipif mysql # not compatible
query I rowsort label-796
SELECT + COUNT ( * ) + - - 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query II rowsort
SELECT DISTINCT ( + col1 ) + + col0 AS col0, 78 AS col0 FROM tab0
----
108
78
96
78
98
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL - col0 DIV - 64 + - - col2 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - col0 / - 64 + - - col2 FROM tab2 AS cor0
----
23
41
59

query I rowsort
SELECT + col2 * - + 61 AS col2 FROM tab0 cor0
----
-2867
-6039
-610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 86 + 49 - - - col1 col0 FROM tab0 AS cor0
----
134
1834
6934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT + col2 / + col1 AS col1 FROM tab0 AS cor0 WHERE ( ( NOT 58 - + - 96 NOT BETWEEN CAST( + col2 AS SIGNED ) AND + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-802
SELECT + col2 / + col1 AS col1 FROM tab0 AS cor0 WHERE ( ( NOT 58 - + - 96 NOT BETWEEN CAST ( + col2 AS INTEGER ) AND + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-803
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) DIV - 92 * + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) / - 92 * + - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL MIN ( ALL col2 ) FROM tab1
----
59

query I rowsort
SELECT - 54 + - col0 - - + 50 FROM tab2
----
-50
-68
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <= - 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT + col2 DIV + 95 + + 49 - + 37 FROM tab0
----
12
12
13

skipif mysql # not compatible
query I rowsort label-807
SELECT + col2 / + 95 + + 49 - + 37 FROM tab0
----
12
12
13

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT col1 - + - col2 * col1 DIV - col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT col1 - + - col2 * col1 / - col1 FROM tab0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - 35 * + col2 col2 FROM tab1 AS cor0
----
-2070
-2427
-3374

query I rowsort
SELECT - + 48 + + - col2 FROM tab0 AS cor0
----
-147
-58
-95

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT ALL + 26 AS col0, 94 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
26
846

skipif mysql # not compatible
query II rowsort label-813
SELECT ALL + 26 AS col0, 94 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
26
846

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

skipif mysql # not compatible
query I rowsort label-814
SELECT COUNT ( * ) / + 94 AS col1 FROM tab1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT 52 - - COUNT( col0 ) + COUNT( * ) FROM tab2 cor0 WHERE NOT ( + 62 ) BETWEEN NULL AND + col0 * + - col2
----
58

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT 52 - - COUNT ( col0 ) + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + 62 ) BETWEEN NULL AND + col0 * + - col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL col0 DIV - + 62 - col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL col0 / - + 62 - col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-60
-69
-96

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

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

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

query I rowsort
SELECT 50 * + + col2 + - col1 FROM tab2
----
1099
1923
2833

query I rowsort
SELECT - col1 + col0 * - ( col1 ) AS col2 FROM tab2
----
-2397
-5005
-5092

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

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

query I rowsort
SELECT ALL + + 78 + + + 88 AS col0 FROM tab1 AS cor0
----
166
166
166

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT + COUNT( - col0 ) FROM tab0 AS cor0 WHERE NOT - 64 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + COUNT ( - col0 ) FROM tab0 AS cor0 WHERE NOT - 64 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT ALL - 36, COUNT( * ) + + + 79 AS col0 FROM tab1 AS cor0
----
-36
82

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL - 36, COUNT ( * ) + + + 79 AS col0 FROM tab1 AS cor0
----
-36
82

query I rowsort
SELECT + 29 + + 99 AS col0 FROM tab2 AS cor0 WHERE 19 / col2 IS NOT NULL
----
128
128
128

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / col1 NOT BETWEEN - ( + - col1 ) AND ( col2 )
----
85
5
59

query I rowsort
SELECT - 62 * - 6 AS col1 FROM tab0
----
372
372
372

query I rowsort
SELECT ALL col0 * - 24 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT DISTINCT 50 * - 34 AS col0 FROM tab0
----
-1700

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

skipif mysql # not compatible
query III rowsort label-832
SELECT * FROM tab1 WHERE NULL BETWEEN col1 AND + CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + - 90 IS NOT NULL
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT + SUM( + 17 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + SUM ( + 17 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) NOT BETWEEN - + col2 + - 43 AND + + ( - - col0 ) / + + col0
----
97
1
99

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

query I rowsort
SELECT ALL col0 * + + 11 FROM tab1 cor0 WHERE NOT - col2 NOT IN ( col0, - 39, - - col1 + - col0 )
----

query I rowsort
SELECT - - 12 * - - col1 + - 72 FROM tab1 cor0
----
-12
492
96

query I rowsort
SELECT - + ( - 94 ) FROM tab1 cor0
----
94
94
94

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

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

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

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

query II rowsort
SELECT - col2 AS col0, + col2 * - 26 FROM tab1 AS cor0
----
-59
-1534
-68
-1768
-96
-2496

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

query I rowsort
SELECT - + col2 * - 85 FROM tab2 AS cor0
----
1955
3400
4930

query III rowsort
SELECT ALL col1 + - col0 AS col1, + 30 AS col2, col1 FROM tab0
----
9 values hashing to 78f73da6ab02e703eb4303257687789b

query I rowsort
SELECT - col0 + - ( + col0 ) AS col1 FROM tab2 WHERE + col2 <> - col1 / col1
----
-128
-150
-92

query I rowsort
SELECT DISTINCT col2 * col2 * - col1 * - + col2 + + col2 AS col1 FROM tab2
----
13072562
4928040
620540

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

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

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

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

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

query I rowsort
SELECT 60 + - 54 AS col0 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT 61 * + 47 * - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
-25803

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT 61 * + 47 * - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
-25803

query I rowsort
SELECT - - 59 AS col1 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT ALL 28 - - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-4868
-4987
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT + + 56 - - + SUM( DISTINCT - col2 ) - MIN( + 10 ) FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + + 56 - - + SUM ( DISTINCT - col2 ) - MIN ( + 10 ) FROM tab0 AS cor0
----
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 39, ( col0 ) col2 FROM tab2 AS cor0
----
39
46
39
64
39
75

query I rowsort
SELECT ALL - 3 + + - 82 * - col0 * + col2 AS col0 FROM tab0 AS cor0
----
57807
71337
787443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL ( - CAST( 36 AS SIGNED ) ) - + col1 FROM tab1 AS cor0
----
-41
-50
-83

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL ( - CAST ( 36 AS INTEGER ) ) - + col1 FROM tab1 AS cor0
----
-41
-50
-83

query I rowsort
SELECT ALL + col2 * ( - - ( col0 ) ) AS col1 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT - 47 - + 40 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT ALL col1 * + - col1 * + col1 AS col2 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-867
SELECT - CAST( NULL AS SIGNED ) / - - 21 * - 41 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT - CAST ( NULL AS INTEGER ) / - - 21 * - 41 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT - 47 DIV + + 48 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-868
SELECT - 47 / + + 48 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + MIN( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-869
SELECT + MIN ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

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

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 88 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

skipif mysql # not compatible
query I rowsort label-875
SELECT - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL - COUNT( DISTINCT 12 ) AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - COUNT ( DISTINCT 12 ) AS col0 FROM tab1 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 57 < 55
----

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

query II rowsort
SELECT - col1 + + col0, 11 AS col0 FROM tab1
----
37
11
44
11
80
11

query I rowsort
SELECT col2 + + 12 * 28 FROM tab2
----
359
376
394

query I rowsort
SELECT col1 * - col0 + - 42 * - - col0 AS col2 FROM tab2
----
-4278
-7616
-8175

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

query I rowsort
SELECT + col1 - - 94 AS col2 FROM tab0
----
115
175
95

query I rowsort
SELECT + 17 - ( - 17 ) + col2 + col2 FROM tab1
----
152
170
226

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON ( + 66 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT - col2 + - col0 DIV + col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-887
SELECT - col2 + - col0 / + col2 FROM tab2 AS cor0
----
-25
-41
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 BETWEEN NULL AND - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 + - col0 AS col1 FROM tab0
----
-720
-957
-9700

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + col2 BETWEEN - - 43 AND + col1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT col1 DIV + 74 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-892
SELECT col1 / + 74 AS col1 FROM tab0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT + 99 DIV COUNT( DISTINCT - 7 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-894
SELECT + 99 / COUNT ( DISTINCT - 7 ) FROM tab0 AS cor0
----
99

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

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - 63 * + - CAST ( NULL AS INTEGER ) / - 23 * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 + + ( + - col0 ) FROM tab1 WHERE NULL BETWEEN - col1 AND + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-897
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - MAX( ALL ( + col2 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - MAX ( ALL ( + col2 ) ) FROM tab2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + 22 + - COUNT ( * ) + - SUM ( ALL + col2 ) FROM tab1 AS cor0
----
-204

query II rowsort
SELECT + + 72 + col1 AS col1, - 74 + - col1 FROM tab2 AS cor0
----
123
-125
139
-141
149
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-901
SELECT MAX( DISTINCT + col2 ) * + COUNT( * ) * + COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
864
NULL

skipif mysql # not compatible
query II rowsort label-901
SELECT MAX ( DISTINCT + col2 ) * + COUNT ( * ) * + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
864
NULL

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

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

query I rowsort
SELECT + 44 * + 36 AS col1 FROM tab0 AS cor0
----
1584
1584
1584

query I rowsort
SELECT 43 * + 81 AS col0 FROM tab1 AS cor0
----
3483
3483
3483

query I rowsort
SELECT DISTINCT 54 * - - 4 FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - COUNT( * ) * - 61 * + + ( + + 25 ) AS col1 FROM tab1 AS cor0
----
4575

skipif mysql # not compatible
query I rowsort label-906
SELECT - COUNT ( * ) * - 61 * + + ( + + 25 ) AS col1 FROM tab1 AS cor0
----
4575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 AS cor0 WHERE NOT + col0 >= 72 * + col2
----
-14
-47
-5

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

query I rowsort
SELECT + col2 FROM tab2 WHERE 78 * ( - 70 ) * - 27 IS NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL - + 68 FROM tab0 WHERE NOT col1 IS NULL AND - col0 IS NOT NULL
----
-68
-68
-68

query I rowsort
SELECT + col0 * col2 + - col1 - 35 AS col0 FROM tab0 AS cor0
----
589
814
9567

query I rowsort
SELECT - 24 + 58 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT - 34 * - col1 AS col2 FROM tab0
----
2754
34
714

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

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

query I rowsort
SELECT + col0 * + 37 AS col2 FROM tab1
----
1887
3145
3367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 - col2 col1 FROM tab0
----
-18
34
71

query II rowsort
SELECT + col2 AS col1, 89 * - - col0 FROM tab1 cor0
----
59
7565
68
8099
96
4539

query I rowsort
SELECT + 69 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT COUNT( * ), 82 AS col0 FROM tab2 cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-922
SELECT COUNT ( * ), 82 AS col0 FROM tab2 cor0
----
3
82

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

query I rowsort
SELECT DISTINCT + col0 * + col1 * col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
18270
57105
9603

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 61 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col1 * + 79 col0 FROM tab0 cor0
----
-34839
-518319
-79

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

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

query I rowsort
SELECT DISTINCT - 21 * 86 AS col0 FROM tab1 AS cor0
----
-1806

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-934
SELECT + CAST( + + col0 AS SIGNED ) + + col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
102
NULL
170
NULL
182
NULL

skipif mysql # not compatible
query II rowsort label-934
SELECT + CAST ( + + col0 AS INTEGER ) + + col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
102
NULL
170
NULL
182
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL + + COUNT( * ) + - + 98 AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + + COUNT ( * ) + - + 98 AS col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT - ( - + 51 ) + + col2 AS col1 FROM tab1
----
110
119
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + + col1 * col0 col1 FROM tab2
----
2419
5001
5098

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT - 93 DIV + - 65 + - + ( + + col2 ) FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - 93 / + - 65 + - + ( + + col2 ) FROM tab1
----
-58
-67
-95

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT ALL 86 DIV 33 + COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL 86 / 33 + COUNT ( * ) AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT - MAX( ALL col0 ) col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-941
SELECT - MAX ( ALL col0 ) col2 FROM tab2 cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL 63 - + - col0 DIV + col2 FROM tab1 cor0
----
63
64
64

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL 63 - + - col0 / + col2 FROM tab1 cor0
----
63
64
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 37, col1 * + + col1 * - 86 * - 89, CAST( + col0 AS SIGNED ) ) AND NOT ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 37, col1 * + + col1 * - 86 * - 89, CAST ( + col0 AS INTEGER ) ) AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - + 17 * + col0 + + - ( - 1 ) AS col2 FROM tab1 AS cor0
----
-1503
-1614
-962

query I rowsort
SELECT 39 - col0 AS col1 FROM tab0
----
-48
-58
24

query I rowsort
SELECT ALL - 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

query I rowsort
SELECT - 59 * + col2 AS col0 FROM tab0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT - 88 <> - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - 63 AS col2 FROM tab2
----
-3213
-4221
-4851

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

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

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

query I rowsort
SELECT + + 37 FROM tab0 cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 * + - 54 + + + 31 col0 FROM tab1 AS cor0
----
787
787
787

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

skipif mysql # not compatible
query I rowsort label-957
SELECT + SUM ( - + 77 ) AS col1 FROM tab1
----
-231

query I rowsort
SELECT 3 + + - col2 - - 44 * - + 22 * - 44 * - col1 * col2 FROM tab0 WHERE NOT col2 - + col0 > + + 63 + + - col0
----
-162147788
-8944327

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

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

query I rowsort
SELECT DISTINCT ( ( - 47 ) ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT + 87 * + 76 * + + 89 AS col1 FROM tab1 AS cor0
----
588468
588468
588468

query I rowsort
SELECT - col2 * + col1 * + - col1 + - col1 + col0 AS col2 FROM tab0 cor0
----
195
308301
4476

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-964
SELECT DISTINCT - col0, ( + CAST( NULL AS SIGNED ) ) * - col0 + - + col0 * - - col2 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-964
SELECT DISTINCT - col0, ( + CAST ( NULL AS INTEGER ) ) * - col0 + - + col0 * - - col2 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - + 85 ) + - + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL - CAST( ( - col1 ) AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - CAST ( ( - col1 ) AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + 53 * + col1 FROM tab0 AS cor0
----
1113
4293
53

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL - col0 * 0 - col2 + col0 DIV - 53 AS col0 FROM tab0 AS cor0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - col0 * 0 - col2 + col0 / - 53 AS col0 FROM tab0 AS cor0
----
-100
-11
-47

query I rowsort
SELECT DISTINCT col1 + col0 + - 96 - + 58 + - col0 * + col1 FROM tab2 AS cor0
----
-2403
-4941
-5037

query I rowsort
SELECT 81 * - - col2 FROM tab0 AS cor0
----
3807
8019
810

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT + 89 DIV + COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-972
SELECT + 89 / + COUNT ( * ) FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT 22 * + MAX( + 55 ) col1 FROM tab0
----
1210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-973
SELECT DISTINCT 22 * + MAX ( + 55 ) col1 FROM tab0
----
1210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 35 col0 FROM tab0
----
-25
12
64

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + col1 col2 FROM tab1
----
103
112
145

query I rowsort
SELECT + col2 * 24 + - col0 FROM tab1
----
1331
1541
2253

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
51
67
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT COUNT( * ) * CAST( + 84 AS SIGNED ) + 50 * - CAST( - 96 AS SIGNED ) AS col1 FROM tab2
----
5052

skipif mysql # not compatible
query I rowsort label-985
SELECT COUNT ( * ) * CAST ( + 84 AS INTEGER ) + 50 * - CAST ( - 96 AS INTEGER ) AS col1 FROM tab2
----
5052

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 18 NOT BETWEEN col2 AND ( col0 )
----

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

query I rowsort
SELECT DISTINCT col1 * col1 - col0 FROM tab2 WHERE NOT + 20 BETWEEN col2 AND ( NULL )
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + SUM( DISTINCT + 20 ) AS col1 FROM tab0 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT + SUM ( DISTINCT + 20 ) AS col1 FROM tab0 WHERE NOT NULL >= col0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 WHERE NOT col2 IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-992
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL < - col2 * CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL < - col2 * CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT - col1 * + col1 + - col0 FROM tab1
----
-110
-2300
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT DISTINCT 48 * - CAST( COUNT( ALL - 29 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 <= - col0 / col1
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT 48 * - CAST ( COUNT ( ALL - 29 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 <= - col0 / col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT SUM( 6 ) col2 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-998
SELECT SUM ( 6 ) col2 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 - 86 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 68 - col0 * 44 FROM tab1 cor0
----
-2176
-3672
-3936

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 40 NOT IN ( col0 + col1 * + col2 )
----

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

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

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

query I rowsort
SELECT 24 + + col2 AS col1 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT - 80 + - - col1 FROM tab0
----
-59
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( * ) + - 72 * 2 col2 FROM tab1
----
-141

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

query I rowsort
SELECT + 98 * + 10 AS col2 FROM tab0
----
980
980
980

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

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT SUM ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 52 * - + 76 FROM tab2
----
-3952

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL CAST ( NULL AS REAL ) - ( + col2 ) AS col1 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col2 * 69 AS col1 FROM tab2 AS cor0
----
-1587
-2760
-4002

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT ALL + COUNT( * ) DIV - MIN( - 6 ) - + COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + COUNT ( * ) / - MIN ( - 6 ) - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

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

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

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

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

query II rowsort
SELECT col1 AS col0, + col1 + + col1 AS col1 FROM tab0 AS cor0
----
1
2
21
42
81
162

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

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

query I rowsort
SELECT ALL - 9 * + col0 AS col1 FROM tab0 AS cor0
----
-135
-783
-873

query I rowsort
SELECT - 69 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1 * - col1
----

query I rowsort
SELECT DISTINCT + 59 * + ( col2 ) FROM tab1 AS cor0
----
3481
4012
5664

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 10 ) <= - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT - + 64 + CAST( - MIN( + col2 ) AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-123

skipif mysql # not compatible
query I rowsort label-1029
SELECT - + 64 + CAST ( - MIN ( + col2 ) AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-123

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 14 - + + 53 - col0 <= + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 BETWEEN ( NULL ) AND 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT 54 * 22 + - col1 AS col2 FROM tab1 cor0
----
1141
1174
1183

query I rowsort
SELECT col1 + 76 + + col0 - - ( col2 ) FROM tab1 cor0
----
225
237
282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL COUNT( * ) * - + 64 + - 2 col2 FROM tab2
----
-194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1039
SELECT ALL COUNT ( * ) * - + 64 + - 2 col2 FROM tab2
----
-194

query III rowsort
SELECT * FROM tab2 WHERE + - col1 BETWEEN col1 AND ( + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT MAX( col2 ) AS col1 FROM tab0 WHERE - 61 IN ( + - 89 + + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT MAX ( col2 ) AS col1 FROM tab0 WHERE - 61 IN ( + - 89 + + + 23 )
----
NULL

query I rowsort
SELECT ALL + 33 + + + col0 + + col2 AS col2 FROM tab1
----
177
180
192

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT DISTINCT - + 88 + - ( + 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-1045
SELECT DISTINCT - + 88 + - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 64 = col1
----

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT - + ( CAST ( NULL AS INTEGER ) ) + + 73 + - MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT - col1 * + col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1048
SELECT - col1 * + col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

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

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

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

query I rowsort
SELECT - + 72 + - 34 FROM tab1 cor0 WHERE - col1 = 53
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + col2 col1 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * - - col0 - 66 BETWEEN + + col2 AND col1 * - 74
----

query I rowsort
SELECT + ( + 11 ) AS col0 FROM tab1
----
11
11
11

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

skipif mysql # not compatible
query II rowsort label-1060
SELECT - ( - col2 ) AS col1, - CAST ( NULL AS INTEGER ) * 59 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL + + 59 * + MIN( - col1 ) FROM tab2 AS cor0
----
-4543

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + + 59 * + MIN ( - col1 ) FROM tab2 AS cor0
----
-4543

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( + col2 ) - 39 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col0 FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
-96
-96
-96

query II rowsort
SELECT DISTINCT + col2 * + col2 AS col0, col0 FROM tab2
----
1600
64
3364
75
529
46

query I rowsort
SELECT DISTINCT - 42 FROM tab1 WHERE NOT ( - col1 * + + col2 ) BETWEEN + 11 * col2 AND NULL
----
-42

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

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

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

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

query I rowsort
SELECT - col2 * + 97 * - col0 FROM tab2 AS cor0
----
102626
248320
421950

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT ALL 80 DIV + col1 col0 FROM tab1
----
1
16
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1071
SELECT ALL 80 / + col1 col0 FROM tab1
----
1
16
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1072
SELECT DISTINCT - 28 DIV ( + - COUNT( * ) ) AS col1, - 28 FROM tab1
----
9
-28

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT - 28 / ( + - COUNT ( * ) ) AS col1, - 28 FROM tab1
----
9
-28

query I rowsort
SELECT ALL col0 * + col1 + - + col0 FROM tab0
----
0
1200
1740

query I rowsort
SELECT col2 * 74 + + 45 + + ( - - col1 ) * + col0 AS col0 FROM tab0
----
2612
4738
7468

query I rowsort
SELECT DISTINCT + ( + 17 ) AS col2 FROM tab2 WHERE NULL BETWEEN - 85 / + col2 AND NULL
----

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

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

query I rowsort
SELECT + col0 + - ( - col0 ) + - 22 + + 89 FROM tab2
----
159
195
217

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( ALL + - 25 ) + + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( ALL + - 25 ) + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
-19

query I rowsort
SELECT 74 * - + ( - - 4 ) + - 59 FROM tab0
----
-355
-355
-355

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - - col2 * - 3 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( - - col1 )
----

query I rowsort
SELECT + col0 * + 7 AS col2 FROM tab1 AS cor0
----
357
595
637

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + col2 / 63 * + - col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 39 + 46 FROM tab1
----
85

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 9 + + col0 + - col0 + + 3 * - + col1 < + col2 * - + 17 + + col1 * - 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT 60 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-3060
-4020
-4620

skipif mysql # not compatible
query I rowsort label-1088
SELECT 60 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL ( + ( - col1 ) ) DIV + col1 + + - col2 * - + col0 FROM tab0
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL ( + ( - col1 ) ) / + col1 + + - col2 * - + col0 FROM tab0
----
704
869
9602

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1090
SELECT ( COUNT ( ALL - - col1 ) ) * + COUNT ( * ) col1 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 40 ) NOT IN ( 54, ( 20 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <> - col1 / - + 38 * + col2 + col1 + 27 * + + ( ( col0 ) ) - - col0 / + col1
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT - MAX( DISTINCT col1 ) * - + COUNT( * ) + - 18 * 70 - - COUNT( * ) + - CAST( 96 AS SIGNED ) * - - 89 * + + 59 FROM tab2 AS cor0
----
-505122

skipif mysql # not compatible
query I rowsort label-1096
SELECT - MAX ( DISTINCT col1 ) * - + COUNT ( * ) + - 18 * 70 - - COUNT ( * ) + - CAST ( 96 AS INTEGER ) * - - 89 * + + 59 FROM tab2 AS cor0
----
-505122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT + + col0 * CAST( - 2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-1097
SELECT + + col0 * CAST ( - 2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-128
-150
-92

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

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

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

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

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

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

query I rowsort
SELECT - col1 * - col1 * - + col1 AS col2 FROM tab2 cor0
----
-132651
-300763
-456533

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT + - CAST( + col1 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1105
SELECT + - CAST ( + col1 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT - MIN( - col1 ) * - + 88 FROM tab0 AS cor0
----
-7128

skipif mysql # not compatible
query I rowsort label-1107
SELECT - MIN ( - col1 ) * - + 88 FROM tab0 AS cor0
----
-7128

query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

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

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

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

query I rowsort
SELECT - ( - + 38 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT ALL + ( - - 96 ) + + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + ( - - 96 ) + + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col0 ) NOT IN ( 87 * ( col2 ) + + col2 / - - 67, 65 / + 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <> + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * - ( + 77 ) * col0 + + 65 AS col2 FROM tab1 AS cor0
----
-200212
-556260
-637572

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 + + col0 >= + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT - 9 - col1 AS col2 FROM tab1 AS cor0
----
-14
-23
-56

query I rowsort
SELECT + 2 - - + col1 AS col1 FROM tab2 AS cor0
----
53
69
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT DISTINCT MIN( DISTINCT col0 ) + + 93 AS col0, + 25 FROM tab1 AS cor0
----
144
25

skipif mysql # not compatible
query II rowsort label-1122
SELECT DISTINCT MIN ( DISTINCT col0 ) + + 93 AS col0, + 25 FROM tab1 AS cor0
----
144
25

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

skipif mysql # not compatible
query I rowsort label-1123
SELECT + col0 - - ( + - col0 ) - + col2 / 46 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - + 97 - - 43 AS col0 FROM tab1 AS cor0
----
-54
-54
-54

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 97 * col0 + + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 AS col2 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + 15 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15
15
15

query I rowsort
SELECT ( - + 30 ) * - col2 AS col2 FROM tab0
----
1410
2970
300

query II rowsort
SELECT 70 * - col2 AS col2, ( - col0 ) FROM tab0
----
-3290
-15
-6930
-97
-700
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT COUNT( - 66 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1133
SELECT COUNT ( - 66 ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * - 0 col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - 90 AS col2 FROM tab1 cor0
----
-90
-90
-90

query I rowsort
SELECT - 72 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-72
-72
-72

query II rowsort
SELECT col2 AS col1, - col0 * 87 FROM tab2
----
23
-4002
40
-5568
58
-6525

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

query I rowsort
SELECT 64 * - 75 AS col1 FROM tab2
----
-4800
-4800
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT 31 * + 62 + - COUNT( * ), - 94 * + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1913
-376

skipif mysql # not compatible
query II rowsort label-1141
SELECT 31 * + 62 + - COUNT ( * ), - 94 * + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1913
-376

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-1395
-3287
-380

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + 44 + col2, 54 )
----

query I rowsort
SELECT + + col0 * 41 + col1 FROM tab1 AS cor0
----
2105
3490
3778

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

query I rowsort
SELECT DISTINCT - ( - 22 ) * + col0 + - + 80 AS col0 FROM tab2 AS cor0
----
1328
1570
932

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

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

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

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

query I rowsort
SELECT ALL col2 * - col1 + - col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT ALL - col0 * col1 + + 19 * + + col2 - 3 AS col0 FROM tab1 cor0
----
-2988
1107
693

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + 67 BETWEEN NULL AND - 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 55 + 78 FROM tab1
----
133
133
133

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT ALL COUNT( * ) DIV - 65 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL COUNT ( * ) / - 65 FROM tab2 cor0
----
0

query I rowsort
SELECT - ( + - 34 ) FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT ALL 34 * + 52 FROM tab1
----
1768
1768
1768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 32 * - ( + 48 ) col1 FROM tab2
----
-35328
-61440
-89088

query I rowsort
SELECT ALL + col2 * - 35 AS col2 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT col2 * - - col1 * col2 AS col0 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT COUNT( - - col0 ) col2 FROM tab0
----
3

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

query I rowsort
SELECT ALL + col1 * + 36 * + col2 AS col2 FROM tab2
----
110880
139896
42228

query I rowsort
SELECT + col0 * + 31 AS col0 FROM tab0 WHERE NOT ( NOT col2 * 53 = - col2 * + 7 )
----

query II rowsort
SELECT DISTINCT - + 28, + 18 * + 61 AS col1 FROM tab0 AS cor0
----
-28
1098

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1169
SELECT ALL * FROM tab1 cor0 WHERE CAST( + 58 AS SIGNED ) NOT IN ( + col2, + ( - + col2 ) - 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1169
SELECT ALL * FROM tab1 cor0 WHERE CAST ( + 58 AS INTEGER ) NOT IN ( + col2, + ( - + col2 ) - 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 44 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - - MAX( col2 ) col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT - - MAX ( col2 ) col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT SUM( - + 40 ) AS col2 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT SUM ( - + 40 ) AS col2 FROM tab1 AS cor0
----
-120

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

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

query I rowsort
SELECT - - 15 * + + col0 + + ( + - 74 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1231
1381
151

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

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

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

query II rowsort
SELECT ALL - col2 AS col0, - col0 AS col1 FROM tab2 WHERE - col0 BETWEEN NULL AND - 0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT ALL - + 32 + + 86 DIV - 32 + - + MAX( + + 39 ) col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1179
SELECT ALL - + 32 + + 86 / - 32 + - + MAX ( + + 39 ) col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT - 39 * - col1 + - + 43 + + col2 AS col2 FROM tab1 AS cor0
----
1858
211
599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT - - CAST( col0 AS SIGNED ) * 14 AS col1 FROM tab0 AS cor0
----
1218
1358
210

skipif mysql # not compatible
query I rowsort label-1181
SELECT - - CAST ( col0 AS INTEGER ) * 14 AS col1 FROM tab0 AS cor0
----
1218
1358
210

query I rowsort
SELECT - 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 62 * col1 * - col1 + - + 62 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT COUNT( * ) * - SUM( - col2 ) AS col0 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT COUNT ( * ) * - SUM ( - col2 ) AS col0 FROM tab0
----
468

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 4 AS col2 FROM tab0 AS cor0
----
15
-4
87
-4
97
-4

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

query II rowsort
SELECT ALL + col1, - col0 - + col2 * col0 - + col2 FROM tab0 AS cor0
----
1
-9799
21
-967
81
-767

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT DISTINCT + col2 * col1 DIV col1 * - - col2 * - col1 - col1 AS col1 FROM tab1 cor0
----
-129038
-17410
-217375

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + col2 * col1 / col1 * - - col2 * - col1 - col1 AS col1 FROM tab1 cor0
----
-129038
-17410
-217375

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN + col2 / - 33 * + 11 AND - col1 + col1 - - col0 * col2
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT col1 DIV col1 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col1 / col1 / - col0 FROM tab2
----
0

query I rowsort
SELECT + col0 * + 27 AS col0 FROM tab0
----
2349
2619
405

query I rowsort
SELECT ALL 29 * + col1 AS col1 FROM tab1
----
1363
145
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - 54 - - 60 * - col2 AS col0 FROM tab1 WHERE NOT + + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT + ( + - COUNT( * ) ), 11 AS col0 FROM tab2
----
-3
11

skipif mysql # not compatible
query II rowsort label-1201
SELECT + ( + - COUNT ( * ) ), 11 AS col0 FROM tab2
----
-3
11

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

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

query I rowsort
SELECT DISTINCT ( + + 7 ) * + col2 AS col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1204
SELECT + CAST( NULL AS SIGNED ), col0 + 52 * - col2 col2 FROM tab2
----
NULL
-1150
NULL
-2016
NULL
-2941

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1204
SELECT + CAST ( NULL AS INTEGER ), col0 + 52 * - col2 col2 FROM tab2
----
NULL
-1150
NULL
-2016
NULL
-2941

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 49 * + col0 col1 FROM tab0 cor0
----
-4263
-4753
-735

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1209
SELECT DISTINCT col1, col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-1209
SELECT DISTINCT col1, col1 / - col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT col1 <= - + ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT - CAST ( + 54 AS INTEGER ) + + 1 + - + COUNT ( * ) FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT col1 * - col2 DIV - col2 + col2 col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT col1 * - col2 / - col2 + col2 col0 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + MAX( + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + MAX ( + col0 ) FROM tab2
----
75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT + 14 DIV COUNT( + col0 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 14 / COUNT ( + col0 ) AS col2 FROM tab1
----
4

query I rowsort
SELECT DISTINCT - 37 * + + col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT 34 FROM tab0 WHERE ( col1 NOT BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1218
SELECT 34 FROM tab0 WHERE ( col1 NOT BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) ) )
----

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

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL BETWEEN + col0 AND + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1220
SELECT ALL + col0 DIV col0, - 40 DIV - col0 AS col2 FROM tab1
----
1
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-1220
SELECT ALL + col0 / col0, - 40 / - col0 AS col2 FROM tab1
----
1
0
1
0
1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 + + + 41 col0, + col1 AS col2 FROM tab0
----
96
1
96
21
96
81

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - col2 <= + col0 + - 7
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1227
SELECT MIN( 31 ), ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-1227
SELECT MIN ( 31 ), ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
31
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1229
SELECT DISTINCT COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1229
SELECT DISTINCT COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

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

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

query II rowsort
SELECT - col1 * - col2 * col0, 1 AS col0 FROM tab0 AS cor0
----
18270
1
57105
1
9603
1

query I rowsort
SELECT DISTINCT - 5 * + ( - 58 ) FROM tab2 AS cor0
----
290

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT DISTINCT 52 * + CAST( - 42 AS SIGNED ) FROM tab2
----
-2184

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT 52 * + CAST ( - 42 AS INTEGER ) FROM tab2
----
-2184

query II rowsort
SELECT DISTINCT - 9, ( col1 ) FROM tab1
----
-9
14
-9
47
-9
5

query II rowsort
SELECT DISTINCT - 42 AS col0, + 57 AS col2 FROM tab1
----
-42
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + COUNT( * ) * + MAX( DISTINCT - - col1 ) * - + 58 * + 33 AS col0 FROM tab2
----
-442134

skipif mysql # not compatible
query I rowsort label-1238
SELECT + COUNT ( * ) * + MAX ( DISTINCT - - col1 ) * - + 58 * + 33 AS col0 FROM tab2
----
-442134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1239
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, COUNT( * ) * CAST( - 40 AS SIGNED ) + + MIN( - 59 ) * ( 99 ) AS col2 FROM tab0
----
NULL
-5961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1239
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) * CAST ( - 40 AS INTEGER ) + + MIN ( - 59 ) * ( 99 ) AS col2 FROM tab0
----
NULL
-5961

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

query I rowsort
SELECT ALL col0 * - 23 AS col1 FROM tab2 AS cor0
----
-1058
-1472
-1725

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL + COUNT( DISTINCT - 16 ) * - COUNT( * ) + 40 col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1243
SELECT ALL + COUNT ( DISTINCT - 16 ) * - COUNT ( * ) + 40 col1 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - COUNT( DISTINCT 11 ) + 44 + - 89 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - COUNT ( DISTINCT 11 ) + 44 + - 89 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT ALL COUNT( * ) - 67 DIV - + COUNT( * ) - 91 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL COUNT ( * ) - 67 / - + COUNT ( * ) - 91 AS col2 FROM tab0 AS cor0
----
-66

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

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

query I rowsort
SELECT DISTINCT - col1 * + - col0 - - col0 FROM tab0 AS cor0
----
1230
1914
194

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

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

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

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

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

query I rowsort
SELECT - 99 * - col1 - col2 FROM tab2 cor0
----
5026
6575
7583

query I rowsort
SELECT + 95 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT DISTINCT COUNT( * ) DIV + 5 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT COUNT ( * ) / + 5 AS col2 FROM tab1
----
0

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

query II rowsort
SELECT col2, + col2 AS col1 FROM tab2 WHERE NULL = - + col0 - + col2 + - - col0 * - 84 * col1
----

query I rowsort
SELECT 69 + - + 13 FROM tab1
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT DISTINCT col1 DIV + col2 + - 39 * + + 8 FROM tab0
----
-310
-311
-312

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT col1 / + col2 + - 39 * + + 8 FROM tab0
----
-310
-311
-312

onlyif mysql # DIV for integer division: 
query III rowsort label-1258
SELECT col2 DIV + + col1 + + col0 AS col1, + 60 AS col1, + - col1 AS col1 FROM tab0
----
9 values hashing to ee11314634d2bb33b74aa3367e266f55

skipif mysql # not compatible
query III rowsort label-1258
SELECT col2 / + + col1 + + col0 AS col1, + 60 AS col1, + - col1 AS col1 FROM tab0
----
9 values hashing to ee11314634d2bb33b74aa3367e266f55

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT DISTINCT + COUNT( * ) * - 64 + - 30 AS col2 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + COUNT ( * ) * - 64 + - 30 AS col2 FROM tab0 AS cor0
----
-222

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT ALL col2 AS col1, - 31 * - col2 DIV - + col2 AS col0 FROM tab0 cor0
----
10
-31
47
-31
99
-31

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL col2 AS col1, - 31 * - col2 / - + col2 AS col0 FROM tab0 cor0
----
10
-31
47
-31
99
-31

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1263
SELECT ALL 57, + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
57
-1
57
-2
57
0

skipif mysql # not compatible
query II rowsort label-1263
SELECT ALL 57, + col1 / - col2 AS col0 FROM tab0 AS cor0
----
57
-1
57
-2
57
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1265
SELECT + + col2 * + col2 AS col0, + 60 DIV 28 col0 FROM tab1 AS cor0
----
3481
2
4624
2
9216
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1265
SELECT + + col2 * + col2 AS col0, + 60 / 28 col0 FROM tab1 AS cor0
----
3481
2
4624
2
9216
2

query I rowsort
SELECT ALL - col1 * col0 * + 93 FROM tab2 AS cor0
----
-218178
-458304
-467325

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL + COUNT( DISTINCT - 58 ) col2 FROM tab1 AS cor0 WHERE ( 31 ) IS NOT NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1267
SELECT ALL + COUNT ( DISTINCT - 58 ) col2 FROM tab1 AS cor0 WHERE ( 31 ) IS NOT NULL
----
1

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

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

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

query II rowsort
SELECT - col1 + - + col0 * col0, col0 FROM tab1
----
-2615
51
-7230
85
-8328
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT + col2 < 36
----
4

skipif mysql # not compatible
query I rowsort label-1271
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT + col2 < 36
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT 40 DIV + col1 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1274
SELECT 40 / + col1 + col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= - 86 - + - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL COUNT( * ) + MIN( ALL - 88 ) FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL COUNT ( * ) + MIN ( ALL - 88 ) FROM tab0 cor0
----
-85

query I rowsort
SELECT DISTINCT + col2 * 51 * - col0 + + + col0 FROM tab0 AS cor0
----
-35940
-44283
-489656

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

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

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

query II rowsort
SELECT + col2 AS col0, - 59 AS col0 FROM tab1 AS cor0 WHERE 96 * - ( - - 85 ) IS NULL
----

query I rowsort
SELECT ALL 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT ( - col1 ) - - 55 + + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1
----
-10
-35
-83

skipif mysql # not compatible
query I rowsort label-1283
SELECT ( - col1 ) - - 55 + + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1
----
-10
-35
-83

query I rowsort
SELECT ALL - col1 + - 7 + - - col2 AS col0 FROM tab2 AS cor0
----
-16
-35
-44

query II rowsort
SELECT ALL - ( - 46 ) - + - col1 + col0 AS col0, - col1 FROM tab1 cor0
----
111
-14
136
-5
184
-47

query I rowsort
SELECT DISTINCT 12 + col1 AS col0 FROM tab1 cor0
----
17
26
59

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

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + 98 * COUNT( * ) + - SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
517

skipif mysql # not compatible
query I rowsort label-1290
SELECT + 98 * COUNT ( * ) + - SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
517

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT - ( - 82 ) - - COUNT( * ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - ( - 82 ) - - COUNT ( * ) FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL - ( + 89 ) + - 87 AS col2 FROM tab0
----
-176
-176
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT 51 * - + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
-3009
-3468
-4896

skipif mysql # not compatible
query I rowsort label-1294
SELECT 51 * - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT col0 DIV - + 61 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1295
SELECT col0 / - + 61 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT + ( + col2 ) DIV + + col0 + - + col0 AS col2 FROM tab0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-1296
SELECT + ( + col2 ) / + + col0 + - + col0 AS col2 FROM tab0
----
-12
-87
-96

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL SUM ( ALL - col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT 99 * - COUNT( * ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-1298
SELECT 99 * - COUNT ( * ) AS col2 FROM tab2
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT - COUNT( * ) * + 25 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - COUNT ( * ) * + 25 FROM tab0 cor0
----
-75

query I rowsort
SELECT ALL - 49 * - + col0 AS col1 FROM tab1
----
2499
4165
4459

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1302
SELECT ALL + COUNT( * ) * - + CAST( + + 83 AS SIGNED ) AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-249
-3

skipif mysql # not compatible
query II rowsort label-1302
SELECT ALL + COUNT ( * ) * - + CAST ( + + 83 AS INTEGER ) AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-249
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT - - 35 DIV - 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT - - 35 / - 68 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1304
SELECT - MAX ( + 93 ) col0 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT col1 * - 62 AS col1 FROM tab0 AS cor0
----
-1302
-5022
-62

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

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

query I rowsort
SELECT DISTINCT 32 + - ( - col1 ) AS col0 FROM tab2
----
109
83
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ALL + CAST( + 45 AS SIGNED ) AS col2 FROM tab0
----
45
45
45

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

query I rowsort
SELECT ALL 60 + 48 AS col1 FROM tab1
----
108
108
108

query I rowsort
SELECT ALL col2 + - 61 + - col0 AS col1 FROM tab2 AS cor0
----
-78
-84
-85

query I rowsort
SELECT + col0 + - ( + + 54 ) FROM tab2
----
-8
10
21

query I rowsort
SELECT + 84 * - 22 AS col1 FROM tab0
----
-1848
-1848
-1848

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL - col2 DIV col1 + + col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - col2 / col1 + + col0 FROM tab1 AS cor0
----
45
74
90

query I rowsort
SELECT - col0 * + + col1 - col0 AS col1 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1317
SELECT + 32 DIV + col2 - + + ( + CAST( col2 AS SIGNED ) ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 32 / + col2 - + + ( + CAST ( col2 AS INTEGER ) ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT - - col2 + CAST ( NULL AS INTEGER ) - 50 / + ( col2 ) + 84 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 * - 50 FROM tab2
----
-2550
-3350
-3850

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT 20 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT 20 / + col0 AS col0 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT 68 * MAX( DISTINCT + col1 ) FROM tab0
----
5508

skipif mysql # not compatible
query I rowsort label-1324
SELECT 68 * MAX ( DISTINCT + col1 ) FROM tab0
----
5508

query II rowsort
SELECT + - 94, col0 * + + 19 * 30 + + col2 AS col2 FROM tab2 AS cor0
----
-94
26243
-94
36520
-94
42808

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

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

query I rowsort
SELECT ALL + 12 * + + 26 * + col1 AS col0 FROM tab2 AS cor0
----
15912
20904
24024

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT SUM( ALL - 11 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT SUM ( ALL - 11 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-99

query I rowsort
SELECT ALL - col0 * 68 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT ALL - CAST( + AVG ( DISTINCT + 69 ) AS SIGNED ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - CAST ( + AVG ( DISTINCT + 69 ) AS INTEGER ) FROM tab1 AS cor0
----
-69

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

query I rowsort
SELECT col0 + + 29 FROM tab2
----
104
75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT COUNT( ALL col1 ) + + MIN( col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( ALL col1 ) + + MIN ( col1 ) FROM tab1
----
8

query I rowsort
SELECT ALL + col0 + - + col2 + 22 FROM tab0
----
-10
20
99

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab1 WHERE NOT - + col0 IS NULL
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL NOT IN ( - + col2, + CAST( NULL AS SIGNED ), - 13, 59 * 98 + - - CAST( - 11 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT IN ( - + col2, + CAST ( NULL AS INTEGER ), - 13, 59 * 98 + - - CAST ( - 11 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT ALL + 55 DIV + MAX( - 39 ) + + 45 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + 55 / + MAX ( - 39 ) + + 45 FROM tab1
----
44

query I rowsort
SELECT - 29 + - col1 AS col2 FROM tab1
----
-34
-43
-76

query I rowsort
SELECT DISTINCT - col0 + + - ( + col2 ) AS col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + 58 / + col2 AS col1 FROM tab0 AS cor0 WHERE + col0 * - 88 + + + 15 IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-1345
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL + + ( - + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + COUNT( * ) * - 62 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1347
SELECT + COUNT ( * ) * - 62 FROM tab0 cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab0 WHERE NOT + col1 >= + col2
----
-1

query I rowsort
SELECT ALL 93 * 30 FROM tab1
----
2790
2790
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL col1 DIV col2 * + + col0 * - 29 * col2 col2 FROM tab0
----
-20445
-50460
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1350
SELECT ALL col1 / col2 * + + col0 * - 29 * col2 col2 FROM tab0
----
-20445
-50460
0

query I rowsort
SELECT col0 * 2 AS col2 FROM tab1
----
102
170
182

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

query I rowsort
SELECT DISTINCT 34 * - - col2 AS col2 FROM tab2
----
1360
1972
782

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL MIN( ALL - col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL MIN ( ALL - col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-174

query II rowsort
SELECT col1 AS col1, + 97 FROM tab0
----
1
97
21
97
81
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 42
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - 25 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + - SUM( + col2 ) * - + 16 + - 94 FROM tab2 AS cor0
----
1842

skipif mysql # not compatible
query I rowsort label-1362
SELECT + - SUM ( + col2 ) * - + 16 + - 94 FROM tab2 AS cor0
----
1842

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - SUM( - - col2 ) * + 76 FROM tab0 AS cor0
----
-11856

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - SUM ( - - col2 ) * + 76 FROM tab0 AS cor0
----
-11856

query I rowsort
SELECT - col1 * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL - SUM( ALL + col0 ) * COUNT( * ) FROM tab2 cor0
----
-555

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL - SUM ( ALL + col0 ) * COUNT ( * ) FROM tab2 cor0
----
-555

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1366
SELECT * FROM tab0 AS cor0 WHERE + 54 + + 46 = ( + 24 + + CAST( - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1366
SELECT * FROM tab0 AS cor0 WHERE + 54 + + 46 = ( + 24 + + CAST ( - col0 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - + 74 * - col0 AS col2 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT ALL + col2 * + - 55 FROM tab2 AS cor0
----
-1265
-2200
-3190

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - SUM( + 96 ) * - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
861

skipif mysql # not compatible
query I rowsort label-1370
SELECT - SUM ( + 96 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
861

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

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

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

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

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

query I rowsort
SELECT ALL col1 + - - ( + - 15 ) FROM tab0
----
-14
6
66

query I rowsort
SELECT DISTINCT col1 + - 91 + + + 37 * + + 43 * + 11 FROM tab2
----
17461
17477
17487

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1378
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - - ( - + col2 ) * - - 14 AS col1 FROM tab2 AS cor0 WHERE + 8 * + 1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + CAST ( NULL AS REAL ) - - - ( - + col2 ) * - - 14 AS col1 FROM tab2 AS cor0 WHERE + 8 * + 1 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT - - 38 * + - 93 + + CAST( - 8 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to db831cba8906799557a6ef9b157d1d4c

skipif mysql # not compatible
query I rowsort label-1380
SELECT - - 38 * + - 93 + + CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to db831cba8906799557a6ef9b157d1d4c

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT col0 / - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-17
-3

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-249696
-426275
-563108

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

query I rowsort
SELECT col2 * - 48 AS col1 FROM tab2 AS cor0
----
-1104
-1920
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL + + 39 * + col2 * - - CAST( NULL AS SIGNED ) * - col1 * + - 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + + 39 * + col2 * - - CAST ( NULL AS INTEGER ) * - col1 * + - 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 66 <= + col2
----

query I rowsort
SELECT col2 * + 17 FROM tab0
----
1683
170
799

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 32 <> + col1 + + 12 + + + 98
----

query I rowsort
SELECT 53 * + 86 FROM tab1
----
4558
4558
4558

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT + 93 * - - COUNT( * ) * - 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10881

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + 93 * - - COUNT ( * ) * - 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10881

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE col2 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1 cor0 WHERE NOT col2 / + col1 + col0 * 39 + 16 / + + 1 BETWEEN col1 * + 20 * 97 + + col2 AND 61 - + - ( + ( - col2 ) )
----
-425
-4277
-714

query I rowsort
SELECT ALL - 52 + + - 77 FROM tab2 AS cor0
----
-129
-129
-129

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + + col2 * col2 * col0 DIV - 38 FROM tab1 AS cor0
----
-11073
-12368
-7786

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + + col2 * col2 * col0 / - 38 FROM tab1 AS cor0
----
-11073
-12368
-7786

query I rowsort
SELECT col2 + 63 AS col0 FROM tab0 AS cor0
----
110
162
73

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

query I rowsort
SELECT ALL + col1 * - - 90 AS col0 FROM tab0 cor0
----
1890
7290
90

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

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

query I rowsort
SELECT - col0 + + 57 FROM tab2 AS cor0
----
-18
-7
11

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

query I rowsort
SELECT - 55 * + col0 * + col2 + col2 FROM tab0 AS cor0
----
-38728
-47840
-528066

query I rowsort
SELECT + - 50 + + ( + 84 ) * col0 FROM tab0 AS cor0
----
1210
7258
8098

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

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 * 78 + ( - col1 ) AS col0 FROM tab1
----
14
-7502
47
-5351
5
-4607

query I rowsort
SELECT 9 * 87 + - + 39 FROM tab0
----
744
744
744

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1416
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - MAX( - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1417
SELECT - MAX ( - col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE + 48 <= - + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT COUNT( * ) AS col2 FROM tab0 WHERE 26 = - col2 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE 26 = - col2 / - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1420
SELECT DISTINCT col0 + - - CAST( - 7 AS SIGNED ) AS col1 FROM tab1
----
44
78
84

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT col0 + - - CAST ( - 7 AS INTEGER ) AS col1 FROM tab1
----
44
78
84

query I rowsort
SELECT ALL 93 * col1 * + + 34 + col1 FROM tab1
----
148661
15815
44282

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT ALL - col1 + - 7 DIV + 14 AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - col1 + - 7 / + 14 AS col2 FROM tab0 cor0
----
-1
-21
-81

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

query I rowsort
SELECT - 49 - col0 AS col2 FROM tab1 AS cor0
----
-100
-134
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT 66 * 26 + - COUNT( * ) FROM tab1
----
1713

skipif mysql # not compatible
query I rowsort label-1425
SELECT 66 * 26 + - COUNT ( * ) FROM tab1
----
1713

query I rowsort
SELECT + col0 * 65 * + - 48 AS col1 FROM tab2
----
-143520
-199680
-234000

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

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

query II rowsort
SELECT DISTINCT + 97 * + + 3, + col2 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 13 + - 95 FROM tab2 AS cor0 WHERE NOT col1 * col1 + - col0 IS NULL
----
-82
-82
-82

query II rowsort
SELECT - 19 * col0, - ( + - 39 ) AS col0 FROM tab2 AS cor0
----
-1216
39
-1425
39
-874
39

query I rowsort
SELECT + 17 + 32 + - col0 * 64 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT ALL + SUM( - col0 ), COUNT( * ) col2 FROM tab1 AS cor0
----
-227
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1433
SELECT ALL + SUM ( - col0 ), COUNT ( * ) col2 FROM tab1 AS cor0
----
-227
3

query I rowsort
SELECT ALL + 7 * col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + 85 + SUM( - col1 ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT + 85 + SUM ( - col1 ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + MAX( ALL + - 97 ) col1 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT ALL + MAX ( ALL + - 97 ) col1 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT - col2 * + 26 + + 82 AS col1 FROM tab1 AS cor0
----
-1452
-1686
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL 48 * COUNT( * ) col1 FROM tab1 WHERE 47 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1438
SELECT ALL 48 * COUNT ( * ) col1 FROM tab1 WHERE 47 IS NULL
----
0

query I rowsort
SELECT + 37 * 33 FROM tab0
----
1221
1221
1221

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

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

query I rowsort
SELECT ALL - col2 * col2 + ( col2 + 3 * col0 ) FROM tab0 WHERE NULL BETWEEN NULL AND + 29
----

query I rowsort
SELECT ALL - 68 + + col2 AS col2 FROM tab2
----
-10
-28
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + ( - 86 * col1 ) col2 FROM tab1
----
-115584
-25370
-274856

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

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

query I rowsort
SELECT 17 + - col0 AS col1 FROM tab1
----
-34
-68
-74

query I rowsort
SELECT - col0 + - 16 FROM tab1
----
-101
-107
-67

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - 55 ) < col0 - - col2
----

query I rowsort
SELECT ALL - ( + 69 ) AS col1 FROM tab1 WHERE NOT ( - 8 ) IS NULL
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT MIN( DISTINCT + col1 ) + - 63 * - 25 FROM tab0
----
1576

skipif mysql # not compatible
query I rowsort label-1450
SELECT MIN ( DISTINCT + col1 ) + - 63 * - 25 FROM tab0
----
1576

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + 88 NOT BETWEEN 48 AND NULL
----

query I rowsort
SELECT - col0 * - ( + col2 ) + - col0 AS col0 FROM tab0
----
690
783
9506

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT MAX ( 30 ) AS col2 FROM tab2
----
30

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 35 / col1 IS NOT NULL
----

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

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

query I rowsort
SELECT + 10 + col0 FROM tab1
----
101
61
95

query I rowsort
SELECT - 43 + 77 FROM tab2
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1462
SELECT * FROM tab1 WHERE NOT + CAST( 41 AS SIGNED ) - - col1 <= CAST( NULL AS SIGNED ) + ( 90 )
----

skipif mysql # not compatible
query III rowsort label-1462
SELECT * FROM tab1 WHERE NOT + CAST ( 41 AS INTEGER ) - - col1 <= CAST ( NULL AS INTEGER ) + ( 90 )
----

query I rowsort
SELECT col1 + - 50 AS col0 FROM tab0
----
-29
-49
31

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

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

query I rowsort
SELECT ALL + ( + col0 ) * - col0 + - 25 AS col2 FROM tab1
----
-2626
-7250
-8306

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ALL col1 + + 85 DIV col0 FROM tab1 AS cor0
----
15
47
6

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL col1 + + 85 / col0 FROM tab1 AS cor0
----
15
47
6

query I rowsort
SELECT 54 + + col2 FROM tab1 AS cor0
----
113
122
150

query I rowsort
SELECT 44 + - col0 AS col0 FROM tab1 AS cor0
----
-41
-47
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col2 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col2 * + col2 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 74 + col2 AS col1 FROM tab0 AS cor0
----
-1544
-5947
25

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

query I rowsort
SELECT + 99 * col2 AS col1 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT DISTINCT ( + 1 ) AS col2 FROM tab2 AS cor0 INNER JOIN tab2 ON NOT NULL NOT IN ( 86 )
----

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

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

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT ALL 65 DIV - 16 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL 65 / - 16 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT - col1 * 53 AS col1 FROM tab0
----
-1113
-4293
-53

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - 47 > + 83
----
51
67
77

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

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

query I rowsort
SELECT col1 / col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / ( + 89 * - 34 ) NOT BETWEEN + 74 AND 82 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1482
SELECT ALL COUNT( * ) + 85 FROM tab2 cor0 WHERE NOT - col1 + ( 26 ) * 62 > ( col2 * + ( CAST( NULL AS DECIMAL ) ) )
----
85

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL COUNT ( * ) + 85 FROM tab2 cor0 WHERE NOT - col1 + ( 26 ) * 62 > ( col2 * + ( CAST ( NULL AS REAL ) ) )
----
85

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * col0 <= ( 99 * + 51 )
----

query I rowsort
SELECT ALL 56 + + col2 * + col1 FROM tab1 AS cor0 WHERE - col1 * ( col0 ) IS NOT NULL
----
1400
3252
351

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

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

query I rowsort
SELECT DISTINCT - 47 + + + 32 FROM tab2
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NOT ( - 94 ) NOT BETWEEN NULL AND - 76 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - CAST ( 71 AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT col1 DIV - 97 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT col1 / - 97 AS col1 FROM tab1
----
0

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

query I rowsort
SELECT ALL + col0 + - - col1 + - col0 * + 11 AS col0 FROM tab2
----
-409
-563
-683

query I rowsort
SELECT - col2 + 24 AS col2 FROM tab0
----
-23
-75
14

query I rowsort
SELECT DISTINCT col0 + + 34 * - col0 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - col0 - - col0 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1500
SELECT CAST( + col2 AS SIGNED ) + col0 AS col1 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1500
SELECT CAST ( + col2 AS INTEGER ) + col0 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT - col2 * + - ( - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

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

query I rowsort
SELECT - col1 * + 59 * 52 FROM tab1 AS cor0
----
-144196
-15340
-42952

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

query I rowsort
SELECT - 7 AS col2 FROM tab2 WHERE NULL <= col2 + 88 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 + 53 FROM tab0 WHERE ( + 86 ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT + 71 FROM tab1 WHERE - - col2 / CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1508
SELECT + 71 FROM tab1 WHERE - - col2 / CAST ( NULL AS INTEGER ) < NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 - - col1 * - 66 AS col1 FROM tab0 AS cor0
----
-1299
-5331
31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 99 <= ( + col1 )
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 + + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - MAX( 4 ) + - 76 AS col2 FROM tab2 WHERE ( - col2 * + 78 * col0 ) NOT BETWEEN ( col1 * + ( + col1 ) - col0 ) AND col1
----
-80

skipif mysql # not compatible
query I rowsort label-1517
SELECT - MAX ( 4 ) + - 76 AS col2 FROM tab2 WHERE ( - col2 * + 78 * col0 ) NOT BETWEEN ( col1 * + ( + col1 ) - col0 ) AND col1
----
-80

query I rowsort
SELECT col2 * + - 57 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + - col0 < col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + - ( - 35 ) AS col2 FROM tab2
----
102
112
86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1521
SELECT CAST ( - ( - ( COUNT ( * ) ) ) AS INTEGER ) * 78 col2 FROM tab1
----
234

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1522
SELECT + col2 / 58 col0 FROM tab0
----
0
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT CAST( + 91 AS SIGNED ) * + col1 AS col1 FROM tab2
----
4641
6097
7007

skipif mysql # not compatible
query I rowsort label-1524
SELECT CAST ( + 91 AS INTEGER ) * + col1 AS col1 FROM tab2
----
4641
6097
7007

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1525
SELECT * FROM tab2 WHERE - col0 * + + CAST( - 84 AS DECIMAL ) NOT IN ( + 73 - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1525
SELECT * FROM tab2 WHERE - col0 * + + CAST ( - 84 AS REAL ) NOT IN ( + 73 - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col0 FROM tab0
----
108
96
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + SUM( - + 82 ) AS col2 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-1531
SELECT + SUM ( - + 82 ) AS col2 FROM tab0
----
-246

query I rowsort
SELECT - 90 * - - ( - - 48 ) AS col2 FROM tab1
----
-4320
-4320
-4320

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT ALL 25, 76 * + - COUNT( * ) * - - 45 + + 84 col1 FROM tab1 AS cor0
----
25
-10176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1537
SELECT ALL 25, 76 * + - COUNT ( * ) * - - 45 + + 84 col1 FROM tab1 AS cor0
----
25
-10176

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1538
SELECT + MIN ( + 59 ) col0 FROM tab2 AS cor0
----
59

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 95 + + - 64 AS col2 FROM tab1
----
31
31
31

query I rowsort
SELECT ALL 94 + + - 21 * + col1 AS col1 FROM tab0
----
-1607
-347
73

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

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

query I rowsort
SELECT 92 * - col2 + + + 16 AS col1 FROM tab0 AS cor0
----
-4308
-904
-9092

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

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

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

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

query I rowsort
SELECT - 13 + + - 46 AS col2 FROM tab1 cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 = + col2 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1550
SELECT - col1 + + 55 + col2 - col0 AS col2, - col2 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
1173
-29
3886
-46
3080

skipif mysql # not compatible
query II rowsort label-1550
SELECT - col1 + + 55 + col2 - col0 AS col2, - col2 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
1173
-29
3886
-46
3080

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * + - col2 * + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 33 / + 58 NOT IN ( col1 / - - 21 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 39 + 23 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT DISTINCT - col0 * - col0 + + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
2615
7230
8328

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - col0 * - col0 + + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
2615
7230
8328

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL + - 19 - - - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + - 19 - - - col0 / col0 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

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

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

query I rowsort
SELECT ALL - 59 * col0 * - 63 FROM tab1 AS cor0
----
189567
315945
338247

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

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

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

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - CAST ( - 94 AS INTEGER ) FROM tab0
----
94
94
94

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL COUNT ( 52 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT DISTINCT - CAST( ( + - 10 ) AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT - CAST ( ( + - 10 ) AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
30

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

query I rowsort
SELECT DISTINCT + ( + + 93 ) AS col1 FROM tab1 AS cor0
----
93

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

query I rowsort
SELECT - 43 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 + + 16 + col1 ) IS NOT NULL
----

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2
----
243 values hashing to 6777f6218888bad398c7f82c79a78162

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 47 * + - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
-9

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1573
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 60 AND + CAST( NULL AS SIGNED ) + 70
----

skipif mysql # not compatible
query III rowsort label-1573
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 60 AND + CAST ( NULL AS INTEGER ) + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT MIN( + 42 ) FROM tab0 AS cor0 WHERE NOT col2 * - col1 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT MIN ( + 42 ) FROM tab0 AS cor0 WHERE NOT col2 * - col1 * + col0 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + + COUNT ( * ) * - MIN ( DISTINCT - 4 ) AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT col2 + + + 68 AS col1 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL - 67 * - col0 AS col2 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT ALL 58 + + - col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT 51 * - 5 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 41 * col1 + 50 AS col1 FROM tab1
----
-155
-1877
-524

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

query I rowsort
SELECT DISTINCT col0 * - col1 * - + col0 + - + col0 AS col0 FROM tab0
----
158862
18210
9312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN + + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN + + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + SUM( ALL - + 71 ) AS col1 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1585
SELECT + SUM ( ALL - + 71 ) AS col1 FROM tab0 AS cor0
----
-213

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

query I rowsort
SELECT 39 - col0 + - col2 FROM tab0
----
-157
-23
-58

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

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

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

query I rowsort
SELECT DISTINCT + 89 + + + col2 AS col2 FROM tab0 AS cor0
----
136
188
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL + + col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + + col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + - col1 + + col0 + - col2 + - + col2 FROM tab0 cor0
----
-102
-160
46

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1594
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col0 * col2 + - CAST( + + col1 AS SIGNED ) + + col0 * - - col2 + 51 * - 52
----

skipif mysql # not compatible
query III rowsort label-1594
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col0 * col2 + - CAST ( + + col1 AS INTEGER ) + + col0 * - - col2 + 51 * - 52
----

query I rowsort
SELECT ALL + col0 + + col2 + - 72 + col1 AS col1 FROM tab2 AS cor0
----
109
128
48

query I rowsort
SELECT ALL 23 - + - 38 AS col0 FROM tab1 AS cor0
----
61
61
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT 6 DIV - ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT 6 / - ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

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

query II rowsort
SELECT + ( - col2 ) AS col1, + 74 AS col1 FROM tab2
----
-23
74
-40
74
-58
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL + + MAX( ALL col0 ) AS col2, + MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
97
-97

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL + + MAX ( ALL col0 ) AS col2, + MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
97
-97

query II rowsort
SELECT DISTINCT - - col0 / + 40 + + - col2 AS col2, + 89 AS col2 FROM tab2 AS cor0 WHERE 92 + - 60 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT + + 81 DIV - - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1606
SELECT + + 81 / - - COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT + - COUNT( * ) AS col2, - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-22

skipif mysql # not compatible
query II rowsort label-1607
SELECT + - COUNT ( * ) AS col2, - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT + 45 * - - COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + 45 * - - COUNT ( * ) FROM tab2 AS cor0
----
135

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 85 ) > + col2
----
97
1
99

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

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

query I rowsort
SELECT - 1 * + + 47 FROM tab1 AS cor0
----
-47
-47
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT CAST( NULL AS SIGNED ) * - 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + ( - 78 ) + + col1 AND col1 * + col2 * - col0
----
-46
-64
-75

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

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

query I rowsort
SELECT col1 * 96 AS col0 FROM tab1 AS cor0
----
1344
4512
480

query II rowsort
SELECT + ( + 38 ) * + + ( 65 ) AS col1, + 92 FROM tab1 AS cor0
----
2470
92
2470
92
2470
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1618
SELECT - ( - ( + COUNT( ALL col0 ) ) ) AS col0, + 32 DIV 55 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-1618
SELECT - ( - ( + COUNT ( ALL col0 ) ) ) AS col0, + 32 / 55 FROM tab2
----
3
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - - col0 col1, ( + 59 ) + + - ( col2 ) AS col1 FROM tab0
----
108
49
96
12
98
-40

query III rowsort
SELECT * FROM tab0 WHERE 11 * - 42 * col1 - + col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT COUNT( ALL col1 ) + - + 13 * + + 86 FROM tab1
----
-1115

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT COUNT ( ALL col1 ) + - + 13 * + + 86 FROM tab1
----
-1115

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 88 NOT IN ( + 15 + - ( - + col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1624
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 88 NOT IN ( + 15 + - ( - + col2 ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT DISTINCT - + 76 DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - + 76 / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

query I rowsort
SELECT ALL col1 + 25 AS col0 FROM tab2
----
102
76
92

query I rowsort
SELECT ALL - 59 * + col0 + - col2 + - + col2 + + col1 FROM tab1 AS cor0
----
-3187
-5128
-5458

query I rowsort
SELECT ( + 47 ) - - ( - col0 ) FROM tab1 AS cor0
----
-38
-4
-44

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 cor0 WHERE col1 >= + 25
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT ALL - - 77 AS col2, MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
77
-51

skipif mysql # not compatible
query II rowsort label-1630
SELECT ALL - - 77 AS col2, MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
77
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT - MIN( ALL - - 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - MIN ( ALL - - 75 ) FROM tab1 AS cor0
----
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 26 ) col0 FROM tab0 WHERE + 68 IS NOT NULL
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-1634
SELECT ALL + col0, - 10 - - + 66 DIV + col1 FROM tab2
----
46
-9
64
-10
75
-10

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL + col0, - 10 - - + 66 / + col1 FROM tab2
----
46
-9
64
-10
75
-10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT DISTINCT 13 DIV + - col2 * - - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT 13 / + - col2 * - - col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 col2 FROM tab0 WHERE NOT ( + col2 ) <> col0 + col2
----

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 + + + 1 / col0 * - col0 IS NULL
----

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

query I rowsort
SELECT ALL + ( col2 ) * col0 * 95 AS col2 FROM tab0 AS cor0
----
66975
82650
912285

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT - - 9 * + CAST ( NULL AS INTEGER ) + - + MAX ( - ( - - col1 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + + 97 / + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 * + + col1 + - col1 col1 FROM tab1 AS cor0
----
1232
4136
440

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( + - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1648
SELECT + col2 * + - 22 + col2 AS col1, CAST( col1 AS SIGNED ) * col2 + + 52 FROM tab1
----
-1239
347
-1428
3248
-2016
1396

skipif mysql # not compatible
query II rowsort label-1648
SELECT + col2 * + - 22 + col2 AS col1, CAST ( col1 AS INTEGER ) * col2 + + 52 FROM tab1
----
-1239
347
-1428
3248
-2016
1396

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL 64 + - + COUNT( * ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL 64 + - + COUNT ( * ) AS col0 FROM tab0
----
61

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + 41 * + col2
----

query I rowsort
SELECT ALL col0 * - col1 + col0 + - 64 FROM tab0
----
-1264
-1804
-64

query II rowsort
SELECT col2 AS col0, + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT - CAST( NULL AS SIGNED ) * - - col0 * + + col1 * + + ( 33 ) col0 FROM tab0 WHERE ( NULL ) < - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1653
SELECT - CAST ( NULL AS INTEGER ) * - - col0 * + + col1 * + + ( 33 ) col0 FROM tab0 WHERE ( NULL ) < - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN - col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT 90 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 43 * - col1 >= + col0
----
90

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT 90 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 43 * - col1 >= + col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT - + col2 + + ( + - col0 ) * col0 * - CAST( NULL AS SIGNED ) + col2 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT - + col2 + + ( + - col0 ) * col0 * - CAST ( NULL AS INTEGER ) + col2 + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * 10 AS col1 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + ( - + COUNT( * ) ) + 72 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1658
SELECT + ( - + COUNT ( * ) ) + 72 FROM tab0
----
69

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 cor1 ON ( NOT NULL IS NOT NULL ) WHERE NULL < ( NULL )
----

query II rowsort
SELECT DISTINCT + ( + + col0 ), col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + - col1 * 13 AS col2 FROM tab2 AS cor0
----
-1001
-663
-871

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 - + - ( + col0 ) / - col1 + 50 / + col0 * 38 / 35 IS NULL
----

query I rowsort
SELECT ALL + + col1 * + 47 - - + 68 * col0 FROM tab2 AS cor0
----
5525
7971
8249

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + ( MIN( col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1664
SELECT + ( MIN ( col0 ) ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL + col1 * 93 AS col2 FROM tab0
----
1953
7533
93

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query III rowsort label-1667
SELECT DISTINCT + SUM( ALL col2 ) * - MIN( ( - col1 ) ), 98 AS col1, + 71 AS col1 FROM tab2
----
9317
98
71

skipif mysql # not compatible
query III rowsort label-1667
SELECT DISTINCT + SUM ( ALL col2 ) * - MIN ( ( - col1 ) ), 98 AS col1, + 71 AS col1 FROM tab2
----
9317
98
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT ALL - 29 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - 29 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 35 FROM tab0 WHERE NOT - col1 IS NULL
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 32 < + col2 / col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1673
SELECT + col0 + 15 DIV CAST( + col1 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-32
13
77

skipif mysql # not compatible
query I rowsort label-1673
SELECT + col0 + 15 / CAST ( + col1 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-32
13
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT 38 * - COUNT( * ) + 95 + + 87 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT 38 * - COUNT ( * ) + 95 + + 87 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT DISTINCT COUNT( * ) AS col2, + 61 FROM tab1 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT COUNT ( * ) AS col2, + 61 FROM tab1 AS cor0
----
3
61

query II rowsort
SELECT DISTINCT - 44 AS col2, + col0 * col0 + + col1 FROM tab2 AS cor0
----
-44
2167
-44
4173
-44
5692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT DISTINCT + 23 + MIN( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) + - MAX( ALL 64 ) + + - ( + COUNT( ALL - 86 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT + 23 + MIN ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) + - MAX ( ALL 64 ) + + - ( + COUNT ( ALL - 86 ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col2 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - + col1 - - + col2 NOT IN ( - - col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 - - 30 AS col0, + ( - col2 ) AS col2 FROM tab0
----
111
-47
31
-99
51
-10

query I rowsort
SELECT 86 + + col1 + + col1 * - col2 FROM tab2
----
-1036
-2917
-3733

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - 87 - 19 - + - ( SUM( col0 ) ) FROM tab1 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 87 - 19 - + - ( SUM ( col0 ) ) FROM tab1 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL + - 11 - - 66 * + + SUM( DISTINCT col1 ) * 47 + - SUM( - - col2 ) + - + 17 FROM tab1 AS cor0
----
204481

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + - 11 - - 66 * + + SUM ( DISTINCT col1 ) * 47 + - SUM ( - - col2 ) + - + 17 FROM tab1 AS cor0
----
204481

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 10 ) <= col1 * col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 52
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 * 72 >= NULL
----

query I rowsort
SELECT DISTINCT - 13 * - - 45 AS col0 FROM tab1
----
-585

query II rowsort
SELECT 90 * ( col0 ) * + col1, - 99 + + - col2 AS col1 FROM tab1 AS cor0
----
38250
-158
384930
-167
64260
-195

query II rowsort
SELECT DISTINCT col1, - col1 + - 82 + - col2 - + 47 + - 1 * + ( + col0 ) FROM tab2 AS cor0
----
51
-249
67
-329
77
-310

query II rowsort
SELECT DISTINCT + + ( + col0 ) * + 24, col1 FROM tab1 AS cor0
----
1224
14
2040
5
2184
47

query I rowsort
SELECT ALL col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT - - 24, + col1 FROM tab2 cor0
----
24
51
24
67
24
77

query II rowsort
SELECT - col2 AS col0, col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE col0 + - col0 + - + col2 - - 64 * - col1 = NULL
----

query I rowsort
SELECT ALL col1 * 88 * - col2 FROM tab2
----
-103224
-271040
-341968

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT col1 <= ( - + col0 )
----
51
67
77

query I rowsort
SELECT ALL 20 * + + col0 * - col0 * + col1 AS col2 FROM tab2
----
-2158320
-6307840
-7537500

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 79 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 34 AS col2 FROM tab2
----
-1564
-2176
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT + col2 DIV + col0 FROM tab0 AS cor0 WHERE NOT + 50 < + + col2 - - col1
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT + col2 / + col0 FROM tab0 AS cor0 WHERE NOT + 50 < + + col2 - - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col2 * + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col2 * + col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1704
SELECT + col1 AS col2, + 2 DIV + 9 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-1704
SELECT + col1 AS col2, + 2 / + 9 FROM tab0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + COUNT( * ) + - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
-82

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) + - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 + - 33 + + col1 col1, + col2 FROM tab0
----
-116
99
-36
47
-96
10

query I rowsort
SELECT DISTINCT col2 + 58 + - col1 - + - 9 * + 82 + ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-2321
-3099
-405

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 56 + - col2 AS col2 FROM tab1 cor0 WHERE col1 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1710
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <= + ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1710
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <= + ( + CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT + col2 + - 59 + - CAST( + + 77 AS SIGNED ) FROM tab1 AS cor0
----
-40
-68
-77

skipif mysql # not compatible
query I rowsort label-1712
SELECT + col2 + - 59 + - CAST ( + + 77 AS INTEGER ) FROM tab1 AS cor0
----
-40
-68
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT ALL + 6 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + 6 / - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ( MAX( + col0 ) ) + + SUM( + - col0 ) AS col1 FROM tab2
----
-110

skipif mysql # not compatible
query I rowsort label-1714
SELECT ( MAX ( + col0 ) ) + + SUM ( + - col0 ) AS col1 FROM tab2
----
-110

query I rowsort
SELECT ALL col2 + - - 47 FROM tab0
----
146
57
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / + col0 > + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT + col1 FROM tab1 WHERE - ( + col0 ) NOT BETWEEN + 41 AND - CAST( NULL AS SIGNED )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1717
SELECT + col1 FROM tab1 WHERE - ( + col0 ) NOT BETWEEN + 41 AND - CAST ( NULL AS INTEGER )
----
14
47
5

query II rowsort
SELECT col2 AS col0, + 66 FROM tab2
----
23
66
40
66
58
66

query I rowsort
SELECT + 4 * ( + 2 ) AS col1 FROM tab1
----
8
8
8

query II rowsort
SELECT + col2 AS col2, - col2 * col2 AS col0 FROM tab1
----
59
-3481
68
-4624
96
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL MIN( col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL MIN ( col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL + ( - + col0 ) + + + col1 + - CAST( 10 AS SIGNED ) col0 FROM tab2
----
-18
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1722
SELECT ALL + ( - + col0 ) + + + col1 + - CAST ( 10 AS INTEGER ) col0 FROM tab2
----
-18
-5
3

query II rowsort
SELECT ALL + + 74, + col2 * - 2 + + col0 AS col1 FROM tab1 AS cor0
----
74
-141
74
-33
74
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col2 col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL - col1, + col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - ( - col0 ) * - ( - - 86 ) FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT 77 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1728
SELECT col2 DIV + col1 + - col1 DIV + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
2
99

skipif mysql # not compatible
query I rowsort label-1728
SELECT col2 / + col1 + - col1 / + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
2
99

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT + + 6 AS col1, col2 FROM tab1 AS cor0 WHERE NOT col1 + + 4 NOT BETWEEN + + col1 * + - 86 AND - - 85
----
6
59
6
68
6
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1731
SELECT ( + + COUNT( * ) ) AS col2, + MAX( ALL + - col1 ) DIV + 6 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-1731
SELECT ( + + COUNT ( * ) ) AS col2, + MAX ( ALL + - col1 ) / + 6 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT DISTINCT 75 * col2 FROM tab1
----
4425
5100
7200

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 IS NOT NULL
----

query II rowsort
SELECT - 20, col2 * col2 + - - col2 AS col0 FROM tab0
----
-20
110
-20
2256
-20
9900

query I rowsort
SELECT 15 * + 58 FROM tab1
----
870
870
870

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 + 97 / col0 ) IS NOT NULL
----

query II rowsort
SELECT 90 AS col2, - col0 AS col0 FROM tab1
----
90
-51
90
-85
90
-91

query I rowsort
SELECT ALL 50 * + + 10 FROM tab0
----
500
500
500

query II rowsort
SELECT ALL - col2 AS col1, + col0 - - + col2 FROM tab2 AS cor0
----
-23
69
-40
104
-58
133

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL + col1 DIV + + 5 AS col0 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + col1 / + + 5 AS col0 FROM tab2 AS cor0
----
10
13
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 59 NOT IN ( - - 3 ) )
----

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 WHERE - - col1 - + col1 IN ( - + col0, + ( - col0 ), + - col2 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1743
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1743
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 98 * + col2 + col1 * - col0 FROM tab1 AS cor0 WHERE col0 * + col0 - col0 IS NOT NULL
----
-10122
-10941
-6207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1745
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - - col0 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 - + - 95 + 61 * - + 87 - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT CAST ( NULL AS REAL ) + - - col0 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 - + - 95 + 61 * - + 87 - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + + SUM( ALL - - 3 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1746
SELECT + + SUM ( ALL - - 3 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - col2 - 94 AS col1 FROM tab2 AS cor0
----
-117
-134
-152

query I rowsort
SELECT DISTINCT + - 55 + col1 FROM tab0 AS cor0
----
-34
-54
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + - 57 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT ALL 43 AS col0, MIN( 99 ) FROM tab0
----
43
99

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL 43 AS col0, MIN ( 99 ) FROM tab0
----
43
99

query I rowsort
SELECT 6 + - - col2 AS col2 FROM tab1
----
102
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL col0 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) + 93 <> + col0 * + - col2 + + col2
----

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL col0 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + 93 <> + col0 * + - col2 + + col2
----

query I rowsort
SELECT col0 + + 76 AS col1 FROM tab0
----
163
173
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT MIN( + - 51 ) AS col0 FROM tab2 WHERE NULL <> - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT MIN ( + - 51 ) AS col0 FROM tab2 WHERE NULL <> - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL col1 DIV - - 40 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL col1 / - - 40 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT DISTINCT + + COUNT( * ) DIV - 90 - - 36 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1758
SELECT DISTINCT + + COUNT ( * ) / - 90 - - 36 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT + + col1 * 74 FROM tab0 AS cor0
----
1554
5994
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + ( + 86 ) ) col1 FROM tab0 cor0
----
86
86
86

query II rowsort
SELECT ( - 14 ) AS col2, + col0 FROM tab2 AS cor0
----
-14
46
-14
64
-14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL + COUNT( * ) * COUNT( - + col2 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + COUNT ( * ) * COUNT ( - + col2 ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - col0 * - 20 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + - col1 * + - 46 * + 74 * + - 70 + - ( + CAST( NULL AS SIGNED ) ) * 73 + - + 13 IS NOT NULL )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + - col1 * + - 46 * + 74 * + - 70 + - ( + CAST ( NULL AS INTEGER ) ) * 73 + - + 13 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT + col2 * 0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + col2 + + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT 33 DIV 35 + 18 col0 FROM tab1
----
18
18
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT 33 / 35 + 18 col0 FROM tab1
----
18
18
18

query I rowsort
SELECT + col0 + + 26 AS col2 FROM tab2
----
101
72
90

query II rowsort
SELECT - col2 * + col1, col1 FROM tab2 cor0
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 + - - col2 + - - col2 AS col0 FROM tab0 AS cor0
----
297
308461
4430

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1771
SELECT ALL + 35 * + - col2 + CAST( + - col2 AS SIGNED ) DIV + - col2 FROM tab0 AS cor0
----
-1644
-3464
-349

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + 35 * + - col2 + CAST ( + - col2 AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
-1644
-3464
-349

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1772
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-1772
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - - 36 FROM tab2 WHERE col1 / - col2 IS NOT NULL
----
36
36
36

query I rowsort
SELECT - col0 - - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - - 18 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL COUNT( DISTINCT - col1 ) + + 78 AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL COUNT ( DISTINCT - col1 ) + + 78 AS col1 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT COUNT( - 66 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT COUNT ( - 66 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 74 + - col0 AS col1 FROM tab1 AS cor0
----
-11
-17
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 10 * - col2 * + 26 + col2 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + MIN( 80 ) + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1780
SELECT + MIN ( 80 ) + COUNT ( * ) FROM tab0 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 / + col2 + col0
----

query I rowsort
SELECT ALL + col2 * - 85 - col2 + + 8 FROM tab2 AS cor0
----
-1970
-3432
-4980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1783
SELECT ALL + CAST( + ( - col2 ) AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + CAST ( + ( - col2 ) AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 col2 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT + col0 * col1 * - col0 AS col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT ALL - col2 * - - 72 FROM tab1
----
-4248
-4896
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT DISTINCT ( 86 ) * + 52 + CAST( + - 26 AS SIGNED ) AS col1 FROM tab1
----
4446

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT ( 86 ) * + 52 + CAST ( + - 26 AS INTEGER ) AS col1 FROM tab1
----
4446

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT ALL - 61 DIV - col1 FROM tab0 AS cor0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - 61 / - col1 FROM tab0 AS cor0
----
0
2
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col1 > - ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1790
SELECT - CAST( NULL AS DECIMAL ) * 8 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT - CAST ( NULL AS REAL ) * 8 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 16 col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - COUNT( DISTINCT - + col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1792
SELECT - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT + - col0 AS col1, 75 * - col2 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1794
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 68 * + + col0 / - 81 - + CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1794
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 68 * + + col0 / - 81 - + CAST ( + + col1 AS INTEGER )
----

query I rowsort
SELECT + ( - + col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1796
SELECT + CAST( NULL AS SIGNED ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1796
SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT col2 DIV - 3 + - col0 AS col1 FROM tab0 cor0
----
-130
-30
-90

skipif mysql # not compatible
query I rowsort label-1797
SELECT col2 / - 3 + - col0 AS col1 FROM tab0 cor0
----
-130
-30
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 FROM tab1 WHERE + 16 = NULL
----

query I rowsort
SELECT ALL col1 + - 45 AS col0 FROM tab1
----
-31
-40
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT COUNT( * ) * 62 + COUNT( * ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT COUNT ( * ) * 62 + COUNT ( * ) FROM tab0
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT COUNT( * ), 39 AS col1 FROM tab0
----
3
39

skipif mysql # not compatible
query II rowsort label-1802
SELECT COUNT ( * ), 39 AS col1 FROM tab0
----
3
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT - - CAST( NULL AS SIGNED ) * ( - col0 ) + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT - - CAST ( NULL AS INTEGER ) * ( - col0 ) + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * col0 + - - 76 AS col1 FROM tab2 AS cor0
----
2422
5004
5101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT - col0 * - col1 + col1 / + + CAST( NULL AS SIGNED ) + + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT - col0 * - col1 + col1 / + + CAST ( NULL AS INTEGER ) + + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE 96 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT ALL + CAST( - col1 AS SIGNED ) + col2 col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1807
SELECT ALL + CAST ( - col1 AS INTEGER ) + col2 col0 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT - 16 AS col1, - 79 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 4155f388ee0a5b173f324fc81addb337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 20 - + 57 * + col1 AS col1 FROM tab2 AS cor0
----
-3927
-5159
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT - col1 * - col0 + + - 19 - 79 DIV - 77 AS col1 FROM tab1 cor0
----
407
4259
696

skipif mysql # not compatible
query I rowsort label-1811
SELECT - col1 * - col0 + + - 19 - 79 / - 77 AS col1 FROM tab1 cor0
----
407
4259
696

query I rowsort
SELECT ALL + + col1 + - - 34 * + col2 * + col0 FROM tab0 AS cor0
----
24051
29601
326503

query I rowsort
SELECT - col2 - + + col0 * - - 33 + + + col1 + + col1 * + col2 * col1 AS col1 FROM tab2 AS cor0
----
235085
257896
58333

query I rowsort
SELECT ALL 52 - + col0 + - col2 + - col2 + + 24 * - - col2 * - col0 + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-117777
-120565
-148708

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL - COUNT( DISTINCT - ( col0 ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - COUNT ( DISTINCT - ( col0 ) ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + 10 - + 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + + col0 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1818
SELECT DISTINCT CAST( + 76 AS SIGNED ) col0, + 35 AS col1 FROM tab0 AS cor0
----
76
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1818
SELECT DISTINCT CAST ( + 76 AS INTEGER ) col0, + 35 AS col1 FROM tab0 AS cor0
----
76
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT - SUM( ALL col1 ) * + ( + 82 ) AS col1 FROM tab1 AS cor0
----
-5412

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT - SUM ( ALL col1 ) * + ( + 82 ) AS col1 FROM tab1 AS cor0
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 + - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1820
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 + - col0 > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1821
SELECT ALL MIN( - + col0 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL MIN ( - + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * - col2 + - 65 + - col0 > NULL
----

query I rowsort
SELECT ( + 74 ) FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT - COUNT( * ) DIV + 20 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT - COUNT ( * ) / + 20 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1826
SELECT ALL - col2 DIV 53 * col2, col2 FROM tab2
----
-58
58
0
23
0
40

skipif mysql # not compatible
query II rowsort label-1826
SELECT ALL - col2 / 53 * col2, col2 FROM tab2
----
-58
58
0
23
0
40

query I rowsort
SELECT 70 * + 67 FROM tab1
----
4690
4690
4690

query I rowsort
SELECT + ( + 23 ) AS col2 FROM tab0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1829
SELECT + - 93 DIV COUNT( * ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1829
SELECT + - 93 / COUNT ( * ) FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT ALL col0 / ( - ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL col0 / ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + + MIN( 0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT + + MIN ( 0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1832
SELECT ALL + 58 - - col0 * - + col0 * - 49 FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS DECIMAL ) * col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + 58 - - col0 * - + col0 * - 49 FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) * col0 <= NULL
----

query I rowsort
SELECT ALL 61 * 7 * - col1 AS col2 FROM tab0
----
-34587
-427
-8967

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND - ( - + ( - col0 ) )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT MIN( DISTINCT - 62 ) AS col0 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-1835
SELECT MIN ( DISTINCT - 62 ) AS col0 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT MIN( - ( - col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1836
SELECT MIN ( - ( - col0 ) ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND + 42
----
0

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND + 42
----
0

query I rowsort
SELECT ALL + + col1 * - - col2 + + col0 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT + 33 DIV 52 * + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 33 / 52 * + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT + ( - SUM( + 46 ) ) col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1840
SELECT DISTINCT + ( - SUM ( + 46 ) ) col2 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT ALL 13 * + ( 18 ) - + col2 FROM tab0 AS cor0 WHERE NOT NULL = col1 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL SUM( ALL + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL SUM ( ALL + + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT + + col2 + + - 12 + - 34 FROM tab2 AS cor0
----
-23
-6
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1844
SELECT ALL + col1, CAST( + - col0 AS SIGNED ) col2 FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1844
SELECT ALL + col1, CAST ( + - col0 AS INTEGER ) col2 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT 53 + + col2 AS col1 FROM tab0
----
100
152
63

query I rowsort
SELECT 0 + - ( + 32 ) FROM tab2
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT DISTINCT 80 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 80 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL + CAST( + col1 AS SIGNED ) + - col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + CAST ( + col1 AS INTEGER ) + - col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 76 + + - ( - col2 ) * - + col2 AS col1 FROM tab2 AS cor0
----
-1676
-3440
-605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 75 - - - col0 col0 FROM tab1 AS cor0
----
-126
-160
-166

query I rowsort
SELECT + col2 + 96 FROM tab0
----
106
143
195

query I rowsort
SELECT + 99 + 24 * - + col1 FROM tab2
----
-1125
-1509
-1749

query I rowsort
SELECT DISTINCT 32 - - 26 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 53 + + - 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1856
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 53 + + - 15 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + + 31 * - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 = + col1
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + + 31 * - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 = + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1858
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-1858
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT - COUNT( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1859
SELECT - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 78 * + - col2 + - - col1 AS col0 FROM tab1 AS cor0
----
4607
5351
7502

query I rowsort
SELECT ALL - ( + + 44 ) FROM tab1 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-1862
SELECT DISTINCT col2 * col2 AS col1, + col2 DIV + + col1 FROM tab0
----
100
0
2209
0
9801
99

skipif mysql # not compatible
query II rowsort label-1862
SELECT DISTINCT col2 * col2 AS col1, + col2 / + + col1 FROM tab0
----
100
0
2209
0
9801
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT MAX( + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1863
SELECT MAX ( + 15 ) FROM tab1
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1864
SELECT DISTINCT - col0 / - + CAST( NULL AS DECIMAL ) * 83 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - col0 / - + CAST ( NULL AS REAL ) * 83 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - 94 FROM tab1 cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT 91 NOT BETWEEN + + col1 + + - col2 * - 34 * col0 + + - col0 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ALL - col0 DIV + 62 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - col0 / + 62 FROM tab1 AS cor0
----
-1
-1
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL > ( 19 )
----

query I rowsort
SELECT col1 + - 21 * col0 * + - col2 - col1 FROM tab2
----
22218
53760
91350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 91 * col1 > - ( + ( + + 52 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 82 * col1 FROM tab0 cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT - COUNT( * ) + 80 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT - COUNT ( * ) + 80 FROM tab1 AS cor0
----
77

query II rowsort
SELECT + col0 * - + 53 * - col0 AS col0, - 77 + col0 * + + col1 FROM tab0 AS cor0
----
11925
1138
401157
1750
498677
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 67 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT ALL + 96 AS col1 FROM tab2 cor0
----
96
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT + 16 * COUNT( * ) + - 12, COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-1878
SELECT + 16 * COUNT ( * ) + - 12, COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
36
3

query I rowsort
SELECT + col1 * + - 91 AS col2 FROM tab1 AS cor0
----
-1274
-4277
-455

query II rowsort
SELECT col1 AS col1, 47 FROM tab0 AS cor0
----
1
47
21
47
81
47

query I rowsort
SELECT DISTINCT + 79 * + col1 AS col0 FROM tab0 cor0
----
1659
6399
79

query II rowsort
SELECT col1 * + + 42, + col2 AS col0 FROM tab2
----
2142
23
2814
58
3234
40

query I rowsort
SELECT - col0 + + + 11 + + col0 * - + 19 + 84 * 68 * + col2 AS col0 FROM tab2 WHERE - + 29 IS NOT NULL
----
130467
227211
329807

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1884
SELECT - + CAST( col2 AS SIGNED ), - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
query II rowsort label-1884
SELECT - + CAST ( col2 AS INTEGER ), - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT DISTINCT ( - col1 ) + - col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT - col0 * - col2 + - ( - col0 ) FROM tab2
----
1104
2624
4425

query II rowsort
SELECT DISTINCT - col2 - - 55 AS col1, col0 FROM tab1
----
-13
91
-4
85
-41
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1888
SELECT * FROM tab2 AS cor0 WHERE + 26 NOT BETWEEN CAST( NULL AS SIGNED ) AND - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1888
SELECT * FROM tab2 AS cor0 WHERE + 26 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1889
SELECT * FROM tab1 AS cor0 WHERE + 0 BETWEEN + col0 + - + CAST( NULL AS SIGNED ) + + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1889
SELECT * FROM tab1 AS cor0 WHERE + 0 BETWEEN + col0 + - + CAST ( NULL AS INTEGER ) + + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - COUNT( * ) + - - COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT - COUNT ( * ) + - - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 - - 69 AS col1 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT + 30 * - MIN( DISTINCT - - 92 ) FROM tab0 AS cor0
----
-2760

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + 30 * - MIN ( DISTINCT - - 92 ) FROM tab0 AS cor0
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - + COUNT( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - + COUNT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - - MIN( DISTINCT + 34 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - - MIN ( DISTINCT + 34 ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT 65 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 92 * ( + col2 ) + col0 + + col2 / col2 BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 92, 98 + - col1 * - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col0 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT ( - 99 ) * + - col1 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT - 83 * 99 * + - SUM( DISTINCT col2 ), 13 * 39 AS col2 FROM tab2
----
994257
507

skipif mysql # not compatible
query II rowsort label-1902
SELECT - 83 * 99 * + - SUM ( DISTINCT col2 ), 13 * 39 AS col2 FROM tab2
----
994257
507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL col2 * col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL col2 * col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL - 57 * + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL - 57 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT 20 DIV + col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT 20 / + col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 53 * col0 * col2 FROM tab2
----
135680
230550
56074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 65 * + col0 + + + 67 col2 FROM tab1 AS cor0
----
3286
5533
5914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - 16 / CAST( NULL AS SIGNED ) + - 39 > NULL )
----

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - 16 / CAST ( NULL AS INTEGER ) + - 39 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT + - COUNT( * ) * + 65 * - COUNT( * ) col1 FROM tab2 cor0
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1911
SELECT DISTINCT + - COUNT ( * ) * + 65 * - COUNT ( * ) col1 FROM tab2 cor0
----
585

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 96 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 59 * - ( - 55 ) FROM tab1
----
3245
3245
3245

query I rowsort
SELECT col0 * - + 52 FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT ALL 8 * + col2 + + + col0 FROM tab0
----
167
391
889

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT + 2 AS col0, COUNT( * ) FROM tab1
----
2
3

skipif mysql # not compatible
query II rowsort label-1916
SELECT + 2 AS col0, COUNT ( * ) FROM tab1
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT MAX( ALL + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1917
SELECT MAX ( ALL + 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - ( + MIN( DISTINCT 73 ) ) AS col0 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1918
SELECT - ( + MIN ( DISTINCT 73 ) ) AS col0 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT ALL - 61 + + ( - - col0 ) FROM tab0 cor0
----
-46
26
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / + + 62 IS NULL
----

query I rowsort
SELECT DISTINCT + + 28 - + col0 FROM tab0 AS cor0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT MAX( 9 ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1922
SELECT MAX ( 9 ) col0 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT - 3 * - COUNT( ALL col0 * ( + 7 ) ) + - MIN( ALL col1 ) * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT - 3 * - COUNT ( ALL col0 * ( + 7 ) ) + - MIN ( ALL col1 ) * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 27 * - col1 + - 34 FROM tab2
----
-1411
-1843
-2113

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL 12 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL 12 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( - 17 ) AS col1 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1927
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + + col2 * + col1 = - 53
----

skipif mysql # not compatible
query III rowsort label-1927
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + + col2 * + col1 = - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT + CAST( col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 - - col0 col2 FROM tab2
----
102
73
91

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab2 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + 19 col0 FROM tab2
----
32
32
32

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 84 ) < col1 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT - col1 * col0 + col0 DIV - ( ( - 15 ) ) FROM tab0
----
-1214
-1822
-91

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - col1 * col0 + col0 / - ( ( - 15 ) ) FROM tab0
----
-1214
-1822
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + COUNT( * ) + 63 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1934
SELECT + COUNT ( * ) + 63 FROM tab2
----
66

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT COUNT( ALL - col2 ) + - COUNT( * ) AS col1 FROM tab2 WHERE ( + col2 * 2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT COUNT ( ALL - col2 ) + - COUNT ( * ) AS col1 FROM tab2 WHERE ( + col2 * 2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + 31 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * 82 + 20 col1 FROM tab1
----
-7524
-7524
-7524

query I rowsort
SELECT - col0 * + 22 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT 78 * COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT 78 * COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * 39 col1 FROM tab2 AS cor0
----
-2964
-2964
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 39 col2 FROM tab2 AS cor0
----
25
36
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT col0 + col1 DIV - col2 col0 FROM tab0 AS cor0
----
14
85
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT col0 + col1 / - col2 col0 FROM tab0 AS cor0
----
14
85
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( + col0 / 38 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( + col0 / 38 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT DISTINCT col2 DIV - col1 + - 9 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT col2 / - col1 + - 9 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT + 11 * 8 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + 11 * 8 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * + col0 )
----

query I rowsort
SELECT col1 * col1 - - ( col1 ) AS col2 FROM tab0 cor0 WHERE ( - 69 ) IS NOT NULL
----
2
462
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * 55 col0 FROM tab1 AS cor0
----
2805
2805
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + MIN( ALL col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1953
SELECT + MIN ( ALL col1 ) FROM tab2 cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 99 * + 29 )
----

query I rowsort
SELECT - col2 - 86 FROM tab2 AS cor0
----
-109
-126
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT - COUNT( ALL col2 ) * + 81 - - 57 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1956
SELECT - COUNT ( ALL col2 ) * + 81 - - 57 FROM tab1 AS cor0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT ALL + 75 DIV + 89 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + 75 / + 89 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 72 - col1 + - col2 FROM tab1
----
-38
-43
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL CAST( + - 80 AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL CAST ( + - 80 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
-77

query III rowsort
SELECT * FROM tab1 WHERE + 14 + + 5 * - 36 IS NULL
----

query I rowsort
SELECT ALL - 38 * + col2 AS col1 FROM tab0
----
-1786
-3762
-380

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col0 NOT BETWEEN + col0 AND - col1 / - col1
----

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab2 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT 78 * - MAX( DISTINCT - col0 ) + COUNT( * ) AS col0 FROM tab2
----
3591

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT 78 * - MAX ( DISTINCT - col0 ) + COUNT ( * ) AS col0 FROM tab2
----
3591

query I rowsort
SELECT ALL ( + ( 20 ) ) + 5 AS col0 FROM tab2
----
25
25
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1966
SELECT DISTINCT - 20 + - - CAST( NULL AS DECIMAL ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - 20 + - - CAST ( NULL AS REAL ) * + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE 21 * col0 NOT BETWEEN ( - col1 + col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * - - 95 * + 16 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
106190
119600
78578

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL - MIN( ALL - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - MIN ( ALL - col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT 66 * MAX( ALL 92 ) FROM tab1
----
6072

skipif mysql # not compatible
query I rowsort label-1972
SELECT 66 * MAX ( ALL 92 ) FROM tab1
----
6072

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT + col2 DIV + + col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1973
SELECT + col2 / + + col2 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + - 48 + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + - 48 + col2 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 3 ) IN ( + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT DISTINCT - CAST( + - 66 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - CAST ( + - 66 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col1 + 45 + + 16 AS col0 FROM tab1
----
14
47
56

query I rowsort
SELECT DISTINCT + 52 * ( col0 ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - - CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2 WHERE - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2 WHERE - + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 + + + 6 + + - col1 * col1 AS col1 FROM tab1
----
-139
-2112
66

query II rowsort
SELECT + col2 + + col0, col1 FROM tab1
----
144
5
147
14
159
47

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT - 1 < NULL
----

query I rowsort
SELECT DISTINCT - 92 + + col0 * - col1 AS col0 FROM tab1
----
-4369
-517
-806

query I rowsort
SELECT + - 66 * + col2 * + - col1 FROM tab2 AS cor0
----
203280
256476
77418

query I rowsort
SELECT ALL + ( - + ( col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + - col0 + - + 6 + col1 * - col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT col0 + - 72 FROM tab2
----
-26
-8
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT 93 + + 7 DIV col2 AS col0 FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-1988
SELECT 93 + + 7 / col2 AS col0 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - col2 + - col0 * + col1 * col2 FROM tab0 AS cor0
----
-18280
-57152
-9702

query I rowsort
SELECT DISTINCT - ( - 60 ) * + col2 - + + col0 AS col0 FROM tab2 AS cor0
----
1334
2336
3405

query I rowsort
SELECT 19 + + ( + - 64 ) + col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT ALL + - 53 DIV + + 54 - + 81 + col2 + + col1 DIV 15 * col1 + col0 AS col1 FROM tab0 cor0
----
115
37
386

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + - 53 / + + 54 - + 81 + col2 + + col1 / 15 * col1 + col0 AS col1 FROM tab0 cor0
----
115
37
386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 col2 FROM tab2 cor0
----
-45
-45
-45

query I rowsort
SELECT ALL col2 - - + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - - col1 + - col2 + col2 + - ( col2 ) FROM tab0 AS cor0 WHERE 20 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * - col2 < ( - 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT + col0 - col2 DIV 43 AS col0 FROM tab1 AS cor0
----
49
84
90

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + col0 - col2 / 43 AS col0 FROM tab1 AS cor0
----
49
84
90

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) IN ( - 25 ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE - 87 * + - col2 BETWEEN + ( + + col2 ) + + col2 AND + ( - ( - 78 ) )
----

query I rowsort
SELECT + col2 - col1 * - col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL COUNT( DISTINCT + col1 ) * SUM( ALL - col2 ) AS col1 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL COUNT ( DISTINCT + col1 ) * SUM ( ALL - col2 ) AS col1 FROM tab1
----
-669

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN + 43 AND NULL
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col0 = - col2 * 70
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT DISTINCT - COUNT( * ) * - 78 AS col2, 93 + 77 AS col2 FROM tab0 AS cor0
----
234
170

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - COUNT ( * ) * - 78 AS col2, 93 + 77 AS col2 FROM tab0 AS cor0
----
234
170

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL + col0 DIV 20 * - col2 FROM tab0 AS cor0
----
-396
-40
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL + col0 / 20 * - col2 FROM tab0 AS cor0
----
-396
-40
0

query II rowsort
SELECT ALL ( - 3 ), 8 AS col1 FROM tab2 AS cor0
----
-3
8
-3
8
-3
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT + COUNT( * ) * 94 DIV - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2007
SELECT + COUNT ( * ) * 94 / - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 59 + - col2 + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + MAX( - 23 ) AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2009
SELECT + MAX ( - 23 ) AS col2 FROM tab0 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + col1 * + - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + 11 / + + 18 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 44
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2012
SELECT + CAST( NULL AS DECIMAL ) / + 16 / + - 65 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT + CAST ( NULL AS REAL ) / + 16 / + - 65 * - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2013
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * + col1 col2, + 34 FROM tab2
----
NULL
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2013
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * + col1 col2, + 34 FROM tab2
----
NULL
34

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT ( - col1 ) = col1 / + col1 + - col2 / - col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT 52 + SUM( + 45 ) FROM tab0
----
187

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 52 + SUM ( + 45 ) FROM tab0
----
187

query III rowsort
SELECT * FROM tab1 WHERE + 30 NOT IN ( + ( - - col0 ) * + 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT DISTINCT + 49 + - CAST( NULL AS SIGNED ) * + col1 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2017
SELECT DISTINCT + 49 + - CAST ( NULL AS INTEGER ) * + col1 col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + 36 FROM tab1 cor0
----
121
127
87

query I rowsort
SELECT DISTINCT ( + + col2 ) * + col1 FROM tab1 AS cor0 WHERE NOT 60 + 99 = - col2
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT + 94 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18

skipif mysql # not compatible
query I rowsort label-2021
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18

query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE - col0 * col0 * + + ( - 44 ) NOT BETWEEN - col1 * 39 AND - ( + col1 ) + - col2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL + - CAST( col1 AS SIGNED ) + - 50 AS col0 FROM tab2 AS cor0
----
-101
-117
-127

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + - CAST ( col1 AS INTEGER ) + - 50 AS col0 FROM tab2 AS cor0
----
-101
-117
-127

query I rowsort
SELECT + 42 - + + 19 FROM tab0 AS cor0
----
23
23
23

query II rowsort
SELECT DISTINCT + col0 - 34 * - col0 + col0 AS col2, + ( 78 ) - col0 FROM tab0 AS cor0
----
3132
-9
3492
-19
540
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 + 25 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + - 11 FROM tab1 cor0 WHERE NOT ( + col1 + - 86 ) >= - col2 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT ALL - + 97 - col0 DIV 77 AS col0 FROM tab2 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - + 97 - col0 / 77 AS col0 FROM tab2 AS cor0
----
-97
-97
-97

query II rowsort
SELECT - 2 + + col2 + - + 99 * - - col1 AS col2, - 73 AS col0 FROM tab0 cor0
----
-2
-73
-2071
-73
-7974
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT ALL ( - COUNT( + col1 ) ) AS col1, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2030
SELECT ALL ( - COUNT ( + col1 ) ) AS col1, COUNT ( * ) FROM tab0
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 50 / + col2 NOT BETWEEN col0 AND - col0 / - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT MIN( DISTINCT + + 45 ) DIV + 46 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT MIN ( DISTINCT + + 45 ) / + 46 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE col1 + + col1 + + col0 NOT IN ( col0, 14, + + col0 )
----
15
87
97

query I rowsort
SELECT ALL + ( 96 ) * - - col1 FROM tab0 AS cor0
----
2016
7776
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT COUNT( * ) * + 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-2036
SELECT COUNT ( * ) * + 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
198

query I rowsort
SELECT + 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT col0 * - 46 FROM tab0
----
-4002
-4462
-690

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 57 / + col1 + - col1 * + 63 IS NOT NULL
----

query I rowsort
SELECT ALL 13 * col0 AS col1 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2041
SELECT ALL - 66 DIV + - CAST( - col1 AS SIGNED ) + + + col2 + col1 FROM tab2 AS cor0
----
117
125
73

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - 66 / + - CAST ( - col1 AS INTEGER ) + + + col2 + col1 FROM tab2 AS cor0
----
117
125
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT + CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2042
SELECT + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 * - - 29 * + + 33 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1286208
-282315
-3058572

query I rowsort
SELECT 41 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( 20 + - col1 )
----

query I rowsort
SELECT - 4 + + col2 AS col1 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2046
SELECT * FROM tab2 WHERE - CAST( - 95 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2046
SELECT * FROM tab2 WHERE - CAST ( - 95 AS REAL ) IS NULL
----

query I rowsort
SELECT col1 + + 90 + + - col1 * + col0 FROM tab1
----
-330
-4140
-610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2048
SELECT + col2 + + 34 + + + col2 + + + ( + 72 ) + - - CAST( - col2 AS SIGNED ) AS col2, - ( + ( - 48 ) ) FROM tab1
----
165
48
174
48
202
48

skipif mysql # not compatible
query II rowsort label-2048
SELECT + col2 + + 34 + + + col2 + + + ( + 72 ) + - - CAST ( - col2 AS INTEGER ) AS col2, - ( + ( - 48 ) ) FROM tab1
----
165
48
174
48
202
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2049
SELECT - CAST( NULL AS SIGNED ) + + + ( + ( - COUNT( * ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT - CAST ( NULL AS INTEGER ) + + + ( + ( - COUNT ( * ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT ALL - col2 DIV + 86 + - + col1 FROM tab0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - col2 / + 86 + - + col1 FROM tab0
----
-2
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT ALL CAST( col1 AS SIGNED ) + + col0 + + - col1 col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT ALL CAST ( col1 AS INTEGER ) + + col0 + + - col1 col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2053
SELECT - col1 * - 83 + + 72 AS col1, + col0 / - + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
4305
NULL
5633
NULL
6463
NULL

skipif mysql # not compatible
query II rowsort label-2053
SELECT - col1 * - 83 + + 72 AS col1, + col0 / - + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
4305
NULL
5633
NULL
6463
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 + 73 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 12 + col0 AS col0 FROM tab2 cor0
----
34
52
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2056
SELECT ALL - - 7 - - 7 - + col0, - CAST( - 97 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-37
97
-71
97
-77
97

skipif mysql # not compatible
query II rowsort label-2056
SELECT ALL - - 7 - - 7 - + col0, - CAST ( - 97 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-37
97
-71
97
-77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT COUNT( + - 82 ) - 96 + 73 * SUM( + - col1 ) FROM tab2 AS cor0
----
-14328

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT COUNT ( + - 82 ) - 96 + 73 * SUM ( + - col1 ) FROM tab2 AS cor0
----
-14328

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ( - SUM( DISTINCT - ( - + col2 ) ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2058
SELECT ( - SUM ( DISTINCT - ( - + col2 ) ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col0 * - 88 AS col1 FROM tab2
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2060
SELECT + + ( - + col0 ) FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) + - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2060
SELECT + + ( - + col0 ) FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) + - + col1 IS NULL
----

query II rowsort
SELECT 33 * col0 AS col1, - 95 FROM tab0
----
2871
-95
3201
-95
495
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NOT NULL < NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + ( + col2 ), col0 * + - col1 AS col1 FROM tab0
----
10
-1827
47
-1215
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT + col0 DIV - col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2064
SELECT + col0 / - col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + COUNT( DISTINCT col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 81 + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + COUNT ( DISTINCT col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 81 + col1 < NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + 65 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - MIN( DISTINCT - + 31 ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2067
SELECT - MIN ( DISTINCT - + 31 ) AS col1 FROM tab0 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 96 * + col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - 41 + 46 * - MIN( ALL + + col2 ) AS col2 FROM tab1
----
-2755

skipif mysql # not compatible
query I rowsort label-2069
SELECT - 41 + 46 * - MIN ( ALL + + col2 ) AS col2 FROM tab1
----
-2755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL - col2 * - + ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL - col2 * - + ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 46 ) * - + 31 FROM tab1 AS cor0
----
-1426

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 / - col2 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2073
SELECT DISTINCT SUM( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT SUM ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - 17 AS col2 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2075
SELECT - CAST( NULL AS SIGNED ) * col2 + - col0 AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2075
SELECT - CAST ( NULL AS INTEGER ) * col2 + - col0 AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 93 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + - col0 IS NOT NULL
----

query I rowsort
SELECT - - col0 * ( - 26 ) * - col1 + 9 FROM tab0 AS cor0
----
2531
31599
47511

query I rowsort
SELECT - - col1 * col1 * + + 63 + col2 + + 4 FROM tab0 AS cor0
----
166
27797
413394

query II rowsort
SELECT + 30 AS col0, col1 - col2 AS col2 FROM tab1
----
30
-21
30
-54
30
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT col0 DIV 25 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2082
SELECT col0 / 25 FROM tab1
----
2
3
3

query I rowsort
SELECT ALL 45 * + + col0 + - + 45 AS col0 FROM tab2
----
2025
2835
3330

query I rowsort
SELECT ALL - col1 + + - 30 FROM tab1
----
-35
-44
-77

query I rowsort
SELECT DISTINCT col2 * - + col0 - - col2 * - 25 + - - col1 FROM tab0
----
-1099
-12077
-1799

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - + 4 + + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2086
SELECT - + 4 + + COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 19 - + 40 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT + - 35 + + col2 - - + 34 + col2 FROM tab0 AS cor0
----
19
197
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT + - COUNT( * ) + - 84 AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT + - COUNT ( * ) + - 84 AS col1 FROM tab2 AS cor0
----
-87

query II rowsort
SELECT DISTINCT + col1, + col1 + 21 AS col2 FROM tab1 AS cor0
----
14
35
47
68
5
26

query I rowsort
SELECT DISTINCT ( + 73 ) FROM tab1
----
73

query I rowsort
SELECT ( col1 ) - - col1 + - 45 + + + 60 * + - col1 FROM tab0
----
-103
-1263
-4743

query I rowsort
SELECT - ( - 29 ) - - 78 FROM tab1 cor0
----
107
107
107

onlyif mysql # DIV for integer division: 
query III rowsort label-2094
SELECT ALL + col0 * + col0, col2 AS col2, - 43 DIV - + col1 + - + 13 col0 FROM tab0 AS cor0
----
9 values hashing to 887de9eb5952613473882dc45da38e32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2094
SELECT ALL + col0 * + col0, col2 AS col2, - 43 / - + col1 + - + 13 col0 FROM tab0 AS cor0
----
9 values hashing to 887de9eb5952613473882dc45da38e32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2095
SELECT ALL + col2 / + + CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL + col2 / + + CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + 81 * + - col1 + 98 FROM tab0 AS cor0
----
-1603
-6463
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT ALL + + col2 DIV col2 * - - ( 6 ) FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + + col2 / col2 * - - ( 6 ) FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT - MIN( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2098
SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2099
SELECT DISTINCT + - CAST( + col1 AS SIGNED ), - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-14
1344
-47
3196
-5
295

skipif mysql # not compatible
query II rowsort label-2099
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ), - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-14
1344
-47
3196
-5
295

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - 66 * - 41 * - + SUM( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2101
SELECT - 66 * - 41 * - + SUM ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 1 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - ( - col1 ) AS col2, - col2 AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 9 <= col0 - - 46 * + col0 + - + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT - SUM( - 17 ) AS col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - SUM ( - 17 ) AS col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2105
SELECT COUNT( CAST( - - col1 AS DECIMAL ) ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2105
SELECT COUNT ( CAST ( - - col1 AS REAL ) ) * + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT - + col1 AS col1 FROM tab1 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT 29 AS col1, MIN( ALL 1 ) AS col0 FROM tab0
----
29
1

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT 29 AS col1, MIN ( ALL 1 ) AS col0 FROM tab0
----
29
1

query I rowsort
SELECT - 56 FROM tab1 AS cor0 WHERE NOT + ( - - col1 ) IS NULL
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + MIN( + 45 ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2109
SELECT + MIN ( + 45 ) AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT col2 * + + col1 * + ( + col1 ) AS col0 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 54 < ( - ( + + col0 ) + + 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL + ( - COUNT( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + ( - COUNT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT DISTINCT - 21 DIV - - 24 * + col2 + + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - 21 / - - 24 * + col2 + + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2116
SELECT * FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) IN ( - col1 + + - col2, 22, - 50 )
----

skipif mysql # not compatible
query III rowsort label-2116
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IN ( - col1 + + - col2, 22, - 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + col1 col2 FROM tab2
----
136
152
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) - MAX( - - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) - MAX ( - - col1 ) FROM tab0
----
-81

query I rowsort
SELECT + col0 * - - col1 * - col1 AS col2 FROM tab0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT 86 DIV - 29 + - 60 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT 86 / - 29 + - 60 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT - 20 + - - COUNT( * ) * + + COUNT( + col2 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - 20 + - - COUNT ( * ) * + + COUNT ( + col2 ) FROM tab0
----
-11

query I rowsort
SELECT + 83 FROM tab1 WHERE NULL = + 6
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT DISTINCT + ( - 92 ) - - - col2 AS col2 FROM tab1 AS cor0
----
-151
-160
-188

query I rowsort
SELECT ALL + 4 * - - col1 AS col2 FROM tab2
----
204
268
308

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL + COUNT( * ) * + - 89 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL + COUNT ( * ) * + - 89 FROM tab2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT - + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2127
SELECT - + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 58 / + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT ALL + 72 DIV col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + 72 / col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2130
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + CAST( NULL AS DECIMAL ), col0 / 67, - col2, + col1 * + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2130
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + CAST ( NULL AS REAL ), col0 / 67, - col2, + col1 * + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT DISTINCT - CAST( 55 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - CAST ( 55 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT ALL + + col0 * - + ( + 58 ) FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2133
SELECT DISTINCT SUM( - + 95 ) AS col1, - MAX( - - CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-285
-81

skipif mysql # not compatible
query II rowsort label-2133
SELECT DISTINCT SUM ( - + 95 ) AS col1, - MAX ( - - CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-285
-81

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR - col1 * + + col1 - 94 * - - col0 IS NULL
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 33 * + col1 AS col2 FROM tab0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + COUNT( * ) * + 15 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + COUNT ( * ) * + 15 AS col1 FROM tab1
----
45

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 44 AS col2 FROM tab1 WHERE NOT NULL = ( + + 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT ALL - 31 DIV col0 * col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2141
SELECT ALL - 31 / col0 * col0 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + MIN( DISTINCT + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) FROM tab1
----
59

query I rowsort
SELECT + 28 * - 24 FROM tab0
----
-672
-672
-672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2144
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( 51 AS SIGNED ), + col1, col2 )
----

skipif mysql # not compatible
query III rowsort label-2144
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( 51 AS INTEGER ), + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 90 <= + col1
----
3

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 90 <= + col1
----
3

query I rowsort
SELECT + 85 + - + col1 AS col1 FROM tab2 AS cor0
----
18
34
8

query I rowsort
SELECT - 32 + + 22 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab2 WHERE - + 18 - col0 <> 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col0 * 17 + 31
----

query I rowsort
SELECT + 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT - - MAX( + col0 ) + - ( + 40 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT - - MAX ( + col0 ) + - ( + 40 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT - 17 DIV - col1 + + 41 AS col2, 71 AS col1 FROM tab2 AS cor0
----
41
71
41
71
41
71

skipif mysql # not compatible
query II rowsort label-2152
SELECT - 17 / - col1 + + 41 AS col2, 71 AS col1 FROM tab2 AS cor0
----
41
71
41
71
41
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT + - COUNT( ALL + 19 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + - COUNT ( ALL + 19 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT + COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2154
SELECT + COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 60 - + - col2 NOT IN ( - 77 * + col0, col2, col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 62 AND NULL
----

query I rowsort
SELECT - ( + col2 ) * col1 + + 82 + + col0 AS col0 FROM tab0
----
-3710
-41
80

query I rowsort
SELECT ALL 38 - + - col1 FROM tab2
----
105
115
89

query I rowsort
SELECT - + col2 * 77 + - - col2 FROM tab0 AS cor0
----
-3572
-7524
-760

query I rowsort
SELECT ALL - + col0 - - 79 FROM tab1 AS cor0
----
-12
-6
28

query II rowsort
SELECT DISTINCT - + col1 - - 15, col1 AS col1 FROM tab0 AS cor0
----
-6
21
-66
81
14
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + 6 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 6 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + col0 * + + col0 + + + 80 FROM tab0 AS cor0
----
-145
-7489
-9329

query I rowsort
SELECT DISTINCT + col2 * - + col1 * - 22 FROM tab2 cor0 WHERE col0 BETWEEN + + col0 AND + + 88
----
25806
67760
85492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT ALL + CAST( - MAX( ALL - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + CAST ( - MAX ( ALL - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - 98 * - ( + col0 ) + + + 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 93 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 93 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COUNT( + col0 ) * + - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2169
SELECT - COUNT ( + col0 ) * + - COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2170
SELECT ALL 57 DIV col2 * - col0 * - col0, + 80 AS col0 FROM tab1
----
0
80
0
80
0
80

skipif mysql # not compatible
query II rowsort label-2170
SELECT ALL 57 / col2 * - col0 * - col0, + 80 AS col0 FROM tab1
----
0
80
0
80
0
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2171
SELECT DISTINCT + COUNT( * ), COUNT( + + col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2171
SELECT DISTINCT + COUNT ( * ), COUNT ( + + col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
3
NULL

query II rowsort
SELECT - col2 AS col2, col1 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT DISTINCT - col1, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT COUNT( DISTINCT + + 88 ) DIV COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT COUNT ( DISTINCT + + 88 ) / COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + 29 AS col1 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + COUNT( DISTINCT + col1 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-2176
SELECT + COUNT ( DISTINCT + col1 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 53 NOT BETWEEN - - 77 AND 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 95
----

query II rowsort
SELECT DISTINCT - - ( + + 35 ) AS col0, + col2 AS col2 FROM tab0 cor0
----
35
10
35
47
35
99

query I rowsort
SELECT ALL + + 55 * - - col1 FROM tab0 cor0
----
1155
4455
55

query I rowsort
SELECT + col2 / col2 FROM tab0 AS cor0 WHERE - col2 = + + col0 - 81
----

query I rowsort
SELECT + 69 + - 40 + - 2 + - 44 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col0 * - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2183
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( 56 AS SIGNED ) AND + - col0
----

skipif mysql # not compatible
query III rowsort label-2183
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( 56 AS INTEGER ) AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT CAST( NULL AS SIGNED ) * - 26 * + 78 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2184
SELECT CAST ( NULL AS INTEGER ) * - 26 * + 78 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT - + COUNT( ALL col2 ) FROM tab1 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - + COUNT ( ALL col2 ) FROM tab1 WHERE NOT NULL <> col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col2 col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 WHERE - + col0 + col0 + - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + col1 + - 92 <= + ( - ( - + col0 ) )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab0
----
-67
-67
-67

query II rowsort
SELECT + col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL - col0 * + col0 + + col0 AS col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT + col1 * + + 69 * col1 - - + col1 AS col2 FROM tab0
----
30450
452790
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT col2 DIV - col2 - + 21 + + col1 FROM tab2
----
29
45
55

skipif mysql # not compatible
query I rowsort label-2193
SELECT col2 / - col2 - + 21 + + col1 FROM tab2
----
29
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT COUNT( * ) - COUNT( ALL + col2 ) + - 47 AS col2 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2194
SELECT COUNT ( * ) - COUNT ( ALL + col2 ) + - 47 AS col2 FROM tab0
----
-47

query I rowsort
SELECT col2 * + col1 * 31 AS col2 FROM tab2 AS cor0
----
120466
36363
95480

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - MIN( + col0 ) * - + 17 FROM tab1
----
867

skipif mysql # not compatible
query I rowsort label-2196
SELECT - MIN ( + col0 ) * - + 17 FROM tab1
----
867

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT + 47 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 47 / + col0 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / - col1 + - 18 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 WHERE - col0 + col0 IS NOT NULL
----
8

query I rowsort
SELECT ALL + 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2201
SELECT ALL - ( - + col0 ) * col2, - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL - ( - + col0 ) * col2, - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN NULL AND - 67 * col2 / + - col0 - + - 54
----

query I rowsort
SELECT - col0 * - - 82 + - + col0 AS col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT SUM( ALL 45 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2204
SELECT SUM ( ALL 45 ) FROM tab0 AS cor0
----
135

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL <> + 0 + - col1 + - col2 )
----

query I rowsort
SELECT + 8 * col2 * + 95 * + col1 AS col2 FROM tab1 WHERE NOT - 62 IS NULL
----
1021440
224200
2428960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + COUNT( * ) * + - 6 + + + COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + COUNT ( * ) * + - 6 + + + COUNT ( * ) FROM tab1
----
-15

query I rowsort
SELECT ALL - col1 + + + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + - 59 AS col0 FROM tab0 cor0
----
-146
-156
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 96 + - + MAX( + col2 ) * - 23 FROM tab2 AS cor0
----
1430

skipif mysql # not compatible
query I rowsort label-2211
SELECT 96 + - + MAX ( + col2 ) * - 23 FROM tab2 AS cor0
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2212
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + + + col2 * - col0 * - col2 * 74 * + 3 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + + + col2 * - col0 * - col2 * 74 * + 3 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 40 + col1 AS col1 FROM tab1
----
45
54
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL SUM( DISTINCT - 2 ) - + COUNT( * ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL SUM ( DISTINCT - 2 ) - + COUNT ( * ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = + col0 / - + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT + - ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2217
SELECT + - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 81 - + 66 * ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2219
SELECT 81 - + 66 * ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
279

query I rowsort
SELECT - col2 - col1 + col2 - - col2 + col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-1201
-3117
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + MIN( ALL + + col2 ) - - + MIN( DISTINCT - col0 ) + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2221
SELECT + MIN ( ALL + + col2 ) - - + MIN ( DISTINCT - col0 ) + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2222
SELECT - - col0, + CAST( - - 40 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 * - col0 AND col1 / + - col2
----

skipif mysql # not compatible
query II rowsort label-2222
SELECT - - col0, + CAST ( - - 40 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 * - col0 AND col1 / + - col2
----

query I rowsort
SELECT - col2 - + - col1 * - + ( 53 ) * - + col1 AS col0 FROM tab1 cor0
----
10292
117009
1266

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT DISTINCT 91 DIV - + col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT 91 / - + col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = 38
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2226
SELECT AVG ( ALL - col0 ) + + - SUM( DISTINCT col1 ) / - CAST( NULL AS SIGNED ) + + + 38 + - - COUNT( * ) - + - MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT AVG ( ALL - col0 ) + + - SUM ( DISTINCT col1 ) / - CAST ( NULL AS INTEGER ) + + + 38 + - - COUNT ( * ) - + - MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 59 AS col2 FROM tab1 AS cor0
----
-2773
-295
-826

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 63 * + col2 - - + 16
----

query I rowsort
SELECT ALL - 96 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, - 12 FROM tab2 AS cor0
----
-46
-12
-64
-12
-75
-12

query I rowsort
SELECT DISTINCT + col2 * col1 * 86 AS col2 FROM tab2
----
100878
264880
334196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + ( - 23 ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + ( - 23 ) AS col0 FROM tab1
----
-22

query II rowsort
SELECT 75 AS col0, ( + ( + + ( col2 ) ) ) AS col2 FROM tab0 WHERE NOT - 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT DISTINCT + 18 DIV + ( 91 ) + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + 18 / + ( 91 ) + + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT 81 FROM tab2 WHERE 34 BETWEEN NULL AND 58
----

query I rowsort
SELECT ALL 33 + + + col1 + + col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) * + 80 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 80 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 + col1 AS col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT ALL col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE 38 <= NULL
----

query I rowsort
SELECT + 44 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT DISTINCT + col2 DIV 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + col2 / 63 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE + 71 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT - col2 + 44 + - - CAST( - 58 AS SIGNED ) AS col1 FROM tab0
----
-113
-24
-61

skipif mysql # not compatible
query I rowsort label-2246
SELECT - col2 + 44 + - - CAST ( - 58 AS INTEGER ) AS col1 FROM tab0
----
-113
-24
-61

query I rowsort
SELECT ALL - ( - 91 ) * 62 + col2 AS col0 FROM tab2 AS cor0
----
5665
5682
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL COUNT( * ) * 9 - + COUNT( * ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL COUNT ( * ) * 9 - + COUNT ( * ) FROM tab0 cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2249
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - 51 AND + + CAST( - + 68 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2249
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - 51 AND + + CAST ( - + 68 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 7 - + - 22 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 47 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 13 - + - 67 AS col0 FROM tab1 AS cor0
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * - 8 <> - + col2 )
----

query I rowsort
SELECT 23 * col0 FROM tab2
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT - SUM( - col0 ) * - - 8 FROM tab1 WHERE NOT ( NOT 47 IS NOT NULL )
----
1816

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - SUM ( - col0 ) * - - 8 FROM tab1 WHERE NOT ( NOT 47 IS NOT NULL )
----
1816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2258
SELECT ALL 64 AS col2, CAST( col2 AS SIGNED ) * + - col1 AS col0 FROM tab1
----
64
-1344
64
-295
64
-3196

skipif mysql # not compatible
query II rowsort label-2258
SELECT ALL 64 AS col2, CAST ( col2 AS INTEGER ) * + - col1 AS col0 FROM tab1
----
64
-1344
64
-295
64
-3196

query II rowsort
SELECT col0 AS col0, - col0 FROM tab2
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 / - 95, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT 50 * + 6 + - + COUNT( ALL + - 24 ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT 50 * + 6 + - + COUNT ( ALL + - 24 ) FROM tab1 AS cor0
----
297

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 + + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT MIN( col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT MIN ( col1 ) FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT + 76 DIV - col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 76 / - col1 FROM tab1 AS cor0
----
-1
-15
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2266
SELECT + col2 DIV - 95 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-1
-96
0
-59
0
-68

skipif mysql # not compatible
query II rowsort label-2266
SELECT + col2 / - 95 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-1
-96
0
-59
0
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2267
SELECT + COUNT( * ) DIV + 6 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT + COUNT ( * ) / + 6 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - COUNT( * ) * - COUNT( * ) + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2268
SELECT - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
18

query I rowsort
SELECT - - 85 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT col2 * + col0 * - col0 * - + col0 AS col2 FROM tab0
----
158625
6585030
90354627

onlyif mysql # DIV for integer division: 
query II rowsort label-2271
SELECT ALL + col0 AS col1, 37 DIV + - 45 FROM tab0 AS cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2271
SELECT ALL + col0 AS col1, 37 / + - 45 FROM tab0 AS cor0
----
15
0
87
0
97
0

query II rowsort
SELECT + + col1, col1 + - + 40 * - 45 FROM tab1 AS cor0
----
14
1814
47
1847
5
1805

query III rowsort
SELECT * FROM tab2 WHERE - - 0 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT + - COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT + - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 - + col0 / - - 96 * - col2 + + 84 BETWEEN NULL AND + 77
----

query I rowsort
SELECT - 38 - ( - 77 ) AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT ALL - 9 * - col0 * - + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-21160
-44416
-45300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 2 IS NULL
----

query II rowsort
SELECT + col2 - - 53 AS col1, col2 FROM tab0 AS cor0
----
100
47
152
99
63
10

query I rowsort
SELECT DISTINCT col0 * col2 - + - 76 * - 54 FROM tab1 AS cor0
----
2084
792
911

query I rowsort
SELECT ALL - 27 * + ( - - col0 ) FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT col0 * - - ( - + col2 ) - + ( + 29 ) AS col0 FROM tab0 AS cor0
----
-734
-899
-9632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2283
SELECT CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NOT - - col2 * - 11 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT + MAX( ALL - 32 ) col2 FROM tab2
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT DISTINCT + MAX ( ALL - 32 ) col2 FROM tab2
----
-32

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + col2 < + + col0
----

query I rowsort
SELECT + col2 * 1 * - + 26 * + - col1 AS col2 FROM tab0
----
2574
5460
98982

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT col1 DIV - 49 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT col1 / - 49 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 65 ) FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT - COUNT( - 21 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - COUNT ( - 21 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + COUNT( * ) * + - 46 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + COUNT ( * ) * + - 46 FROM tab1
----
-138

query I rowsort
SELECT col2 * + 0 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + SUM( col1 ) + + MAX( ALL 17 ) AS col0 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2293
SELECT + SUM ( col1 ) + + MAX ( ALL 17 ) AS col0 FROM tab1 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( - col1 AS DECIMAL ) * - 7, - col1 )
----

skipif mysql # not compatible
query III rowsort label-2294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( - col1 AS REAL ) * - 7, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT MIN( DISTINCT + + 94 ) FROM tab2 cor0
----
94

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT MIN ( DISTINCT + + 94 ) FROM tab2 cor0
----
94

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 / - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2297
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query II rowsort label-2297
SELECT DISTINCT col1 * CAST ( NULL AS REAL ), col2 AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + - col0 + + + col0 col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - SUM( - 63 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2299
SELECT - SUM ( - 63 ) FROM tab1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT - 30 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT - 30 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 54 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 * + + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 78 * col2 AS col0 FROM tab1 AS cor0
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - - ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - - ( COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT ALL - - 19 AS col0, col2 AS col2 FROM tab2 AS cor0
----
19
23
19
40
19
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT - CAST( - 19 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - CAST ( - 19 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2307
SELECT - SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT COUNT( * ) * + 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-2308
SELECT COUNT ( * ) * + 74 FROM tab1
----
222

query I rowsort
SELECT DISTINCT 63 * col0 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT 98 * 69 FROM tab1
----
6762
6762
6762

query I rowsort
SELECT ALL + 54 + - 67 + - - 40 FROM tab1 WHERE + + col0 NOT IN ( col2 + col1 )
----
27
27
27

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 48 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT + col2 DIV 55 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT + col2 / 55 FROM tab1
----
1
1
1

query I rowsort
SELECT + 44 * + - col1 * + - 38 FROM tab2
----
112024
128744
85272

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + + MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2315
SELECT + + MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT + + col0 * + col1, - col0 AS col0 FROM tab2 AS cor0
----
2346
-46
4928
-64
5025
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 * 56 col2 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT ALL ( - + ( - col1 ) ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - 39 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) - col0 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - - col1 + + 96 + - col2 * col2 col2 FROM tab2 AS cor0
----
1757
1913
3424

query I rowsort
SELECT + + ( - 80 ) FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT + + col2 * - + col2 + + - 37 AS col1 FROM tab2 cor0
----
-1637
-3401
-566

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 - + + 19 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + col0 * - - col1 * 33 FROM tab0 AS cor0
----
1884465
316899
602910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT + COUNT( DISTINCT + col2 ) DIV + MIN( DISTINCT + - 20 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT + COUNT ( DISTINCT + col2 ) / + MIN ( DISTINCT + - 20 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - ( + 48 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + col1 + 7 AS col1 FROM tab0
----
28
8
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT ALL + col0 * 27 DIV 21 + 88 AS col1 FROM tab2
----
147
170
184

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + col0 * 27 / 21 + 88 AS col1 FROM tab2
----
147
170
184

query I rowsort
SELECT ALL - ( - col1 ) - - + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT ( 90 ) + - + col2 AS col2 FROM tab1
----
-6
22
31

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col1 / 27 / - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - ( + COUNT( ALL + col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - ( + COUNT ( ALL + col0 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT - - ( MIN( + col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - - ( MIN ( + col2 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT ALL + MIN( ALL + CAST( + + 24 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + MIN ( ALL + CAST ( + + 24 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - COUNT( + + 42 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2336
SELECT - COUNT ( + + 42 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT 47 - + col0 + CAST( NULL AS SIGNED ) + 9 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT 47 - + col0 + CAST ( NULL AS INTEGER ) + 9 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT + ( + COUNT( * ) ) * + 98 AS col2 FROM tab2 WHERE + 68 + - - col0 <> + 95 + + col0
----
294

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + ( + COUNT ( * ) ) * + 98 AS col2 FROM tab2 WHERE + 68 + - - col0 <> + 95 + + col0
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT + COUNT( * ) AS col2, 28 AS col2 FROM tab1
----
3
28

skipif mysql # not compatible
query II rowsort label-2342
SELECT + COUNT ( * ) AS col2, 28 AS col2 FROM tab1
----
3
28

query II rowsort
SELECT DISTINCT col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 18 * + - col1 col0 FROM tab2 AS cor0
----
1206
1386
918

query I rowsort
SELECT + ( 10 ) * - + 81 AS col1 FROM tab2 AS cor0
----
-810
-810
-810

query I rowsort
SELECT DISTINCT 31 * 7 AS col1 FROM tab1 AS cor0
----
217

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 59 * 66 AS col2 FROM tab1 AS cor0
----
-3894
-3894
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT 78 + COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2349
SELECT 78 + COUNT ( * ) AS col1 FROM tab1
----
81

query I rowsort
SELECT 15 + 40 FROM tab2
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL - col1 * ( 83 ) AS col2 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT * FROM tab0 WHERE NOT 8 * 8 - + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 10 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col0 * col1 ) = col0
----
-3

skipif mysql # not compatible
query I rowsort label-2355
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col0 * col1 ) = col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT CAST( + MIN( - col1 ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2356
SELECT CAST ( + MIN ( - col1 ) AS INTEGER ) FROM tab1
----
-47

query I rowsort
SELECT - 35 * 97 AS col2 FROM tab0
----
-3395
-3395
-3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 58 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 58 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 81 AS col0 FROM tab2 WHERE NULL IN ( 81 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT - col0 + 98 * col2 FROM tab0
----
4591
893
9605

query I rowsort
SELECT + ( col2 ) * col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT 48 DIV + 10 FROM tab2 WHERE - 23 IS NOT NULL
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2363
SELECT 48 / + 10 FROM tab2 WHERE - 23 IS NOT NULL
----
4
4
4

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) * col1 ) NOT BETWEEN ( - 51 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * 38 FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
1786
3762
380

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 20 )
----

query I rowsort
SELECT 56 + + 81 FROM tab0
----
137
137
137

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT 13 + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + 3 )
----
13

skipif mysql # not compatible
query I rowsort label-2369
SELECT 13 + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + 3 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT col1 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT col1 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 27 + 41 * - col2 FROM tab1
----
-2446
-2815
-3963

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT COUNT( ALL + 95 ) * MAX( ALL col0 ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2372
SELECT COUNT ( ALL + 95 ) * MAX ( ALL col0 ) AS col0 FROM tab0
----
291

query III rowsort
SELECT * FROM tab0 WHERE NOT - 89 + - 72 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + + 64 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT - ( 47 ) + - ( MIN( 73 ) ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-2375
SELECT - ( 47 ) + - ( MIN ( 73 ) ) FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL MIN( ALL col0 ) * COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL MIN ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab1
----
153

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT + ( + CAST( NULL AS SIGNED ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT + ( + CAST ( NULL AS INTEGER ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT - 41 DIV col2 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT - 41 / col2 AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL 53 * + 41 FROM tab0
----
2173
2173
2173

query I rowsort
SELECT ALL col1 - ( 7 + + col2 ) AS col1 FROM tab2
----
2
21
30

query I rowsort
SELECT 6 - - col0 FROM tab2 AS cor0
----
52
70
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + ( - col2 ) * + col0 AND + CAST( NULL AS SIGNED ) - ( + 65 + col2 )
----

skipif mysql # not compatible
query I rowsort label-2384
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + ( - col2 ) * + col0 AND + CAST ( NULL AS INTEGER ) - ( + 65 + col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( 51 ) BETWEEN NULL AND 51 * - col2
----

query I rowsort
SELECT + 35 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + + ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - 55 + 80 col0 FROM tab1 WHERE NOT 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 96 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT + MIN( col0 ) FROM tab2 WHERE NOT - col1 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT + MIN ( col0 ) FROM tab2 WHERE NOT - col1 > ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <= col1
----
75
67
58

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + - col2 * + 92 > - 22
----
1
21
81

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT ( - col2 * + col2 ) IN ( 26 )
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 + 55 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + col0 NOT BETWEEN - col2 * + col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( - 72 ) + 26 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 1 ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - ( + MAX( ALL ( + ( - 80 ) ) ) ) AS col0 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-2398
SELECT - ( + MAX ( ALL ( + ( - 80 ) ) ) ) AS col0 FROM tab1
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE + 4 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT - COUNT( + - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2400
SELECT - COUNT ( + - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 17 * - col0 + 28 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col2 + + col0
----

query I rowsort
SELECT DISTINCT - col2 + + 71 AS col2 FROM tab2 WHERE NOT + 43 < - col1
----
13
31
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) + + 75 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 75 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 60 * col0 * 56 FROM tab0 cor0
----
-292320
-325920
-50400

query I rowsort
SELECT - 22 * - + col0 FROM tab2 cor0
----
1012
1408
1650

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 NOT IN ( 80 )
----

query I rowsort
SELECT 10 + - - 24 AS col2 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + SUM( + + col0 ) + 35 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2409
SELECT + SUM ( + + col0 ) + 35 FROM tab0 AS cor0
----
234

query I rowsort
SELECT DISTINCT + col0 * 19 + - col0 FROM tab0 AS cor0
----
1566
1746
270

query I rowsort
SELECT col0 + + col2 + + 64 * - col0 FROM tab1
----
-3117
-5296
-5665

query I rowsort
SELECT ALL 42 + + - col1 AS col1 FROM tab1
----
-5
28
37

query I rowsort
SELECT DISTINCT col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col0 + - 15 FROM tab1 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col0 * - col2 * + 95 FROM tab2 AS cor0
----
100510
243200
413250

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2418
SELECT ALL * FROM tab1 cor0 WHERE ( + - ( col2 ) ) IS NOT NULL OR NOT - col1 IN ( col2 + CAST( + col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2418
SELECT ALL * FROM tab1 cor0 WHERE ( + - ( col2 ) ) IS NOT NULL OR NOT - col1 IN ( col2 + CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 3 - 92 + col1 * 65 AS col0 FROM tab2 AS cor0
----
3226
4266
4916

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT - - 19 DIV ( + 6 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - - 19 / ( + 6 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT 23 * - + SUM( DISTINCT - col1 ) - + 65 * - 98 AS col0 FROM tab0 AS cor0
----
8739

skipif mysql # not compatible
query I rowsort label-2421
SELECT 23 * - + SUM ( DISTINCT - col1 ) - + 65 * - 98 AS col0 FROM tab0 AS cor0
----
8739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - CAST( + 22 AS SIGNED ) + + 44 * + 66 FROM tab0 AS cor0
----
2882
2882
2882

skipif mysql # not compatible
query I rowsort label-2422
SELECT - CAST ( + 22 AS INTEGER ) + + 44 * + 66 FROM tab0 AS cor0
----
2882
2882
2882

query I rowsort
SELECT + 77 * - 56 * - + col1 + 12 AS col1 FROM tab2
----
219924
288916
332036

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 3 * 12 + col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - col2 ) FROM tab2 WHERE ( + 64 * col1 * col2 + - col0 ) >= col2 + 86
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2426
SELECT * FROM tab0 WHERE ( - + ( + CAST( NULL AS SIGNED ) ) ) BETWEEN - 22 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2426
SELECT * FROM tab0 WHERE ( - + ( + CAST ( NULL AS INTEGER ) ) ) BETWEEN - 22 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = + 47 + - 73
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 < ( col1 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT ( MIN( ALL + col1 ) ) AS col0 FROM tab1 WHERE NOT col0 * 38 + 94 + - 82 NOT IN ( - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT ( MIN ( ALL + col1 ) ) AS col0 FROM tab1 WHERE NOT col0 * 38 + 94 + - 82 NOT IN ( - 14 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL + col1 DIV + + col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + col1 / + + col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE - col2 >= NULL
----

query II rowsort
SELECT col2, 24 + + col0 FROM tab1
----
59
109
68
115
96
75

query I rowsort
SELECT - 64 * col0 AS col2 FROM tab0 cor0
----
-5568
-6208
-960

query II rowsort
SELECT + - col2 * - col1 - - + 72 AS col1, 64 FROM tab1 AS cor0
----
1416
64
3268
64
367
64

query II rowsort
SELECT DISTINCT + + 40, - col0 AS col0 FROM tab0 AS cor0
----
40
-15
40
-87
40
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 92 + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + ( COUNT( * ) ) * SUM( - ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + ( COUNT ( * ) ) * SUM ( - ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 * 54 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * col2 * - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + - SUM( + + 38 ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2441
SELECT + - SUM ( + + 38 ) FROM tab0 AS cor0
----
-114

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 / - col0 * - - col1
----

query II rowsort
SELECT ALL col0, + col1 * - col1 * - - 90 + + col1 FROM tab2
----
46
-234039
64
-533533
75
-403943

query I rowsort
SELECT ALL col2 + - col1 - 63 FROM tab2 WHERE + 44 BETWEEN col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT DISTINCT - col1 * CAST( - - 7 AS SIGNED ) + - col1 FROM tab2
----
-408
-536
-616

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - col1 * CAST ( - - 7 AS INTEGER ) + - col1 FROM tab2
----
-408
-536
-616

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) AS col0 FROM tab0 WHERE NOT ( + col2 * - - col1 + + col2 * + - col0 ) > 53
----
-1
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2447
SELECT DISTINCT 79 + CAST( NULL AS SIGNED ) - - + ( + CAST( NULL AS SIGNED ) ), COUNT( DISTINCT + 20 ) AS col2 FROM tab1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2447
SELECT DISTINCT 79 + CAST ( NULL AS INTEGER ) - - + ( + CAST ( NULL AS INTEGER ) ), COUNT ( DISTINCT + 20 ) AS col2 FROM tab1
----
NULL
1

query I rowsort
SELECT ( + + 61 ) AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT ALL 33 * ( - col1 ) FROM tab2
----
-1683
-2211
-2541

query II rowsort
SELECT DISTINCT - 65 AS col1, 50 * + 67 FROM tab2 AS cor0
----
-65
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT - ( - - MIN( 35 ) ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2451
SELECT - ( - - MIN ( 35 ) ) FROM tab2
----
-35

query I rowsort
SELECT col0 + ( + col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT col0 + 30 FROM tab1
----
115
121
81

query III rowsort
SELECT * FROM tab2 WHERE ( 51 * + + 36 * + - col1 + - + col0 ) BETWEEN col1 + 25 AND + 69
----

query I rowsort
SELECT + col2 * - col2 + - + col1 + 98 AS col1 FROM tab1
----
-3388
-4573
-9132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL - - 25 + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-22
-74
15

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - - 25 + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-22
-74
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2457
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 IN ( 71 )
----

skipif mysql # not compatible
query III rowsort label-2457
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 IN ( 71 )
----

query I rowsort
SELECT ( + col0 ) * + - 17 AS col1 FROM tab2 cor0
----
-1088
-1275
-782

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + col2
----

query I rowsort
SELECT DISTINCT col2 - + 87 FROM tab1 AS cor0
----
-19
-28
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL CAST( + ( + + 92 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL CAST ( + ( + + 92 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - col1 col0 FROM tab1
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + MIN( + col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2463
SELECT DISTINCT + MIN ( + col1 ) col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT 86 * + col1 AS col0 FROM tab1
----
1204
4042
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 81 * 22 col0 FROM tab1
----
105138
121176
171072

query I rowsort
SELECT ALL - col1 + - 38 AS col1 FROM tab1
----
-43
-52
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + + + col0 + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 * + col0 FROM tab0 WHERE NOT NULL > ( + 90 )
----

query II rowsort
SELECT col0 AS col2, + 16 + + col0 AS col1 FROM tab0
----
15
31
87
103
97
113

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT 95 AS col2, COUNT( * ) FROM tab1
----
95
3

skipif mysql # not compatible
query II rowsort label-2470
SELECT 95 AS col2, COUNT ( * ) FROM tab1
----
95
3

query I rowsort
SELECT DISTINCT + + col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 29 col0, col2 AS col1 FROM tab0 AS cor0
----
29
10
29
47
29
99

query I rowsort
SELECT DISTINCT - + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT ALL - 9, ( + col0 ) FROM tab0 cor0
----
-9
15
-9
87
-9
97

query II rowsort
SELECT + 97 AS col2, 22 AS col2 FROM tab0 AS cor0
----
97
22
97
22
97
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col1 * + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col1 * + 22 )
----
0

query II rowsort
SELECT col1 * - col2 AS col1, + col2 FROM tab2
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT ALL col1 * + - 3 * - + 68 AS col0 FROM tab1
----
1020
2856
9588

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT + col0 DIV + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-2479
SELECT + col0 / + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT DISTINCT - ( - MIN( ALL - - ( + col1 ) ) ) AS col2 FROM tab1 cor0 WHERE NULL > ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - ( - MIN ( ALL - - ( + col1 ) ) ) AS col2 FROM tab1 cor0 WHERE NULL > ( - col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2481
SELECT ALL + COUNT( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2482
SELECT * FROM tab2 WHERE NOT 57 * + + CAST( NULL AS SIGNED ) <= ( - col0 + - col0 + + col2 + - 74 )
----

skipif mysql # not compatible
query III rowsort label-2482
SELECT * FROM tab2 WHERE NOT 57 * + + CAST ( NULL AS INTEGER ) <= ( - col0 + - col0 + + col2 + - 74 )
----

query I rowsort
SELECT DISTINCT 77 + - 73 * - col0 * col1 + + ( col1 ) AS col1 FROM tab0
----
133469
7159
88853

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL SUM( + - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL SUM ( + - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT - col0 FROM tab2 WHERE + + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT COUNT( * ) + - ( - + 90 ) AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT COUNT ( * ) + - ( - + 90 ) AS col1 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + 35 FROM tab2 AS cor0
----
-23
-5
12

query I rowsort
SELECT + col2 + + 97 + + - col1 FROM tab1 AS cor0
----
118
151
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT CAST( - + col0 AS SIGNED ) + + ( - col0 ) FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-2490
SELECT CAST ( - + col0 AS INTEGER ) + + ( - col0 ) FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT + col1 DIV + 51 + - col1 + col0 * - 23 col1 FROM tab0 cor0
----
-2022
-2232
-425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2491
SELECT + col1 / + 51 + - col1 + col0 * - 23 col1 FROM tab0 cor0
----
-2022
-2232
-425

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) NOT BETWEEN - 73 AND NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT - CAST( - 27 AS SIGNED ) AS col0 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-2494
SELECT - CAST ( - 27 AS INTEGER ) AS col0 FROM tab1
----
27
27
27

query II rowsort
SELECT + - col2 * + 3 - + + ( - col0 ), - ( col2 ) AS col0 FROM tab2 cor0
----
-23
-23
-56
-40
-99
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2497
SELECT ALL MAX( + col2 ) * 87 - - + 80 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL MAX ( + col2 ) * 87 - - + 80 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 - + - 73 + - col2 col0 FROM tab0 cor0
----
731
933
9577

query I rowsort
SELECT DISTINCT + col2 + + ( + 46 ) AS col2 FROM tab1 cor0
----
105
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + + 54 - + MAX( DISTINCT - 98 ) AS col1 FROM tab0 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + + 54 - + MAX ( DISTINCT - 98 ) AS col1 FROM tab0 AS cor0
----
152

query I rowsort
SELECT ALL 12 + + 45 * - 43 FROM tab0 AS cor0
----
-1923
-1923
-1923

query I rowsort
SELECT DISTINCT col2 * col2 + + 88 AS col0 FROM tab2 AS cor0
----
1688
3452
617

query I rowsort
SELECT - - 98 + - - 34 FROM tab0 AS cor0
----
132
132
132

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 BETWEEN - col1 * col0 AND NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ( - col0 ) + + ( + col0 ) * col0 FROM tab2 cor0
----
2070
4032
5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 68 * - col0 col1, - col0 FROM tab2
----
-3128
-46
-4352
-64
-5100
-75

query I rowsort
SELECT - 5 AS col0 FROM tab1 WHERE NOT - + 77 + + col1 + - 41 * + 46 / - - col0 + + col2 IN ( - 39 )
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE - - 50 <> + 96
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT DISTINCT - 74 DIV - MIN( DISTINCT + col1 ) col0 FROM tab1
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT DISTINCT - 74 / - MIN ( DISTINCT + col1 ) col0 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - COUNT( * ) col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL - COUNT ( * ) col2 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 AS cor0 WHERE NOT 24 / - col0 - col0 IS NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + COUNT( * ) * + 34 AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2513
SELECT + COUNT ( * ) * + 34 AS col1 FROM tab1 AS cor0
----
102

query II rowsort
SELECT ALL - + col0 * - + col1 AS col2, 44 AS col2 FROM tab0 AS cor0
----
1215
44
1827
44
97
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT + MIN( DISTINCT 75 ) FROM tab0 AS cor0 WHERE NOT NULL > + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + MIN ( DISTINCT 75 ) FROM tab0 AS cor0 WHERE NOT NULL > + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT + ( + CAST( - COUNT( col0 ) AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT + ( + CAST ( - COUNT ( col0 ) AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2517
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + SUM( + + col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + SUM ( + + col0 ) AS col1 FROM tab2 cor0
----
185

query II rowsort
SELECT ( col0 ) + + col2 + + col2, + col1 AS col1 FROM tab2 AS cor0
----
144
77
191
67
92
51

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - - 90 <= col1
----
91
47
68

query II rowsort
SELECT + col0 + + col2, col2 * - + col0 * - - ( - col0 ) AS col2 FROM tab0
----
196
931491
62
10575
97
75690

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT + col1 + col1 + col1 DIV col2 * + ( - - col1 ) + + + col1 DIV + 87 FROM tab0
----
2
243
84

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + col1 + col1 + col1 / col2 * + ( - - col1 ) + + + col1 / + 87 FROM tab0
----
2
243
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab0
----
71
71
71

query I rowsort
SELECT DISTINCT 60 + + - 19 FROM tab2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT - col0 - 98 DIV col0 AS col2 FROM tab0 AS cor0
----
-21
-88
-98

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - col0 - 98 / col0 AS col2 FROM tab0 AS cor0
----
-21
-88
-98

query I rowsort
SELECT DISTINCT - col2 * + col1 + 54 AS col1 FROM tab0 WHERE NOT - 81 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2527
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2527
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * + col0 * - + col2 * ( - + col1 ) / ( + col2 ) + - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT COUNT( * ) + - 87 AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT COUNT ( * ) + - 87 AS col2 FROM tab0
----
-84

query I rowsort
SELECT 53 + + + col2 + + col0 AS col1 FROM tab1
----
197
200
212

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + COUNT( * ) * + 32 - MIN( ALL + 14 ) * + 74 AS col0 FROM tab0 AS cor0
----
-940

skipif mysql # not compatible
query I rowsort label-2532
SELECT + COUNT ( * ) * + 32 - MIN ( ALL + 14 ) * + 74 AS col0 FROM tab0 AS cor0
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - 71 * + + COUNT( * ) * - MAX( - col2 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-2133

skipif mysql # not compatible
query I rowsort label-2533
SELECT - 71 * + + COUNT ( * ) * - MAX ( - col2 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-2133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2534
SELECT col1, - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2534
SELECT col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2535
SELECT COUNT( * ) AS col2, COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-2535
SELECT COUNT ( * ) AS col2, COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
3
1

query I rowsort
SELECT col2 * + 59 FROM tab0
----
2773
5841
590

query II rowsort
SELECT DISTINCT 70, 38 AS col2 FROM tab1
----
70
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT + + CAST( 45 AS SIGNED ), col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
45
23
45
40
45
58

skipif mysql # not compatible
query II rowsort label-2538
SELECT + + CAST ( 45 AS INTEGER ), col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
45
23
45
40
45
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT CAST( NULL AS SIGNED ) + 70 * ( col0 ) FROM tab1 AS cor0 WHERE NOT 27 + 42 BETWEEN NULL AND - + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT CAST ( NULL AS INTEGER ) + 70 * ( col0 ) FROM tab1 AS cor0 WHERE NOT 27 + 42 BETWEEN NULL AND - + col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * 83 * + col1 + 73 - - col1 FROM tab2 AS cor0
----
216007
372727
492257

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 IS NULL )
----

query I rowsort
SELECT ( - + 23 ) FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2543
SELECT col2, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2543
SELECT col2, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT + 69 AS col0, col2 FROM tab2 AS cor0
----
69
23
69
40
69
58

query I rowsort
SELECT ALL col0 * - 26 + 83 FROM tab0 AS cor0
----
-2179
-2439
-307

query I rowsort
SELECT DISTINCT - ( 49 ) + + + col0 AS col0 FROM tab0
----
-34
38
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL + ( - col1 ) col1 FROM tab1 AS cor0 WHERE NOT + CAST( + 34 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2547
SELECT ALL + ( - col1 ) col1 FROM tab1 AS cor0 WHERE NOT + CAST ( + 34 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 73 * + - col1 + 8 FROM tab1 cor0
----
-1014
-3423
-357

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE + col0 IN ( + col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT 53 * - col2 - 62 FROM tab2 AS cor0
----
-1281
-2182
-3136

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 cor0 WHERE + col2 <> - col2
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - 71 * - + MIN( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3621

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 71 * - + MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3621

onlyif mysql # DIV for integer division: 
query II rowsort label-2553
SELECT DISTINCT col1 DIV - ( 7 ) AS col2, + col1 + + 53 + - col1 DIV + 90 + - col1 * col0 * + - col1 FROM tab1
----
-2
10063
-6
201119
0
2183

skipif mysql # not compatible
query II rowsort label-2553
SELECT DISTINCT col1 / - ( 7 ) AS col2, + col1 + + 53 + - col1 / + 90 + - col1 * col0 * + - col1 FROM tab1
----
-2
10063
-6
201119
0
2183

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + - col2 + + 82 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT + 17 DIV + + col0 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 17 / + + col0 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 38 * - 92 AS col0 FROM tab0
----
-3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + col1 col0 FROM tab2
----
18
34
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2558
SELECT ALL * FROM tab1 WHERE - 70 / + + 75 <= 25 / CAST( 24 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2558
SELECT ALL * FROM tab1 WHERE - 70 / + + 75 <= 25 / CAST ( 24 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 6 + + + col0 + - 49, 90 AS col0 FROM tab0
----
-28
90
44
90
54
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT DISTINCT 89 / + - 53 + - col1 + - CAST( NULL AS SIGNED ) - - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT 89 / + - 53 + - col1 + - CAST ( NULL AS INTEGER ) - - + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - - col2 + + col2 AS col1 FROM tab2 AS cor0
----
120
174
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col1 >= NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND + CAST( - ( 12 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2564
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND + CAST ( - ( 12 ) AS INTEGER )
----

query I rowsort
SELECT 32 * col0 AS col1 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT - col0 * - - 60 FROM tab0 AS cor0
----
-5220
-5820
-900

query II rowsort
SELECT - + col1 AS col1, + col0 - col2 FROM tab0 WHERE + 42 IS NOT NULL
----
-1
-2
-21
77
-81
-32

query II rowsort
SELECT ALL - col0 * - + 21 AS col0, + ( + 28 ) + + col1 * 89 + col0 FROM tab1
----
1071
1325
1785
558
1911
4302

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT DISTINCT 64 DIV col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT 64 / col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT + MAX( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2570
SELECT + MAX ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT ALL + col0 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL > 45
----

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + col0 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL > 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2572
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 72 FROM tab0 AS cor0 WHERE NOT ( + 84 + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 42 AS col2 FROM tab1 cor0
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT ALL - 38 DIV col2 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - 38 / col2 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT + + 72 AS col1 FROM tab1 WHERE NOT - + 31 IS NULL
----
72

query I rowsort
SELECT DISTINCT - ( + 75 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 / - - col1 - + 31 IS NOT NULL
----

query I rowsort
SELECT + 62 * col2 FROM tab2
----
1426
2480
3596

query II rowsort
SELECT + 67 AS col0, col0 * 48 - col0 FROM tab2 AS cor0
----
67
2162
67
3008
67
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2581
SELECT DISTINCT - CAST( NULL AS DECIMAL ), MAX( ALL - CAST( 10 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2581
SELECT DISTINCT - CAST ( NULL AS REAL ), MAX ( ALL - CAST ( 10 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
-10

query III rowsort
SELECT + col2, - col0 AS col0, + 63 + col2 FROM tab0
----
9 values hashing to 5650c3145d14fe4d493e62c339dc7d3e

query I rowsort
SELECT DISTINCT ( - + 58 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + 26 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab1 WHERE + - 93 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT col1 * 68 + + - 69 AS col0 FROM tab1
----
271
3127
883

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + COUNT( * ) + + 69 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( * ) + + 69 AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT - + col0 + - - col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL + col1 + + + 77 AS col2 FROM tab2 AS cor0
----
128
144
154

query I rowsort
SELECT ALL + 20 * + - col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - + col1 * - col2 * 49 AS col1 FROM tab0 cor0 WHERE + 87 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 41 * - 97 * - + col0 + + col2 + - - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - SUM( DISTINCT 12 ) AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - SUM ( DISTINCT 12 ) AS col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT COUNT( * ) + + - SUM( ALL + + col1 ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT COUNT ( * ) + + - SUM ( ALL + + col1 ) AS col2 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - COUNT( + - 19 ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - COUNT ( + - 19 ) FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT - col0 + - ( + col2 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + 89 + + - COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + 89 + + - COUNT ( * ) FROM tab0
----
86

query I rowsort
SELECT ALL - col1 + - col1 * col0 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT + + col1 * col1 - col1 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT - 82 + - col2 + + - col2 - + - 64 * - + col1 * - col1 * + 75 AS col0 FROM tab2 AS cor0
----
12484672
21547002
28459038

query I rowsort
SELECT 86 * col0 AS col2 FROM tab0
----
1290
7482
8342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2603
SELECT - CAST( NULL AS SIGNED ) - + 48 + ( - - 5 ) AS col1, + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

skipif mysql # not compatible
query II rowsort label-2603
SELECT - CAST ( NULL AS INTEGER ) - + 48 + ( - - 5 ) AS col1, + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 40 AS col0 FROM tab1 cor0
----
14
40
47
40
5
40

query I rowsort
SELECT + 37 / col2 - col0 AS col2 FROM tab0 AS cor0 WHERE NOT 16 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - + SUM( - - 65 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2606
SELECT - + SUM ( - - 65 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + - SUM( - + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2607
SELECT + - SUM ( - + col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT col0 * - 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1610
-2240
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL + 39 * - + SUM( ALL + - col1 ) FROM tab0
----
4017

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 39 * - + SUM ( ALL + - col1 ) FROM tab0
----
4017

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2610
SELECT - CAST( 27 AS SIGNED ) AS col0, + col1 AS col0 FROM tab0
----
-27
1
-27
21
-27
81

skipif mysql # not compatible
query II rowsort label-2610
SELECT - CAST ( 27 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0
----
-27
1
-27
21
-27
81

query I rowsort
SELECT 65 FROM tab0 WHERE NOT + col1 <= 82
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( NULL AS DECIMAL ) * col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( NULL AS REAL ) * col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT + - col0 DIV col2 + + 83 AS col0 FROM tab0 AS cor0
----
75
83
83

skipif mysql # not compatible
query I rowsort label-2613
SELECT + - col0 / col2 + + 83 AS col0 FROM tab0 AS cor0
----
75
83
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 * + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + - 71 AS col1 FROM tab2
----
-111
-129
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 col0 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT ALL - col1 * 70 + + 68 AS col0, - col2 AS col2 FROM tab1
----
-282
-59
-3222
-68
-912
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 47 AS col1 FROM tab0 AS cor0
----
128
48
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT + + ( + - col1 ) + - col0 DIV + ( - + col1 ) col2 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT DISTINCT + + ( + - col1 ) + - col0 / + ( - + col1 ) col2 FROM tab0 AS cor0
----
-17
-81
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT + CAST( col2 AS SIGNED ) - - + col1 + + 59 - 5 + - col2 + - col2 - + - col2 * 69 * + 42 * - - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + CAST ( col2 AS INTEGER ) - - + col1 + + 59 - 5 + - col2 + - col2 - + - col2 * 69 * + 42 * - - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT DISTINCT - - CAST( - MAX( ALL col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT - - CAST ( - MAX ( ALL col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT - - col2, - 11 AS col1 FROM tab0 AS cor0
----
10
-11
47
-11
99
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ( - 4 ) - + COUNT( * ) * - 7 AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2624
SELECT ( - 4 ) - + COUNT ( * ) * - 7 AS col0 FROM tab1 AS cor0
----
17

query I rowsort
SELECT + 32 - col2 AS col2 FROM tab2 AS cor0
----
-26
-8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + - ( col1 ) - - - col2 col0 FROM tab0 cor0
----
-98
431
6514

query I rowsort
SELECT DISTINCT - ( - ( 81 ) ) + - 85 AS col2 FROM tab2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2628
SELECT 82 DIV + COUNT( * ) + + COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2628
SELECT 82 / + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
30

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col0 + - + 66 AND ( + + 71 ) / col2
----

query I rowsort
SELECT DISTINCT col2 * col2 + + + col0 AS col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT ALL - col2 * col0 * col0 + - col1 - - col2 + col0 + 38 AS col2 FROM tab1 AS cor0
----
-249525
-426098
-562958

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - + MIN( + 43 ) AS col0 FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2632
SELECT - + MIN ( + 43 ) AS col0 FROM tab1 cor0
----
-43

query I rowsort
SELECT + + col2 * 2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT col2 * - + CAST( - + col0 AS SIGNED ) * - + col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT col2 * - + CAST ( - + col0 AS INTEGER ) * - + col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2635
SELECT ALL - CAST( NULL AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2635
SELECT ALL - CAST ( NULL AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2636
SELECT COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + - ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + 24 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2637
SELECT + - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + 24 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT + col2 DIV + ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2638
SELECT + col2 / + ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + col2 * + - 21 AS col2, col2 FROM tab2 AS cor0
----
-1218
58
-483
23
-840
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT CAST( - col2 AS SIGNED ) * - - 23 AS col0 FROM tab0
----
-1081
-2277
-230

skipif mysql # not compatible
query I rowsort label-2640
SELECT CAST ( - col2 AS INTEGER ) * - - 23 AS col0 FROM tab0
----
-1081
-2277
-230

query II rowsort
SELECT DISTINCT 22 AS col0, col2 FROM tab0
----
22
10
22
47
22
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 NOT BETWEEN col1 AND - + 3 * + - 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL col1 DIV + 52 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL col1 / + 52 AS col0 FROM tab2
----
0
1
1

query II rowsort
SELECT 37 AS col2, - col0 FROM tab0
----
37
-15
37
-87
37
-97

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - ( - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + - ( + ( ( COUNT( DISTINCT + 72 ) ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT + - ( + ( ( COUNT ( DISTINCT + 72 ) ) ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + 69 FROM tab2 cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL - + COUNT( * ) * - 93 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - + COUNT ( * ) * - 93 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT + 55 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 55 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - + 91 AS col1 FROM tab2 AS cor0
----
-14
-24
-40

query I rowsort
SELECT - col1 + - - 21 * 53 FROM tab1 cor0
----
1066
1099
1108

query I rowsort
SELECT DISTINCT col0 - col1 * - - 91 AS col0 FROM tab1 AS cor0
----
-1223
-370
-4186

query I rowsort
SELECT ALL - col0 + 76 AS col0 FROM tab1 cor0
----
-15
-9
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + + col0 + - - 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2657
SELECT ALL - CAST( 18 AS SIGNED ) + + + MIN( ALL 72 ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - CAST ( 18 AS INTEGER ) + + + MIN ( ALL 72 ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----
NULL

query II rowsort
SELECT col0 * - col2 - + col0 + + col2 + + - col0 * ( + col0 ) - - ( - - 76 ) * + 8 AS col2, col1 FROM tab1
----
-11658
5
-13884
47
-6844
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL + 0 + + + MIN( ALL 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 0 + + + MIN ( ALL 60 ) FROM tab1
----
60

query I rowsort
SELECT col0 * + 76 - - + 29 AS col0 FROM tab1
----
3905
6489
6945

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 39 <> NULL
----

query I rowsort
SELECT + 50 + - col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 > - - 2
----
-375
-4227
-664

query I rowsort
SELECT + 22 * - ( col2 ) * col0 - + ( + ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15525
-19227
-211363

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL ( - MIN( + + col2 ) ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL ( - MIN ( + + col2 ) ) AS col0 FROM tab2
----
-23

query II rowsort
SELECT 82 AS col2, col1 AS col0 FROM tab0
----
82
1
82
21
82
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + 36 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + 36 AND + col1
----
0

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE NOT - 79 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT COUNT( - 43 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT COUNT ( - 43 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT - COUNT( ALL + - 67 ) col0 FROM tab2 AS cor0 WHERE NOT col2 / - CAST( NULL AS SIGNED ) BETWEEN - - col0 * - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT DISTINCT - COUNT ( ALL + - 67 ) col0 FROM tab2 AS cor0 WHERE NOT col2 / - CAST ( NULL AS INTEGER ) BETWEEN - - col0 * - col0 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2670
SELECT ALL col0, + 71 DIV + col1 FROM tab2 cor0
----
46
1
64
0
75
1

skipif mysql # not compatible
query II rowsort label-2670
SELECT ALL col0, + 71 / + col1 FROM tab2 cor0
----
46
1
64
0
75
1

query I rowsort
SELECT DISTINCT 67 * 53 + - col2 AS col2 FROM tab1 AS cor0
----
3455
3483
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT - COUNT( * ) * - - 57 AS col1 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - COUNT ( * ) * - - 57 AS col1 FROM tab0 AS cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL + col0 DIV 39 AS col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + col0 / 39 AS col2 FROM tab0
----
0
2
2

query II rowsort
SELECT ( col0 ), col2 + + col1 FROM tab1
----
51
110
85
64
91
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT - ( - SUM( ALL col1 ) ) / + CAST( NULL AS SIGNED ) * 98 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - ( - SUM ( ALL col1 ) ) / + CAST ( NULL AS INTEGER ) * 98 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 77 + - 52 FROM tab1
----
25

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col2 * - ( ( + + ( - col1 ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 7 + + ( - + 80 ) AS col1 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - ( + col0 ) DIV + col1 AS col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2680
SELECT - ( + col0 ) / + col1 AS col0 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2681
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 10 - 6 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2683
SELECT - col0 - - + col2 DIV + col2 + + 34 DIV - - 18 + + - 38 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-100
64
-111
75
-82
46

skipif mysql # not compatible
query II rowsort label-2683
SELECT - col0 - - + col2 / + col2 + + 34 / - - 18 + + - 38 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-100
64
-111
75
-82
46

query I rowsort
SELECT ALL + - col1 - - + 82 + - + col2 FROM tab2 AS cor0
----
-35
-43
8

query I rowsort
SELECT - - 86 * - col2 - - + col1 FROM tab1 AS cor0
----
-5069
-5801
-8242

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 54 * - - 79, col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 99 col1 FROM tab1 AS cor0
----
14
48
8

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2690
SELECT DISTINCT + 67 DIV 12 AS col2, - 87 col2 FROM tab2
----
5
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2690
SELECT DISTINCT + 67 / 12 AS col2, - 87 col2 FROM tab2
----
5
-87

query I rowsort
SELECT DISTINCT + col1 + - 27 AS col1 FROM tab1
----
-13
-22
20

query I rowsort
SELECT ALL + ( + ( col1 ) ) FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - + 20 FROM tab0 AS cor0 WHERE ( NOT NULL >= - col0 )
----

query I rowsort
SELECT ALL 74 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT 90 DIV + + 30 AS col1 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2697
SELECT 90 / + + 30 AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + col2 * + + col1 - + 54 + - col1 FROM tab0 AS cor0
----
135
3672
44

query I rowsort
SELECT DISTINCT ( + 51 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2700
SELECT 41 + - CAST( NULL AS DECIMAL ) + - ( 95 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT 41 + - CAST ( NULL AS REAL ) + - ( 95 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 80 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1153
-6950
-7661

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT ALL col2 DIV 77 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL col2 / 77 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col2 + + 33 AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 68 FROM tab0
----
149
69
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT COUNT( * ) * - 61 FROM tab2, tab2 AS cor0
----
-549

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT COUNT ( * ) * - 61 FROM tab2, tab2 AS cor0
----
-549

query II rowsort
SELECT + 72, + 36 AS col2 FROM tab1
----
72
36
72
36
72
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL + MIN( + 49 ) FROM tab2, tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + MIN ( + 49 ) FROM tab2, tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT col1 + col2 * - + col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT + - COUNT( * ) AS col0, 77 FROM tab1 AS cor0 WHERE + col0 * - + col1 + + col1 * + col2 <= + col1 + + col1 / - col0
----
-2
77

skipif mysql # not compatible
query II rowsort label-2709
SELECT + - COUNT ( * ) AS col0, 77 FROM tab1 AS cor0 WHERE + col0 * - + col1 + + col1 * + col2 <= + col1 + + col1 / - col0
----
-2
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2710
SELECT + col2, col1 * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2710
SELECT + col2, col1 * - - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT 16 DIV - - COUNT( DISTINCT col2 ) + - ( - MIN( ALL + - col0 ) ) + + 80 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2711
SELECT 16 / - - COUNT ( DISTINCT col2 ) + - ( - MIN ( ALL + - col0 ) ) + + 80 FROM tab1
----
-6

query I rowsort
SELECT 26 + 66 FROM tab2
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + + - col1 col2 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT DISTINCT - col0 - col1 + + col2 + 43 * - col1 * + 98 AS col2 FROM tab0 AS cor0
----
-341383
-4213
-88592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 42 + + + 13 + + col1 + - + col1 * - col0 col1, col0 AS col1 FROM tab0 AS cor0
----
1351
15
153
97
1903
87

query I rowsort
SELECT ALL + 35 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + - 70 - ( COUNT( 31 ) ) col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2717
SELECT ALL + - 70 - ( COUNT ( 31 ) ) col2 FROM tab2 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 65 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab0 cor0
----
92

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - 30 FROM tab2
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT MIN( ALL 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT MIN ( ALL 52 ) FROM tab2
----
52

query II rowsort
SELECT + 18 AS col1, col2 FROM tab2
----
18
23
18
40
18
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 76
----

query I rowsort
SELECT ( col1 ) * 79 + + col2 AS col2 FROM tab1
----
1202
3781
454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT - COUNT( * ) DIV - COUNT( * ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT - COUNT ( * ) / - COUNT ( * ) col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 22 * - col2 + - col2 * col2 FROM tab2 AS cor0
----
-1035
-2480
-4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab1 AS cor0 WHERE NOT + 99 <= - - col2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - SUM( ALL - - ( - - col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2732
SELECT - SUM ( ALL - - ( - - col1 ) ) AS col2 FROM tab1
----
-66

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT MIN( + - ( + + col1 ) ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT MIN ( + - ( + + col1 ) ) FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT - - col0 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - - col0 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 23 * - col0 + + 64 FROM tab1 AS cor0
----
-1109
-1891
-2029

query I rowsort
SELECT - - 44 * col0 FROM tab2 cor0
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT 54 - ( + MIN( DISTINCT + col0 ) ) * + - 62 AS col2 FROM tab2 WHERE + - 35 * + + 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT 54 - ( + MIN ( DISTINCT + col0 ) ) * + - 62 AS col2 FROM tab2 WHERE + - 35 * + + 47 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 51 + - + 63 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT + ( - 63 ) + - - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + ( - 63 ) + - - COUNT ( * ) FROM tab1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL - 81 * + col1 + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL - 81 * + col1 + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 72 ) + 16 col1 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT ALL + col0 - 70 - + 18 + + col0 AS col0 FROM tab0 AS cor0
----
-58
106
86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col1 * + 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 59 AS col2 FROM tab2
----
-117
-82
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 - - col2 * col1 AS col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL - col1 - + + col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT 11 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT 11 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT - CAST( NULL AS SIGNED ) + - col1 - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT - CAST ( NULL AS INTEGER ) + - col1 - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 18 col0, 63 FROM tab0 AS cor0
----
-18
63
-18
63
-18
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - SUM( ALL + + 45 ) AS col1 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2752
SELECT - SUM ( ALL + + 45 ) AS col1 FROM tab1 AS cor0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT + + COUNT( * ) * 8 DIV - 85 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT + + COUNT ( * ) * 8 / - 85 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 55 + + col2 <= + + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT - col0 DIV + 11 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-2755
SELECT - col0 / + 11 FROM tab0
----
-1
-7
-8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 26 IS NULL )
----

query II rowsort
SELECT ALL - - 80 * - - 45 * + col2 * + + col1 + - 51, 29 AS col1 FROM tab2 WHERE NOT - ( col2 ) * 37 IS NOT NULL
----

query I rowsort
SELECT ALL col1 / - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab2 WHERE col1 + + 47 IS NOT NULL
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 84 FROM tab2
----
46
-84
64
-84
75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2761
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2761
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NOT + col2 * + col0 <= col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 85 * 71 + 85 FROM tab1 AS cor0
----
-5950

query II rowsort
SELECT - + col0 + col1 + col0 AS col2, 82 * + col2 FROM tab1 AS cor0
----
14
7872
47
5576
5
4838

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2765
SELECT + col0 * col1 + 11 * CAST( NULL AS SIGNED ) * + - col0 + - 87, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2765
SELECT + col0 * col1 + 11 * CAST ( NULL AS INTEGER ) * + - col0 + - 87, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col1 * + col1 * - - 57 * ( - - col1 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT + + 82 + - 44 AS col0 FROM tab2 AS cor0
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL OR NULL IN ( + col2 / - 83, - col0 * col1 + - ( + col1 ), - - 37, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2769
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE NULL < + col2
----

skipif mysql # not compatible
query I rowsort label-2769
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE NULL < + col2
----

query I rowsort
SELECT DISTINCT ( - + ( + 50 ) ) AS col1 FROM tab0
----
-50

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2 WHERE - col0 * - col1 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT - col0 * CAST( NULL AS SIGNED ) * + + col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2772
SELECT - col0 * CAST ( NULL AS INTEGER ) * + + col0 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + COUNT( * ) FROM tab2 WHERE NOT + ( + 10 ) <> ( col2 ) OR NOT + col1 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2773
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + ( + 10 ) <> ( col2 ) OR NOT + col1 + + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT + ( + COUNT( * ) ) + + MIN( ALL - 74 ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + ( + COUNT ( * ) ) + + MIN ( ALL - 74 ) FROM tab0
----
-71

query I rowsort
SELECT DISTINCT col2 + - 7 FROM tab1 AS cor0
----
52
61
89

query I rowsort
SELECT ALL - 15 AS col0 FROM tab0 AS cor0 WHERE 37 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 9 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
-9
-46
-9
-64
-9
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - ( MIN( col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2778
SELECT - ( MIN ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT + 64 AS col2, + col0 FROM tab0 AS cor0
----
64
15
64
87
64
97

query II rowsort
SELECT DISTINCT - col0 * col0 * - col0, 36 / 4 - - 77 AS col1 FROM tab0 WHERE - - col1 * col2 * + 80 + - col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL + 58 / - + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + 58 / - + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT MIN( DISTINCT 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2782
SELECT MIN ( DISTINCT 90 ) FROM tab0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT 74 * - CAST( + + 73 AS SIGNED ) FROM tab2
----
-5402
-5402
-5402

skipif mysql # not compatible
query I rowsort label-2783
SELECT 74 * - CAST ( + + 73 AS INTEGER ) FROM tab2
----
-5402
-5402
-5402

query II rowsort
SELECT DISTINCT col2 AS col1, + 0 * - + col0 FROM tab0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - 11 NOT BETWEEN 22 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - 11 NOT BETWEEN 22 AND NULL
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NULL NOT IN ( - + 67, - 83 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 32 AS col0, - 62 AS col2 FROM tab2
----
32
-62
32
-62
32
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9 col0, 7 AS col2 FROM tab2
----
9
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2790
SELECT DISTINCT col2, + CAST( - - ( - + col0 ) AS SIGNED ) col0 FROM tab1
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2790
SELECT DISTINCT col2, + CAST ( - - ( - + col0 ) AS INTEGER ) col0 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col1 * - + col0, + col1 )
----

query I rowsort
SELECT DISTINCT - + ( + + col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + 31 AS col2 FROM tab1 WHERE NOT 86 + + + col0 NOT IN ( - + col0 * + + col2 * + 58 / - + col2 * - - ( + - 96 ) * - col2 )
----

query II rowsort
SELECT col2, - col2 AS col2 FROM tab1 WHERE col1 / col1 / - col2 * 20 * 46 IS NULL
----

query I rowsort
SELECT + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT 53 * - + 75 FROM tab1 AS cor0
----
-3975
-3975
-3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT ALL - - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT 70 + 1 AS col2, ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
71
-3

skipif mysql # not compatible
query II rowsort label-2798
SELECT 70 + 1 AS col2, ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
71
-3

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 13 + + 58 AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT col1 DIV ( - ( + col0 ) ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT col1 / ( - ( + col0 ) ) FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT 1 DIV 46 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT 1 / 46 FROM tab0
----
0
0
0

query I rowsort
SELECT + 84 * + col1 + - col1 AS col1 FROM tab0
----
1743
6723
83

query I rowsort
SELECT ALL col1 + + col1 * 73 FROM tab1
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - 32 + ( 27 ) * COUNT( DISTINCT col2 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 32 + ( 27 ) * COUNT ( DISTINCT col2 ) FROM tab1
----
49

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 22 + col2 FROM tab0
----
121
32
69

query I rowsort
SELECT + ( 76 ) * + 79 + - col1 FROM tab2
----
5927
5937
5953

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col2 / col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL COUNT( * ) + - 4 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL COUNT ( * ) + - 4 AS col2 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 29 + - col2 ) >= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 WHERE - col2 + 5 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT - 61 + + col0 DIV + col2 AS col0 FROM tab2
----
-59
-60
-60

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 61 + + col0 / + col2 AS col0 FROM tab2
----
-59
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) * col1 col2 FROM tab1 WHERE - col2 / 70 + + col0 * col2 IS NOT NULL
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2818
SELECT DISTINCT - COUNT( * ) * COUNT( - CAST( NULL AS DECIMAL ) ) - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL NOT BETWEEN + col1 + + col0 AND ( CAST( NULL AS SIGNED ) + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - COUNT ( * ) * COUNT ( - CAST ( NULL AS REAL ) ) - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL NOT BETWEEN + col1 + + col0 AND ( CAST ( NULL AS INTEGER ) + + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 46 >= + col2
----
3

skipif mysql # not compatible
query I rowsort label-2819
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 46 >= + col2
----
3

query I rowsort
SELECT ALL - 19 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1216
-1425
-874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL CAST( NULL AS SIGNED ) * 46 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL CAST ( NULL AS INTEGER ) * 46 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 43 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT 22 * COUNT( DISTINCT + 47 ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT 22 * COUNT ( DISTINCT + 47 ) AS col0 FROM tab2 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( col1 ) * col0 ) IN ( + col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + - COUNT( * ) + 48 * 39 AS col1 FROM tab0 AS cor0
----
1869

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + - COUNT ( * ) + 48 * 39 AS col1 FROM tab0 AS cor0
----
1869

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT - 96 * - col0 + + 13 DIV + col1 AS col0 FROM tab1 AS cor0
----
4896
8162
8736

skipif mysql # not compatible
query I rowsort label-2826
SELECT - 96 * - col0 + + 13 / + col1 AS col0 FROM tab1 AS cor0
----
4896
8162
8736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 55 <= NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - ( + col0 ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT 58 + - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2829
SELECT 58 + - COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( + 64 )
----
0

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( - 98 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - 20 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL col1 * - 26 AS col1 FROM tab0
----
-2106
-26
-546

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT + col2 + + col2 FROM tab1 WHERE NULL IS NULL
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT - col2 DIV + col0 * 12 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT - col2 / + col0 * 12 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 75 * + + MAX( - col2 ) AS col2 FROM tab0
----
-750

skipif mysql # not compatible
query I rowsort label-2840
SELECT 75 * + + MAX ( - col2 ) AS col2 FROM tab0
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT DISTINCT 32 + + col1 * - CAST( - 36 * + col2 AS SIGNED ) FROM tab1 WHERE NOT - ( col2 ) + + 2 < col0 - col0
----

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT 32 + + col1 * - CAST ( - 36 * + col2 AS INTEGER ) FROM tab1 WHERE NOT - ( col2 ) + + 2 < col0 - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2842
SELECT DISTINCT col0 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) = + 56 / - col0
----

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT col0 FROM tab0 WHERE - CAST ( NULL AS REAL ) = + 56 / - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2843
SELECT ALL + 13 + - CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + 13 + - CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 - + 42 FROM tab0
----
-21
-41
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT 82 - - 95 + + CAST( col0 + col2 AS SIGNED ) FROM tab1
----
321
324
336

skipif mysql # not compatible
query I rowsort label-2845
SELECT 82 - - 95 + + CAST ( col0 + col2 AS INTEGER ) FROM tab1
----
321
324
336

query I rowsort
SELECT ALL + 69 + - - col1 AS col0 FROM tab0
----
150
70
90

query I rowsort
SELECT AVG ( col0 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * col2 + + 4 * 83 AS col2 FROM tab2
----
1505
3412
4218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT + col0 * - col0 * - ( + col0 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT + col0 * - col0 * - ( + col0 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 > col0 - col0 OR NOT - col0 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - 60 BETWEEN ( 3 ) AND + 22 + + 68
----

query I rowsort
SELECT ALL ( + 6 ) AS col0 FROM tab1 cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2853
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 AND ( col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2853
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 AND ( col2 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 * ( + 42 ) FROM tab0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - MAX( DISTINCT ( + 76 ) ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - MAX ( DISTINCT ( + 76 ) ) FROM tab0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 75
----

query I rowsort
SELECT DISTINCT + 38 + col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( - ( + - col1 ) ) BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 40 - - 25 * - 75 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 15 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL - + CAST( NULL AS SIGNED ) * 71 * + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - + CAST ( NULL AS INTEGER ) * 71 * + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2862
SELECT + COUNT( * ) AS col2, 98 + + 15 FROM tab2 AS cor0
----
3
113

skipif mysql # not compatible
query II rowsort label-2862
SELECT + COUNT ( * ) AS col2, 98 + + 15 FROM tab2 AS cor0
----
3
113

query II rowsort
SELECT col1 AS col2, + col0 - + col0 + 83 FROM tab2 AS cor0
----
51
83
67
83
77
83

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT 77 + col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + + SUM( + 24 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2866
SELECT + + SUM ( + 24 ) AS col2 FROM tab2 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL + 63 + - ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
110
162
73

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + 63 + - ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
110
162
73

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 54 col2 FROM tab0 WHERE ( + col2 ) <= + 78 + col1
----
2538
540

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 95 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col0 = + col1 / + 86
----

query I rowsort
SELECT DISTINCT + 86 FROM tab1 WHERE NOT 75 <> + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 <= - - col2 - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 54 * + - col1 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN - col0 AND 74
----
15
81
47

query I rowsort
SELECT + 85 + - col2 + + col2 + col2 FROM tab2 cor0
----
108
125
143

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 * + + 69 + - col1 AS col0 FROM tab1
----
-3533
-5870
-6326

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE - 11 >= NULL
----

query I rowsort
SELECT ALL col2 * + + col2 * col2 * - ( + + col0 ) + - col1 * - col2 FROM tab0
----
-1553538
-86790
-94118904

query I rowsort
SELECT ALL + 88 + ( 86 ) AS col1 FROM tab1 AS cor0
----
174
174
174

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) <> NULL
----

query I rowsort
SELECT + + ( 73 ) * 76 FROM tab0 AS cor0
----
5548
5548
5548

query I rowsort
SELECT + 53 - - col0 FROM tab2 AS cor0
----
117
128
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE ( col2 IN ( + ( + 45 ) ) )
----

query I rowsort
SELECT ALL - col1 * 82 FROM tab2 cor0
----
-4182
-5494
-6314

query I rowsort
SELECT DISTINCT - - col0 * + 68 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT + COUNT( * ) DIV 39 * 37 * - 19 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + COUNT ( * ) / 39 * 37 * - 19 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 91 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT + + COUNT( * ), - COUNT( * ) col1 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2893
SELECT + + COUNT ( * ), - COUNT ( * ) col1 FROM tab2 cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - - SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2895
SELECT - - SUM ( - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col2 / col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + 18 <= + col2 + - 73 + - 50 + col0 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT + 19 DIV + + 56 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2897
SELECT + 19 / + + 56 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( - - col0, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col0 FROM tab2
----
-94

query I rowsort
SELECT ( + 6 ) AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT ( - 80 ) AS col1 FROM tab1
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2903
SELECT * FROM tab0 AS cor0 WHERE 88 NOT IN ( 28, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2903
SELECT * FROM tab0 AS cor0 WHERE 88 NOT IN ( 28, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2904
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( - + ( + col2 ) AS SIGNED ) ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2904
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( - + ( + col2 ) AS INTEGER ) ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - + col2 * col0 * + col1 + - col2 <= + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - + col2 * col0 * + col1 + - col2 <= + col0
----
NULL
NULL
NULL

query I rowsort
SELECT 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - 4 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query II rowsort
SELECT 60 + + col0, col1 FROM tab2
----
106
51
124
77
135
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT SUM( DISTINCT - col0 ) + + ( + MIN( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2909
SELECT SUM ( DISTINCT - col0 ) + + ( + MIN ( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col0 < + + col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT + 47 + 11 * MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-514

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + 47 + 11 * MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-514

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + col1 + col1 NOT IN ( + - col0, col1 * - 91 * + 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 25 - - + 67 FROM tab2
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 * - 79 col0 FROM tab1
----
-1501

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT - col1 * col0 DIV - - col0 col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2915
SELECT - col1 * col0 / - - col0 col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + 81 * 68 FROM tab0
----
5508
5508
5508

query II rowsort
SELECT col2, - 37 AS col1 FROM tab2
----
23
-37
40
-37
58
-37

query I rowsort
SELECT ALL + 24 * col0 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT - 87 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 38 col2 FROM tab2 cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + + 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT DISTINCT + col1 DIV - - 87 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + col1 / - - 87 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL 18 / - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab0 WHERE NOT - 15 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL 18 / - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab0 WHERE NOT - 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2924
SELECT DISTINCT + col2 AS col0, ( - CAST( NULL AS SIGNED ) ) * + + 93 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2924
SELECT DISTINCT + col2 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + + 93 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL ( + 32 ) FROM tab0
----
32
32
32

query II rowsort
SELECT - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2927
SELECT ALL 88 AS col0, 11 DIV + + 61 AS col0 FROM tab2 AS cor0
----
88
0
88
0
88
0

skipif mysql # not compatible
query II rowsort label-2927
SELECT ALL 88 AS col0, 11 / + + 61 AS col0 FROM tab2 AS cor0
----
88
0
88
0
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - ( + SUM( DISTINCT + - 73 ) ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2928
SELECT - ( + SUM ( DISTINCT + - 73 ) ) FROM tab1 AS cor0
----
73

query I rowsort
SELECT - ( + + 27 ) FROM tab2
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT + ( 79 ) + COUNT( + col1 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + ( 79 ) + COUNT ( + col1 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

query I rowsort
SELECT DISTINCT + 90 + + 87 FROM tab2
----
177

query I rowsort
SELECT ALL + 50 / - - col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT ALL - 63 + + - CAST( ( - 17 ) AS SIGNED ) FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - 63 + + - CAST ( ( - 17 ) AS INTEGER ) FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2935
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( + col0 ) / - col0 - - - CAST( + 85 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2935
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( + col0 ) / - col0 - - - CAST ( + 85 AS INTEGER ) )
----

query I rowsort
SELECT col2 * - + 64 FROM tab0 AS cor0
----
-3008
-6336
-640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL 26 + - + col2 AS col2 FROM tab0
----
-21
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT COUNT( * ) + + 66 col2 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2939
SELECT DISTINCT COUNT ( * ) + + 66 col2 FROM tab2
----
69

query I rowsort
SELECT - col1 - + + 56 * + col1 AS col1 FROM tab1
----
-2679
-285
-798

query I rowsort
SELECT + col0 * + - col2 - + 87 AS col2 FROM tab0 cor0
----
-792
-957
-9690

query I rowsort
SELECT ALL - 15 AS col1 FROM tab0 AS cor0 WHERE NULL <> ( - 60 )
----

query I rowsort
SELECT DISTINCT + + ( + - col1 ) * - col1 + - 89 AS col1 FROM tab0 AS cor0
----
-88
352
6472

query II rowsort
SELECT - - col1 * - col1 - - - 90 AS col2, col1 * + col1 FROM tab0 AS cor0
----
-531
441
-6651
6561
-91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT + - col0 - + + col1 DIV + col0 * - 84 * col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2945
SELECT + - col0 - + + col1 / + col0 * - 84 * col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - + 44 * 63 + - col0 * + - col0 + - - col2 FROM tab1 AS cor0
----
-75
4512
5577

query I rowsort
SELECT ALL - col0 * - + col0 - - col2 * col2 FROM tab0 AS cor0
----
19210
2434
7669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + col2 col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT COUNT( * ) * 21 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2949
SELECT COUNT ( * ) * 21 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT - ( - 10 ) DIV + ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - ( - 10 ) / + ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 * - 92 AS col2 FROM tab0
----
1932
7452
92

query I rowsort
SELECT ALL - 30 * + ( col2 ) * + col2 * col1 FROM tab0
----
-294030
-5367870
-63000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT ALL CAST( + col0 AS SIGNED ) * 57 FROM tab0 AS cor0
----
4959
5529
855

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL CAST ( + col0 AS INTEGER ) * 57 FROM tab0 AS cor0
----
4959
5529
855

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT + 0 * - 21 + + - 92 * + 29 * CAST( NULL AS SIGNED ) / + col1 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 0 * - 21 + + - 92 * + 29 * CAST ( NULL AS INTEGER ) / + col1 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 col2 FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL + + COUNT( * ) * + + 59 AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + + COUNT ( * ) * + + 59 AS col2 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - + 56 + + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> + 51
----
-56

skipif mysql # not compatible
query I rowsort label-2959
SELECT - + 56 + + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> + 51
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - COUNT( * ) + + COUNT( * ) * + 54 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2960
SELECT - COUNT ( * ) + + COUNT ( * ) * + 54 FROM tab1 AS cor0
----
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 NOT BETWEEN 44 + col2 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - - 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT DISTINCT CAST( + 48 AS SIGNED ) + + 87 col0 FROM tab2
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT DISTINCT CAST ( + 48 AS INTEGER ) + + 87 col0 FROM tab2
----
135

query I rowsort
SELECT ALL - col0 + - - col2 * - col0 * - 84 FROM tab2
----
214976
365325
88826

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 2 AS col2 FROM tab2
----
44
62
73

query I rowsort
SELECT ALL 76 * + - col0 + col0 + + 94 * + + col0 AS col1 FROM tab1
----
1615
1729
969

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT MAX( ALL + col1 ) AS col2 FROM tab0 WHERE ( - 88 ) IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-2969
SELECT MAX ( ALL + col1 ) AS col2 FROM tab0 WHERE ( - 88 ) IS NOT NULL
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT + - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL >= - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL >= - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL - col2 * - + CAST( NULL AS SIGNED ) + - - ( + col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - col2 * - + CAST ( NULL AS INTEGER ) + - - ( + col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT - CAST( NULL AS SIGNED ) + - 44 + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT - CAST ( NULL AS INTEGER ) + - 44 + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL col1 + 62 FROM tab0
----
143
63
83

query I rowsort
SELECT DISTINCT - 51 + - col1 * - col0 + - col2 FROM tab0
----
-53
1117
1766

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 60 NOT IN ( 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 + + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 20 + col2 AND + + 13 * - 90 * - + col1
----

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT - - 11 * + + CAST( col2 AS SIGNED ) + col0 * + - ( col2 ) FROM tab1 AS cor0
----
-3840
-4366
-5440

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - - 11 * + + CAST ( col2 AS INTEGER ) + col0 * + - ( col2 ) FROM tab1 AS cor0
----
-3840
-4366
-5440

query I rowsort
SELECT 30 * + col0 * col2 AS col2 FROM tab2 cor0
----
130500
31740
76800

query I rowsort
SELECT DISTINCT + - col2 + + col2 FROM tab0 WHERE NULL < col0 + - + col1 * 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col1 * 29 col1 FROM tab0
----
15
-2349
87
-609
97
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT + MAX( - CAST( - 26 AS SIGNED ) ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2984
SELECT + MAX ( - CAST ( - 26 AS INTEGER ) ) AS col1 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT 87 * + COUNT( * ) AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-2985
SELECT 87 * + COUNT ( * ) AS col1 FROM tab0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT + 35 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 35 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) + col0 * + 22 * + 65 FROM tab0 AS cor0 WHERE + 62 + + 97 > + col2
----
124431
138711
21531

query I rowsort
SELECT + col2 * 28 + col1 AS col1 FROM tab2 AS cor0
----
1197
1691
695

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + COUNT( * ) * + ( - - COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2991
SELECT + COUNT ( * ) * + ( - - COUNT ( * ) ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT DISTINCT - COUNT( DISTINCT + - 54 ) AS col0, 91 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-1
91

skipif mysql # not compatible
query II rowsort label-2992
SELECT DISTINCT - COUNT ( DISTINCT + - 54 ) AS col0, 91 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-1
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT ALL 55 + - + 30 * + 38 DIV + + ( - 19 ) AS col1 FROM tab2
----
115
115
115

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL 55 + - + 30 * + 38 / + + ( - 19 ) AS col1 FROM tab2
----
115
115
115

query I rowsort
SELECT - 3 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL >= 86
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 * col1, + 36, col2, col2, - - ( col1 ), col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT - ( col0 ) DIV + 45 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2996
SELECT - ( col0 ) / + 45 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT 28 DIV - MAX( ALL - + 34 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT 28 / - MAX ( ALL - + 34 ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2999
SELECT + 7 + + col2 + ( - + col1 ) + + + CAST( NULL AS DECIMAL ) AS col0, - 3 FROM tab2
----
NULL
-3
NULL
-3
NULL
-3

skipif mysql # not compatible
query II rowsort label-2999
SELECT + 7 + + col2 + ( - + col1 ) + + + CAST ( NULL AS REAL ) AS col0, - 3 FROM tab2
----
NULL
-3
NULL
-3
NULL
-3

query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT MIN( DISTINCT - + 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT MIN ( DISTINCT - + 23 ) FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT COUNT( * ) col0 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3002
SELECT DISTINCT COUNT ( * ) col0 FROM tab2, tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT - CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3003
SELECT - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + 53 * + COUNT( * ) col1 FROM tab1 cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3004
SELECT + 53 * + COUNT ( * ) col1 FROM tab1 cor0
----
159

query II rowsort
SELECT ALL + col1 AS col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - 20 * + col1 AS col1 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT col1 * - col1 * + + col2 * - 44 AS col0 FROM tab1
----
64900
6609328
827904

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT - COUNT( * ) * - 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3008
SELECT - COUNT ( * ) * - 66 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ( - COUNT( ALL + 96 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3009
SELECT ( - COUNT ( ALL + 96 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT col1 * 37 AS col0 FROM tab2 cor0
----
1887
2479
2849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - 88 * col2 FROM tab1
----
-59
-5192
-68
-5984
-96
-8448

query I rowsort
SELECT + col1 * + + col2 + - - 92 AS col1 FROM tab2
----
1265
3172
3978

query I rowsort
SELECT DISTINCT - - ( + + col0 ) * ( + ( + - ( - col2 ) ) ) + - + 77 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-120640
-254678
-39675

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 18 * + 26 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT ALL - 82 DIV + 57 + + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - 82 / + 57 + + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 84 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT 26 * + COUNT( * ) FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT 26 * + COUNT ( * ) FROM tab0 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT DISTINCT + col1 - + col0 + + CAST( NULL AS SIGNED ) * + 70 * col2 * + col0 + - - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + col1 - + col0 + + CAST ( NULL AS INTEGER ) * + 70 * col2 * + col0 + - - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
NULL

query I rowsort
SELECT 15 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT - CAST( + ( + - 7 ) AS SIGNED ) FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3021
SELECT - CAST ( + ( + - 7 ) AS INTEGER ) FROM tab0
----
7
7
7

query I rowsort
SELECT ( + 99 ) - - - col2 FROM tab2
----
41
59
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT - MAX( DISTINCT - col1 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT - MAX ( DISTINCT - col1 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 94 AS col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - + 89 + + + col1 FROM tab1 AS cor0
----
-42
-75
-84

query I rowsort
SELECT DISTINCT + col2 - - col1 + + col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT ALL ( - 16 ) FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + 20 + col1 BETWEEN ( col2 ) + 72 AND 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3030
SELECT - - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + 15 * - col0 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + + SUM( 71 ) AS col1 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-3032
SELECT + + SUM ( 71 ) AS col1 FROM tab2 cor0
----
213

query I rowsort
SELECT DISTINCT - + ( 74 ) AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + SUM( ALL ( col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3034
SELECT + SUM ( ALL ( col0 ) ) AS col2 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3035
SELECT DISTINCT col2, - col2 col2, + - 8 * - CAST( - - col2 AS SIGNED ) FROM tab2
----
9 values hashing to 99d4b87c68342cdf8063266e1f191997

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3035
SELECT DISTINCT col2, - col2 col2, + - 8 * - CAST ( - - col2 AS INTEGER ) FROM tab2
----
9 values hashing to 99d4b87c68342cdf8063266e1f191997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col2 col0 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col2 - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL + COUNT( ALL + 86 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + COUNT ( ALL + 86 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col0 FROM tab2
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL col1 DIV + 18 AS col0 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL col1 / + 18 AS col0 FROM tab0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT COUNT( ALL col2 ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT COUNT ( ALL col2 ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT - + CAST( + - col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT - + CAST ( + - col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col1, col2 * - col0 AS col2 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

query I rowsort
SELECT + + 85 + + col2 + - col1 * + col1 * - col2 AS col1 FROM tab1 cor0
----
150365
1619
18997

query I rowsort
SELECT 25 * - col0 AS col1 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT - + MIN( + 30 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - + MIN ( + 30 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-30

query I rowsort
SELECT DISTINCT + 94 + - 71 + col1 * + + col2 AS col1 FROM tab1 AS cor0
----
1367
318
3219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL + SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 98 * + + col2 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 98 * + + col2 IS NULL
----
66

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT COUNT( DISTINCT 51 ) FROM tab2 AS cor0 WHERE NOT - 20 * ( + - 78 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT COUNT ( DISTINCT 51 ) FROM tab2 AS cor0 WHERE NOT - 20 * ( + - 78 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 + - 56 + + 88 FROM tab0
----
113
33
53

query III rowsort
SELECT * FROM tab2 WHERE - col0 > col2 * + col2 / - - 30 + + col0
----

query I rowsort
SELECT - ( col0 ) + - col2 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE 51 - - - 28 BETWEEN 19 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - 86 - - 92 + - MAX( ALL - 54 ) * - + ( + - 51 ) FROM tab1
----
2760

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - 86 - - 92 + - MAX ( ALL - 54 ) * - + ( + - 51 ) FROM tab1
----
2760

query II rowsort
SELECT + - col1, + col2 + 18 AS col2 FROM tab1 AS cor0
----
-14
114
-47
86
-5
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT - COUNT( * ) * - + MAX( ALL + + col1 ), 51 + + COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
141
54

skipif mysql # not compatible
query II rowsort label-3059
SELECT - COUNT ( * ) * - + MAX ( ALL + + col1 ), 51 + + COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
141
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL ( - MIN( DISTINCT + - 30 ) ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL ( - MIN ( DISTINCT + - 30 ) ) AS col0 FROM tab0
----
30

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 * + 72 FROM tab2 AS cor0
----
-3672
-4824
-5544

query I rowsort
SELECT - + 56 * - 22 AS col1 FROM tab2 AS cor0
----
1232
1232
1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3064
SELECT ALL + + 25 / - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL + + 25 / - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL
9

query I rowsort
SELECT ALL + 47 * col2 + - 40 AS col1 FROM tab2 AS cor0
----
1041
1840
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( - ( 57 ) ) IS NULL )
----

query I rowsort
SELECT - 44 * col2 FROM tab0
----
-2068
-4356
-440

query I rowsort
SELECT ALL ( - ( - col1 ) ) + - ( - 6 ) + - col0 AS col0 FROM tab1
----
-31
-38
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 1
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL + COUNT( * ) + + COUNT( * ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT 15 + - + COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3072
SELECT 15 + - + COUNT ( * ) AS col2 FROM tab1
----
12

query I rowsort
SELECT - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 43 + + COUNT( * ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3074
SELECT 43 + + COUNT ( * ) FROM tab2
----
46

query I rowsort
SELECT col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - - 97 + + 8 FROM tab0 cor0
----
105
105
105

query I rowsort
SELECT ALL + col0 + + col2 * col2 + + col0 FROM tab1 AS cor0
----
3651
4806
9318

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT MAX( ALL + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT MAX ( ALL + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 <> NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT col1 < NULL )
----

query I rowsort
SELECT ALL 67 - - ( - - col0 ) FROM tab2 AS cor0
----
113
131
142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / + col2 = NULL
----

query I rowsort
SELECT DISTINCT + 95 + - col2 AS col0 FROM tab0 AS cor0
----
-4
48
85

query III rowsort
SELECT * FROM tab2 WHERE + 16 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL - CAST( CAST( - - 39 AS SIGNED ) AS SIGNED ) * col2 FROM tab0
----
-1833
-3861
-390

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - CAST ( CAST ( - - 39 AS INTEGER ) AS INTEGER ) * col2 FROM tab0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT - + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT - + col2 < NULL
----
0

query I rowsort
SELECT 91 * col1 FROM tab1
----
1274
4277
455

query I rowsort
SELECT - col1 * - col0 - - 84 FROM tab1
----
4361
509
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL col1 * - 79 + col0 - 90 * - + 22 / - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL col1 * - 79 + col0 - 90 * - + 22 / - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT - 10 * + ( CAST( NULL AS SIGNED ) ) - + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 10 * + ( CAST ( NULL AS INTEGER ) ) - + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT - col0 * - + col0 * col0 AS col2 FROM tab1 cor0
----
132651
614125
753571

query II rowsort
SELECT - col2, - col2 * - 88 + - ( + + 89 ) * - - col0 * + + col0 * col1 AS col2 FROM tab2 AS cor0
----
-23
-9602500
-40
-28066368
-58
-33536771

query I rowsort
SELECT ALL + col1 + - col2 * - ( ( + col2 ) ) AS col1 FROM tab2
----
1677
3431
580

query I rowsort
SELECT DISTINCT col1 * 48 * - - 7 AS col0 FROM tab2
----
17136
22512
25872

query I rowsort
SELECT ALL col2 * + ( + - col1 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + ( - + 63 ) + + - col2 AS col1 FROM tab1
----
-122
-131
-159

query I rowsort
SELECT - col1 * 40 AS col2 FROM tab2
----
-2040
-2680
-3080

query II rowsort
SELECT ALL - col1 + - 92 * + - 66 * 97, col2 FROM tab0
----
588903
47
588963
10
588983
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT ALL COUNT( * ) + 46 DIV - ( + - ( COUNT( * ) ) ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL COUNT ( * ) + 46 / - ( + - ( COUNT ( * ) ) ) FROM tab2
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3102
SELECT - COUNT( * ) * CAST( - 83 AS DECIMAL ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT - COUNT ( * ) * CAST ( - 83 AS REAL ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 38 + + col2 * - 38 AS col0 FROM tab1 AS cor0
----
-2204
-2546
-3610

query II rowsort
SELECT + col1 * ( + col0 ), + col0 AS col2 FROM tab1
----
425
85
4277
91
714
51

query III rowsort
SELECT * FROM tab0 WHERE 82 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT DISTINCT - 45 DIV - + 59 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT - 45 / - + 59 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

query I rowsort
SELECT ALL + + 46 AS col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - col0 + - + col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + 31 + - + COUNT( * ) + 93 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3109
SELECT + 31 + - + COUNT ( * ) + 93 FROM tab0 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL + + col2 DIV 40 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + col2 / 40 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT col0 + + + 66 + - + col2 DIV + col1 FROM tab0
----
153
64
81

skipif mysql # not compatible
query I rowsort label-3111
SELECT col0 + + + 66 + - + col2 / + col1 FROM tab0
----
153
64
81

query II rowsort
SELECT 19 * + col1 AS col2, - col1 FROM tab0
----
1539
-81
19
-1
399
-21

query I rowsort
SELECT 27 * - ( + col2 ) * col2 FROM tab1
----
-124848
-248832
-93987

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * - - 63 BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT 27 DIV COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3115
SELECT 27 / COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT + col0 * col1 DIV - 11 FROM tab0 AS cor0
----
-110
-166
-8

skipif mysql # not compatible
query I rowsort label-3116
SELECT + col0 * col1 / - 11 FROM tab0 AS cor0
----
-110
-166
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col2 * + col1 col0 FROM tab1
----
127680
28025
303620

query I rowsort
SELECT DISTINCT - col2 * + 31 * + + col0 * - + 23 AS col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
3490848
3575695
4412044

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT ALL - 43 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - 43 / + - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col1 = 20 + + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT MAX( + col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-3122
SELECT MAX ( + col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3123
SELECT ALL - 79 DIV + 52 + - + CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - 79 / + 52 + - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
-52
-86
-92

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> 2 + col1
----

query II rowsort
SELECT ALL - + 32 * - col0 * - 32 AS col0, 50 AS col2 FROM tab1 AS cor0
----
-52224
50
-87040
50
-93184
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT ALL + 79 * ( col1 ) DIV 56 AS col2 FROM tab0 AS cor0
----
1
114
29

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + 79 * ( col1 ) / 56 AS col2 FROM tab0 AS cor0
----
1
114
29

query I rowsort
SELECT DISTINCT 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL + AVG ( DISTINCT + 97 ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + AVG ( DISTINCT + 97 ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 86 + - col0 + col0 AS col2 FROM tab1
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL - col1 DIV - col1 + + - 23 col2 FROM tab1
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3130
SELECT ALL - col1 / - col1 + + - 23 col2 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL + + col0 - - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-690
-783
-9506

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT col0 DIV ( - 81 ) AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT col0 / ( - 81 ) AS col0 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT + col1 AS col1, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - 23 IS NULL
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - MAX( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-3135
SELECT - MAX ( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-91

query II rowsort
SELECT - col1 AS col1, col2 * + 42 AS col0 FROM tab2
----
-51
966
-67
2436
-77
1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col1 col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + ( + col0 ) * - 51 + - col1 AS col0 FROM tab2 WHERE NOT - col2 - - 10 IS NULL
----
-2397
-3341
-3892

query I rowsort
SELECT + col0 * ( - - 72 ) FROM tab2
----
3312
4608
5400

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT col2 DIV ( + 70 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT col2 / ( + 70 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( 37 ) AS col1 FROM tab0
----
-37
-37
-37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = ( col2 )
----

query I rowsort
SELECT - 77 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + 74 / - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 82 ) AS col0 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT col1 DIV + - 15 AS col1 FROM tab1 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT col1 / + - 15 AS col1 FROM tab1 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT + COUNT( * ), - COUNT( * ) * 99 * - ( - 30 ) col2 FROM tab0 AS cor0
----
3
-8910

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3147
SELECT + COUNT ( * ), - COUNT ( * ) * 99 * - ( - 30 ) col2 FROM tab0 AS cor0
----
3
-8910

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT - 95 DIV 46 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3148
SELECT - 95 / 46 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT COUNT( * ) * - - 89 col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3150
SELECT COUNT ( * ) * - - 89 col0 FROM tab1 AS cor0
----
267

query II rowsort
SELECT + + col1, - 44 FROM tab0 AS cor0
----
1
-44
21
-44
81
-44

query I rowsort
SELECT DISTINCT 75 + + - col1 FROM tab0
----
-6
54
74

query I rowsort
SELECT DISTINCT col1 + + col0 + - 29 FROM tab2
----
112
113
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + - COUNT( - col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + - COUNT ( - col0 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT - col0 + col2 - ( col0 ) AS col1 FROM tab2 AS cor0
----
-69
-88
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT 76 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - - ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT 76 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - - ( - col0 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT ALL 34 + - + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 34 + - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL + COUNT( * ) * 9 * COUNT( * ) - + - 5 - + COUNT( * ) - - + MAX( + ( + col2 ) ) * + 28 + + COUNT( * ) FROM tab1 AS cor0
----
2774

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + COUNT ( * ) * 9 * COUNT ( * ) - + - 5 - + COUNT ( * ) - - + MAX ( + ( + col2 ) ) * + 28 + + COUNT ( * ) FROM tab1 AS cor0
----
2774

query I rowsort
SELECT + col1 + + 25 AS col0 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3161
SELECT - 15 * MAX( ( + - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 15 * MAX ( ( + - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3162
SELECT ALL + 20 AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-3162
SELECT ALL + 20 AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20
3

query II rowsort
SELECT + col1, - 4 FROM tab0 AS cor0
----
1
-4
21
-4
81
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 55 BETWEEN - + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3166
SELECT - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3167
SELECT DISTINCT - col1 DIV - 26, + col1 FROM tab1
----
0
14
0
5
1
47

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT - col1 / - 26, + col1 FROM tab1
----
0
14
0
5
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + MIN( DISTINCT + col2 ) * 82 FROM tab0
----
820

skipif mysql # not compatible
query I rowsort label-3168
SELECT + MIN ( DISTINCT + col2 ) * 82 FROM tab0
----
820

onlyif mysql # DIV for integer division: 
query II rowsort label-3169
SELECT 9 DIV + col2 AS col1, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3169
SELECT 9 / + col2 AS col1, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT - SUM( - + col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3170
SELECT DISTINCT - SUM ( - + col0 ) col0 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3171
SELECT * FROM tab0 WHERE NOT col0 + - - CAST( 8 AS SIGNED ) NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3171
SELECT * FROM tab0 WHERE NOT col0 + - - CAST ( 8 AS INTEGER ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - 57 FROM tab0 WHERE 91 * + + 88 NOT BETWEEN + ( col1 ) AND NULL
----

query I rowsort
SELECT - 1 + - col0 FROM tab1 AS cor0
----
-52
-86
-92

query II rowsort
SELECT DISTINCT col0 AS col1, - 46 + ( + col1 ) FROM tab0 AS cor0
----
15
35
87
-25
97
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL + + ( - COUNT( + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + + ( - COUNT ( + col1 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 60 AND NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE + col1 * + - 32 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab0 cor0
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3179
SELECT CAST( - + COUNT( * ) AS SIGNED ) + + 23 AS col1, - MAX( DISTINCT - 45 ) AS col2 FROM tab1 AS cor0
----
20
45

skipif mysql # not compatible
query II rowsort label-3179
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + + 23 AS col1, - MAX ( DISTINCT - 45 ) AS col2 FROM tab1 AS cor0
----
20
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 85 FROM tab1
----
-6
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 * + + col0
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 * + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT - 25 * + + MIN( DISTINCT - col0 ) col1 FROM tab0
----
2425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT - 25 * + + MIN ( DISTINCT - col0 ) col1 FROM tab0
----
2425

query I rowsort
SELECT + col0 * 60 * 71 AS col1 FROM tab0
----
370620
413220
63900

query II rowsort
SELECT - ( - col0 ) AS col0, 93 FROM tab2
----
46
93
64
93
75
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + ( + - col1 ) col0 FROM tab1 cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col2, col2, + 9 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3189
SELECT - + ( - CAST( + 0 AS DECIMAL ) ) - - CAST( NULL AS SIGNED ) - - 35 - 27 + - col0 / 86 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT - + ( - CAST ( + 0 AS REAL ) ) - - CAST ( NULL AS INTEGER ) - - 35 - 27 + - col0 / 86 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - col1 * 47 FROM tab2 AS cor0
----
-2374
-3091
-3579

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - - col1 + - col0 * - col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 30 + + + col1 * - 70 FROM tab0 cor0
----
-1440
-40
-5640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL col1 DIV + + col0 * col1 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL col1 / + + col0 * col1 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + - col2 * col2 FROM tab2 AS cor0 WHERE NULL = 58
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col0 + 21 AS col1 FROM tab0 AS cor0
----
-684
-849
-9582

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - MIN( DISTINCT 67 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - MIN ( DISTINCT 67 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
201

query II rowsort
SELECT DISTINCT - - col1 * - col2 AS col1, col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( - col2 ), ( + 69 ) col0 FROM tab1 AS cor0
----
59
69
68
69
96
69

query I rowsort
SELECT DISTINCT 44 * + col0 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - 77 * + COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 77 * + COUNT ( * ) FROM tab2
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3205
SELECT DISTINCT ( + + 84 ) / CAST( NULL AS SIGNED ) + + col0, + col1 col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3205
SELECT DISTINCT ( + + 84 ) / CAST ( NULL AS INTEGER ) + + col0, + col1 col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 43 * + col0 AS col0 FROM tab2
----
1978
2752
3225

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT + col2 DIV - + 12 FROM tab2
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + col2 / - + 12 FROM tab2
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col1 FROM tab0, tab0 AS cor0 WHERE - + 83 IS NOT NULL
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + 14 + - col0 FROM tab2 cor0
----
-32
-50
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3210
SELECT + MAX( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST( NULL AS DECIMAL ) * + ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MAX ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST ( NULL AS REAL ) * + ( 14 )
----
NULL

query I rowsort
SELECT col1 + + 8 AS col2 FROM tab0 cor0
----
29
89
9

query I rowsort
SELECT 45 + 38 AS col0 FROM tab0 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab0 WHERE NOT ( + col0 ) + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + COUNT( * ) FROM tab2 WHERE - 83 > - 69 * col0
----
3

skipif mysql # not compatible
query I rowsort label-3214
SELECT + COUNT ( * ) FROM tab2 WHERE - 83 > - 69 * col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + col0 * - col2 AS col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT ALL - 16 * ( 70 ) AS col1 FROM tab2
----
-1120
-1120
-1120

query I rowsort
SELECT ALL ( + 75 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND + 41 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT MAX( col1 ) AS col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT MAX ( col1 ) AS col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT - 57 + COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT - 57 + COUNT ( * ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL - ( 26 ) + SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - ( 26 ) + SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
130

query III rowsort
SELECT * FROM tab0 WHERE NOT + 59 BETWEEN NULL AND + 85 / 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + 96 * 13 - COUNT( * ) * 47 AS col0 FROM tab1 WHERE NOT + 24 + 82 * col0 IN ( + col0 )
----
1107

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + 96 * 13 - COUNT ( * ) * 47 AS col0 FROM tab1 WHERE NOT + 24 + 82 * col0 IN ( + col0 )
----
1107

query III rowsort
SELECT * FROM tab0 WHERE 66 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + + col1 * col2 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab2 WHERE NOT 53 * + col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 46 + - 45 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 15 * col2 AS col2 FROM tab1
----
-1020
-1440
-885

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3230
SELECT ALL * FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) + - ( col0 ) < ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3230
SELECT ALL * FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) + - ( col0 ) < ( col0 )
----

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab0 WHERE NOT 61 * col0 - col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 44 * - 65 AS col1 FROM tab1
----
-2860

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT COUNT( * ) * MIN( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT COUNT ( * ) * MIN ( + col1 ) FROM tab0
----
3

query I rowsort
SELECT col2 * + ( + col0 ) FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * 77 col0 FROM tab0
----
1001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col0 FROM tab2 WHERE 4 <= + col2
----
1058
2560
4350

query I rowsort
SELECT 33 * 34 FROM tab2
----
1122
1122
1122

query I rowsort
SELECT + col0 + 53 AS col1 FROM tab2
----
117
128
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT COUNT( * ) * 32 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3240
SELECT COUNT ( * ) * 32 FROM tab2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ( - COUNT( * ) ) * + SUM( DISTINCT + col2 DIV - 66 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3241
SELECT ( - COUNT ( * ) ) * + SUM ( DISTINCT + col2 / - 66 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + 36 * - COUNT( * ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + 36 * - COUNT ( * ) AS col2 FROM tab2
----
-108

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 62 / col0 ) AND col2
----

query I rowsort
SELECT ( + 36 ) FROM tab2 WHERE NOT ( - col2 + 33 ) BETWEEN NULL AND + 24 + - col0 * col1
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col2 * - col0 + col2 = NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( + ( col1 ) + - col0 * ( col1 * col0 ) )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( + ( col1 ) + - col0 * ( col1 * col0 ) )
----
-51
-85
-91

query I rowsort
SELECT + 10 * + col2 FROM tab0 AS cor0 WHERE ( - col0 + + col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3250
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col1 ) IN ( + 15 )
----

query I rowsort
SELECT col2 - - 49 FROM tab0 AS cor0
----
148
59
96

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - 41 * COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 41 * COUNT ( * ) AS col0 FROM tab0
----
-123

query I rowsort
SELECT + 8 * 6 FROM tab1
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT DISTINCT CAST( NULL AS SIGNED ) - 58 AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 58 AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * + 20 - + col1 ) NOT BETWEEN 75 AND 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 59 * ( col0 * + col1 - + 74 ) FROM tab2 AS cor0
----
134048
286386
292109

query I rowsort
SELECT ALL 40 + col2 AS col1 FROM tab2 AS cor0 WHERE - 15 * + col1 BETWEEN + col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3260
SELECT - col2 DIV + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3260
SELECT - col2 / + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT DISTINCT + - CAST( 6 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT + - CAST ( 6 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 99 * col2 FROM tab0 cor0
----
-4653
-9801
-990

query I rowsort
SELECT DISTINCT col2 + - 72 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 * col1 + ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 57 * 79 <= - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 32 / - col2 FROM tab1 WHERE NOT 36 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( col1 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COUNT ( col1 ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( ( CAST( - col0 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3268
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( ( CAST ( - col0 AS INTEGER ) ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT DISTINCT - 60 DIV + - col0 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3269
SELECT DISTINCT - 60 / + - col0 col0 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT ALL + col0 DIV col1 + col2 AS col2 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + col0 / col1 + col2 AS col2 FROM tab0
----
14
196
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT 40 * - 4 * ( + 39 DIV + COUNT( * ) ) AS col1 FROM tab2
----
-2080

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT 40 * - 4 * ( + 39 / + COUNT ( * ) ) AS col1 FROM tab2
----
-2080

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE NOT NULL <= - 29
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - ( + 13 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) + 23 IN ( + col1 )
----

query I rowsort
SELECT + ( + ( - + col2 ) ) + - col0 * - col0 FROM tab0
----
178
7559
9310

query III rowsort
SELECT * FROM tab1 WHERE + 12 NOT IN ( + col2 * + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT + + 22 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
31

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + + 22 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
31

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT - COUNT( * ) DIV + 32 + + COUNT( * ) + 99 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3279
SELECT - COUNT ( * ) / + 32 + + COUNT ( * ) + 99 FROM tab1 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL CAST( 97 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL CAST ( 97 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - - 25 + - col0 AS col2 FROM tab2 cor0
----
-21
-39
-50

query I rowsort
SELECT ALL - + 28 - + col1 FROM tab1 AS cor0
----
-33
-42
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL 37 DIV col0 * + 48 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL 37 / col0 * + 48 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT ALL 1 DIV - + col0 * + - col1 + col0 - col2 * - col0 AS col2 FROM tab1
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL 1 / - + col0 * + - col1 + col0 - col2 * - col0 AS col2 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 15 * - COUNT( - col1 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3285
SELECT 15 * - COUNT ( - col1 ) FROM tab2
----
-45

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + - ( + col1 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 73 col1 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE 18 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * - 93 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3290
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + ( - col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + ( - col0 ) < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3292
SELECT + + ( col0 ) AS col1 FROM tab1 WHERE NOT + - 54 + CAST( + col2 AS DECIMAL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3292
SELECT + + ( col0 ) AS col1 FROM tab1 WHERE NOT + - 54 + CAST ( + col2 AS REAL ) IS NULL
----
51
85
91

query II rowsort
SELECT DISTINCT 50 + + 79 AS col0, col1 FROM tab0
----
129
1
129
21
129
81

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( + ( col1 ) * ( col2 ) + - col0 ) NOT IN ( col2 + col0 / - col0 )
----

query II rowsort
SELECT ALL - col2 AS col1, ( + 58 ) + + col1 AS col2 FROM tab2
----
-23
109
-40
135
-58
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col1 * - col2 col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL + 17 + - 76 + + + col2 AS col1 FROM tab2
----
-1
-19
-36

query II rowsort
SELECT - 30 AS col1, col1 FROM tab1
----
-30
14
-30
47
-30
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( - col1 * - col1 / + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( + + 11 ) NOT BETWEEN NULL AND + col2 * - 19 + 73 * - 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT - + 70 DIV - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3301
SELECT - + 70 / - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT + 45 + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + 45 + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND - 63 + + 5
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - col0 / + + 94 * + col1 )
----

query I rowsort
SELECT ALL - 70 AS col2 FROM tab1 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT DISTINCT + + CAST( 4 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
4

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + + CAST ( 4 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL - col2 - - ( - + CAST( + col0 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3308
SELECT ALL - col2 - - ( - + CAST ( + col0 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 / + col2 + - col0 BETWEEN + - 85 + + + 33 * + + 86 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3310
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( 92 - - + CAST( col0 AS SIGNED ) + - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3310
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( 92 - - + CAST ( col0 AS INTEGER ) + - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 - - 36 * + - col0 - 20 AS col1 FROM tab0 cor0
----
-3131
-3511
-479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + + - 40 col0 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + COUNT( * ) - + + 25 AS col0 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + COUNT ( * ) - + + 25 AS col0 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT - - col1 * 43 + + ( + col0 ) FROM tab0 AS cor0
----
140
3498
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL - col2 / + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - col2 / + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - COUNT( col0 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT - COUNT ( col0 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 95 + - col0 * ( col2 ) FROM tab0
----
-610
-775
-9508

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - - 72
----

query I rowsort
SELECT col1 * - 96 * + + col2 + - col1 FROM tab1
----
-129038
-28325
-306863

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 - - col1 AS col2 FROM tab0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT ALL + - 70 AS col1 FROM tab1 AS cor0
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 NOT BETWEEN - 7 AND + 97
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 ) AND ( NOT NULL > col0 / - 52 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT DISTINCT + + CAST( - MIN( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + + CAST ( - MIN ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT ALL - COUNT( DISTINCT + col1 ) col2, COUNT( - 95 ) * - - SUM( ALL + col1 ) + - - ( - + MAX( ALL - 66 ) ) FROM tab2
----
-3
651

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3326
SELECT ALL - COUNT ( DISTINCT + col1 ) col2, COUNT ( - 95 ) * - - SUM ( ALL + col1 ) + - - ( - + MAX ( ALL - 66 ) ) FROM tab2
----
-3
651

query I rowsort
SELECT + + ( + 10 ) * - + ( - 50 ) * + col2 FROM tab2 AS cor0
----
11500
20000
29000

query I rowsort
SELECT ALL - + ( 24 ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * + + col1 * - - 33 >= + + col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL MIN( - - col0 ) + - 12 + + 75 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL MIN ( - - col0 ) + - 12 + + 75 FROM tab0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + 60 col1 FROM tab1
----
51
60
85
60
91
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) * 54 FROM tab2 WHERE NULL = ( + col1 + 52 - col1 + - ( - 78 ) * - col0 * - + col0 * + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) ) * 54 FROM tab2 WHERE NULL = ( + col1 + 52 - col1 + - ( - 78 ) * - col0 * - + col0 * + 91 )
----
NULL

query I rowsort
SELECT ALL - col2 + + col0 + + + col2 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + col1 * - ( - 13 ) FROM tab1 AS cor0
----
182
611
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3335
SELECT - MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 63 + + col0 AS col2 FROM tab1 AS cor0
----
-12
22
28

query I rowsort
SELECT DISTINCT + 54 * + col0 - - 18 FROM tab0 AS cor0
----
4716
5256
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL - ( + COUNT( 19 ) ) + + 98 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < 30
----
98

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - ( + COUNT ( 19 ) ) + + 98 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < 30
----
98

query I rowsort
SELECT + 87 + + 99 FROM tab1
----
186
186
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL - SUM( ALL + 11 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - SUM ( ALL + 11 ) AS col1 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT + col0 * + col2 + - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
4800
4956
6120

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col1 FROM tab1 cor0
----
-138
-65
-90

query II rowsort
SELECT DISTINCT - 66, - col0 AS col0 FROM tab0 AS cor0
----
-66
-15
-66
-87
-66
-97

query I rowsort
SELECT + 20 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 + + - col1 ) IS NOT NULL
----

query I rowsort
SELECT 74 - 55 AS col2 FROM tab1
----
19
19
19

query I rowsort
SELECT 64 - + ( col1 ) + + col0 FROM tab1
----
101
108
144

query I rowsort
SELECT - 34 FROM tab0 WHERE NOT ( - ( - + col2 ) >= - ( + 80 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT + col1 DIV ( col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + col1 / ( col0 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT - 50 DIV 32 * - 74 AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - 50 / 32 * - 74 AS col1 FROM tab0 AS cor0
----
74

query II rowsort
SELECT + col1 AS col1, col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
714
47
4277
5
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col1 FROM tab0 AS cor0
----
37

query I rowsort
SELECT col0 * + 4 AS col2 FROM tab2
----
184
256
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - col2 col0 FROM tab2
----
-2277
-3960
-5742

onlyif mysql # DIV for integer division: 
query II rowsort label-3356
SELECT ALL ( - + 72 ) DIV 62, 41 * col0 AS col2 FROM tab2
----
-1
1886
-1
2624
-1
3075

skipif mysql # not compatible
query II rowsort label-3356
SELECT ALL ( - + 72 ) / 62, 41 * col0 AS col2 FROM tab2
----
-1
1886
-1
2624
-1
3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL + + ( + 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - + 58 IN ( col2, col1, - - CAST( NULL AS SIGNED ) / + + col1 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + + ( + 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - + 58 IN ( col2, col1, - - CAST ( NULL AS INTEGER ) / + + col1 * - col2 )
----

query I rowsort
SELECT + col0 * - + col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT + col0 DIV + + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + col0 / + + col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT + - ( 85 ) AS col2 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 90 FROM tab0 cor0
----
-90

query I rowsort
SELECT - col2 / + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT + col0 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3363
SELECT + col0 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT CAST( + - col1 AS SIGNED ) FROM tab1 cor0 WHERE NOT + 9 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3365
SELECT CAST ( + - col1 AS INTEGER ) FROM tab1 cor0 WHERE NOT + 9 = ( NULL )
----

query I rowsort
SELECT ( 76 ) AS col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL col1 + 39 * - col0 FROM tab0
----
-3372
-3782
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT ( COUNT( * ) ) col0, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3368
SELECT ( COUNT ( * ) ) col0, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3369
SELECT - col1 + ( - + 11 ) DIV - CAST( 11 AS SIGNED ) AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-3369
SELECT - col1 + ( - + 11 ) / - CAST ( 11 AS INTEGER ) AS col2 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT + col1 * - col0 + - + col0 FROM tab0
----
-1230
-1914
-194

query II rowsort
SELECT + col0 + - - 36 AS col2, + col1 - col0 AS col0 FROM tab0
----
123
-66
133
-96
51
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 32 col0 FROM tab1 WHERE NULL NOT IN ( + - col0 - - col0, 36 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT col1 * - 95 + - col2 DIV - col1 - - col2 AS col2 FROM tab0
----
-1985
-7648
103

skipif mysql # not compatible
query I rowsort label-3374
SELECT col1 * - 95 + - col2 / - col1 - - col2 AS col2 FROM tab0
----
-1985
-7648
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - COUNT( * ) + - 56 col0 FROM tab0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3375
SELECT ALL - COUNT ( * ) + - 56 col0 FROM tab0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( 7 ) ) col2 FROM tab0
----
7

query I rowsort
SELECT ALL 45 + - col1 + col0 AS col2 FROM tab0
----
-21
111
141

query I rowsort
SELECT + 40 * 52 + + col2 AS col1 FROM tab2 AS cor0
----
2103
2120
2138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - 75 FROM tab2 WHERE NOT + col2 * - 15 + - - col2 NOT IN ( + col1, - 4 + - col1 )
----

query I rowsort
SELECT DISTINCT 20 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 6 NOT BETWEEN ( - - 21 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT ALL + 76 AS col1, COUNT( * ) * 98 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
76
882

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL + 76 AS col1, COUNT ( * ) * 98 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
76
882

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col1 * - col0 * + 87 * + col0 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE col1 > NULL
----

query I rowsort
SELECT - - AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----
NULL

query I rowsort
SELECT - - col2 * - 45 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT DISTINCT + col0 * + 57 FROM tab0 AS cor0
----
4959
5529
855

query III rowsort
SELECT * FROM tab0 WHERE NOT 2 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 52 / + - ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 77 + + col2 + - 40 * + 13 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * + + col0 col0 FROM tab0
----
1320
7656
8536

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT 37 DIV - COUNT( - 1 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT 37 / - COUNT ( - 1 ) FROM tab2
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3395
SELECT ALL - col2 / + col1 * - - CAST( NULL AS DECIMAL ) * - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - col2 / + col1 * - - CAST ( NULL AS REAL ) * - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 * col1 AS col0 FROM tab0 AS cor0
----
1053
13
273

query II rowsort
SELECT DISTINCT - 60 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-60
-59
-60
-68
-60
-96

query II rowsort
SELECT + col2, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 21 FROM tab1 AS cor0 WHERE NOT col1 * col2 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + col2
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - - 75
----

query I rowsort
SELECT ALL col1 + - 81 FROM tab2
----
-14
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + MIN( 34 ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-3404
SELECT + MIN ( 34 ) AS col2 FROM tab2
----
34

query I rowsort
SELECT DISTINCT col0 + + 20 FROM tab2 WHERE + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 28 + 43 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL + COUNT( * ) + + 46 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL + COUNT ( * ) + + 46 FROM tab1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL + CAST( NULL AS SIGNED ) * + 74 * - COUNT( * ) + - SUM( DISTINCT col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + CAST ( NULL AS INTEGER ) * + 74 * - COUNT ( * ) + - SUM ( DISTINCT col2 ) FROM tab2
----
NULL

query I rowsort
SELECT + + 9 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - 41 + 22 AS col2 FROM tab1
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - + col1 + + + col1 + - 32 col1 FROM tab1
----
-17
10
109

query I rowsort
SELECT DISTINCT - col1 * + - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT MAX( + col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3414
SELECT DISTINCT MAX ( + col0 ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col0 * - 10 FROM tab1
----
-510
-850
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - COUNT( * ) * + 20 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3416
SELECT - COUNT ( * ) * + 20 AS col2 FROM tab1
----
-60

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 65 - col0 + + 8 + + col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL ( - - CAST( - 73 AS SIGNED ) ) FROM tab0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL ( - - CAST ( - 73 AS INTEGER ) ) FROM tab0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT 46 * + col0 AS col0 FROM tab0
----
4002
4462
690

query I rowsort
SELECT + - 76 AS col0 FROM tab0 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 + - 22 < - + col1 AND NULL NOT BETWEEN col0 + + 9 / 43 AND + col1 + + 53
----

query I rowsort
SELECT - + ( + 47 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 * + 4 < NULL
----

query I rowsort
SELECT ALL - - 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 52 * + 43 FROM tab2 AS cor0
----
2236
2236
2236

query I rowsort
SELECT ALL - 90 AS col0 FROM tab2 cor0 WHERE NOT + ( - + col1 ) IS NULL
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT - 5 + CAST( + col2 AS SIGNED ) - + - col2 FROM tab2 AS cor0
----
111
41
75

skipif mysql # not compatible
query I rowsort label-3427
SELECT - 5 + CAST ( + col2 AS INTEGER ) - + - col2 FROM tab2 AS cor0
----
111
41
75

query I rowsort
SELECT DISTINCT + ( + - ( + - col0 ) ) * - 37 * + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-3688
-45002
-67609

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT ALL 38 DIV - 8 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL 38 / - 8 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT + col0 + + + 27 AS col0 FROM tab2
----
102
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + col2 + CAST( - - ( col2 ) AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3431
SELECT + col2 + CAST ( - - ( col2 ) AS INTEGER ) FROM tab0
----
198
20
94

query II rowsort
SELECT ALL 65 + + col2, col0 FROM tab1
----
124
85
133
91
161
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - ( - COUNT( * ) ) + 7 AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3433
SELECT - ( - COUNT ( * ) ) + 7 AS col0 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT COUNT( - + col2 ) col2 FROM tab2 WHERE - 5 NOT IN ( + col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT COUNT ( - + col2 ) col2 FROM tab2 WHERE - 5 NOT IN ( + col0 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3435
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 72 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT DISTINCT 38 + CAST( - + ( + ( + col0 ) ) AS SIGNED ) + col2 FROM tab2
----
14
15
21

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT 38 + CAST ( - + ( + ( + col0 ) ) AS INTEGER ) + col2 FROM tab2
----
14
15
21

query II rowsort
SELECT ALL + col2 + - 89 AS col2, - 35 AS col0 FROM tab2 AS cor0
----
-31
-35
-49
-35
-66
-35

query I rowsort
SELECT ALL + + ( + + 17 ) * - col2 * - + col2 - - + col0 AS col0 FROM tab1 AS cor0
----
156723
59262
78699

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + MIN( + - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + MIN ( + - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3441
SELECT DISTINCT - col0 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3441
SELECT DISTINCT - col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT 16 FROM tab0 WHERE NOT NULL IS NOT NULL
----
16
16
16

query I rowsort
SELECT DISTINCT + + ( - + 1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT - - 83 DIV MIN( col1 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3444
SELECT - - 83 / MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 88 AS col2 FROM tab2 cor0
----
88
88
88

query II rowsort
SELECT - col1 AS col1, + 22 FROM tab1 cor0
----
-14
22
-47
22
-5
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( ALL - + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( ALL - + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 96 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3452
SELECT + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT MAX( - 63 ) AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3453
SELECT MAX ( - 63 ) AS col1 FROM tab1 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT + MAX( DISTINCT + col1 ) + - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-3456
SELECT + MAX ( DISTINCT + col1 ) + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
74

query I rowsort
SELECT ALL - 14 * col0 AS col0 FROM tab1 AS cor0
----
-1190
-1274
-714

query I rowsort
SELECT - col2 + - col0 * + + col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 70 * - col1 AS col0 FROM tab0 AS cor0
----
1470
5670
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + col2 + - 21 AS col2, - col1 col1 FROM tab0 AS cor0
----
-726
-81
-891
-21
-9624
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + MIN( + + col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3462
SELECT + MIN ( + + col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * - 83 AS col2 FROM tab0 cor0
----
1245
7221
8051

query I rowsort
SELECT DISTINCT - ( + 36 ) * col1 * col0 AS col2 FROM tab2 AS cor0
----
-177408
-180900
-84456

query II rowsort
SELECT ALL col0 * + col0 * + + col2, col1 FROM tab2 AS cor0
----
163840
77
326250
67
48668
51

query I rowsort
SELECT DISTINCT - 11 * 80 FROM tab2 AS cor0
----
-880

query I rowsort
SELECT col0 FROM tab2 WHERE + + col1 + - col2 + 87 * + ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - MIN( - 54 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3470
SELECT - MIN ( - 54 ) AS col1 FROM tab2
----
54

query I rowsort
SELECT 57 - + 85 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col1 * - col1 * - 48 + + - 71 AS col1 FROM tab1
----
105961
1129
9337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 34 * + col1 + - 51 + col1 + + col1 - + col1 + + + col0 * - col2 col1 FROM tab0
----
-196
-9718
2032

query I rowsort
SELECT ALL 47 - + ( ( + 34 ) ) * - col1 FROM tab0
----
2801
761
81

query I rowsort
SELECT DISTINCT 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 12 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - - COUNT( DISTINCT - 88 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3477
SELECT - - COUNT ( DISTINCT - 88 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - 16 * - - SUM( - + col1 ) * - 82 * - 31 - + 95 AS col0 FROM tab1 AS cor0
----
2684257

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - 16 * - - SUM ( - + col1 ) * - 82 * - 31 - + 95 AS col0 FROM tab1 AS cor0
----
2684257

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT ALL ( - col0 ) DIV 63 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL ( - col0 ) / 63 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT DISTINCT - col2 DIV - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - col2 / - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + + ( + col0 ) AS col1, ( - + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 47 * col2 - + + col2 + 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL - SUM( - 36 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - SUM ( - 36 ) FROM tab1 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 97 ) col1 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT - col1 * - col0 * + + 21 FROM tab0 AS cor0
----
2037
25515
38367

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT COUNT( * ) * + 75 col1 FROM tab0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3487
SELECT COUNT ( * ) * + 75 col1 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT ALL 66 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL - MAX( DISTINCT + 41 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - MAX ( DISTINCT + 41 ) FROM tab0
----
-41

query I rowsort
SELECT col0 * 74 * col2 AS col2 FROM tab1
----
362304
371110
457912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, + 60 - col2 col2 FROM tab0 cor0
----
-1
-39
-21
50
-81
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) + - + col0 col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ( - + 56 ) AS col0 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT 63 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
63
63
63

query I rowsort
SELECT + col1 - - + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - 81 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 81 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL + 77 AS col2 FROM tab1 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - 91 + + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 91 + + COUNT ( * ) FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT - + COUNT( * ) * - + MAX( - + col0 ) * CAST( NULL AS SIGNED ) + - 84 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT - + COUNT ( * ) * - + MAX ( - + col0 ) * CAST ( NULL AS INTEGER ) + - 84 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT - CAST( - col2 AS SIGNED ) + + - 85 FROM tab0 AS cor0
----
-38
-75
14

skipif mysql # not compatible
query I rowsort label-3501
SELECT - CAST ( - col2 AS INTEGER ) + + - 85 FROM tab0 AS cor0
----
-38
-75
14

query II rowsort
SELECT DISTINCT 7 AS col0, - 5 FROM tab1
----
7
-5

query I rowsort
SELECT ALL ( col0 ) * + col0 + - col2 FROM tab1
----
2505
7166
8213

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT col1 DIV 12 AS col2 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-3504
SELECT col1 / 12 AS col2 FROM tab2
----
4
5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT + MAX( DISTINCT ( - col0 ) ) FROM tab0 AS cor0 WHERE 80 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT + MAX ( DISTINCT ( - col0 ) ) FROM tab0 AS cor0 WHERE 80 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - + COUNT( + + 69 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - + COUNT ( + + 69 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3507
SELECT ALL + - 38 / + - 74 + + 30 * - 69 + - 7 * - + CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + - 38 / + - 74 + + 30 * - 69 + - 7 * - + CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - + MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - + MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * + 62 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * + 62 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + col2 * 39 FROM tab2 AS cor0
----
169650
41262
99840

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col2, - col0, + col2 + - 41, - col2 + + - 42 + - col1 + + - 39 + - - col1 - + col1 * - col2 * - ( + col1 ) )
----

query I rowsort
SELECT - - 0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT 69 AS col1, col2 FROM tab2 AS cor0
----
69
23
69
40
69
58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 95 * 27 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT - + col0 AS col1, 84 FROM tab0 AS cor0
----
-15
84
-87
84
-97
84

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( col1, 21 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( - 72 ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT col1 * + ( - col0 ) AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT + col1 / - col0 + + - ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + 67 * ( + col0 ) AND - ( 4 )
----

skipif mysql # not compatible
query I rowsort label-3520
SELECT + col1 / - col0 + + - ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + 67 * ( + col0 ) AND - ( 4 )
----

query I rowsort
SELECT DISTINCT ( 23 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT SUM( - ( + - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3522
SELECT SUM ( - ( + - col1 ) ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 51 + + col0 DIV + col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 51 + + col0 / + col0 FROM tab1
----
52

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT ( + MIN( + ( + CAST( 97 AS SIGNED ) ) ) ) AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-3525
SELECT ( + MIN ( + ( + CAST ( 97 AS INTEGER ) ) ) ) AS col2 FROM tab2
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT + - 65 DIV + col0 + - + col1 FROM tab2 AS cor0
----
-52
-67
-78

skipif mysql # not compatible
query I rowsort label-3527
SELECT + - 65 / + col0 + - + col1 FROM tab2 AS cor0
----
-52
-67
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + MIN( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE 4 = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT + MIN ( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE 4 = - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - MIN( DISTINCT - 95 ) FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - MIN ( DISTINCT - 95 ) FROM tab0 cor0
----
95

query I rowsort
SELECT ALL + + 18 * - 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1be65c23ace70a408acbcb79acd839ee

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + - - col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - 39 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-39
-51
-39
-85
-39
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + ( - ( ( - - 25 ) ) ) - + + col1 * - col1 col2 FROM tab0 AS cor0
----
125
476
6633

query I rowsort
SELECT ALL + + col1 - - col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3536
SELECT * FROM tab0 AS cor0 WHERE NULL > + col0 * CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3536
SELECT * FROM tab0 AS cor0 WHERE NULL > + col0 * CAST ( + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT - MAX( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT + COUNT( * ) - 90 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3538
SELECT + COUNT ( * ) - 90 FROM tab0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 23 - 70 DIV - col1 FROM tab2
----
-22
-22
-23

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 23 - 70 / - col1 FROM tab2
----
-22
-22
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - - col2 col0 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT col2 - + - CAST( NULL AS SIGNED ) + - ( - + col0 ) / - 56 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT col2 - + - CAST ( NULL AS INTEGER ) + - ( - + col0 ) / - 56 + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 - col0 * + col1 FROM tab1
----
-4331
-479
-768

query I rowsort
SELECT + col0 - + 44 FROM tab2
----
2
20
31

query I rowsort
SELECT + 21 - + 54 FROM tab1
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - COUNT( - 7 ) * - COUNT( * ) + + 42 AS col2 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3545
SELECT - COUNT ( - 7 ) * - COUNT ( * ) + + 42 AS col2 FROM tab0 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + SUM( 88 ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + SUM ( 88 ) FROM tab0 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL COUNT( DISTINCT 97 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL COUNT ( DISTINCT 97 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3548
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) * 37 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3548
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) * 37 IS NOT NULL
----

query I rowsort
SELECT 24 * - 27 FROM tab1 AS cor0
----
-648
-648
-648

query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - + col2 * + ( - col1 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col2 + ( - - col0 ) * - - col2 FROM tab2 AS cor0
----
1081
2600
4408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * - + col2 col2 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3554
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - col2 * 71 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - col2 * 71 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3555
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3555
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * - 17 * col2 FROM tab0
----
-11985
-14790
-163251

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT DISTINCT - col1 DIV - ( + col0 ) + - col1 * + 21 AS col1 FROM tab0
----
-1696
-21
-441

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - col1 / - ( + col0 ) + - col1 * + 21 AS col1 FROM tab0
----
-1696
-21
-441

query I rowsort
SELECT ALL - - 78 * col0 * + col1 FROM tab2 cor0
----
182988
384384
391950

query I rowsort
SELECT 12 + + - col1 FROM tab1 AS cor0
----
-2
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT ALL col1 + + 61 DIV col1 col2 FROM tab1
----
17
18
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3560
SELECT ALL col1 + + 61 / col1 col2 FROM tab1
----
17
18
48

query I rowsort
SELECT 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - col2 + col0 * - col2 * 29 AS col0 FROM tab2 AS cor0
----
-126208
-30705
-74280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT + - 28 * + + CAST( NULL AS SIGNED ) - - - ( col1 ) + + 53 + + 92 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT + - 28 * + + CAST ( NULL AS INTEGER ) - - - ( col1 ) + + 53 + + 92 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT ALL - - ( COUNT( * ) ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL - - ( COUNT ( * ) ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT - - 75 + + 13 AS col2, MAX( - - col2 ) AS col1 FROM tab1 AS cor0
----
88
96

skipif mysql # not compatible
query II rowsort label-3565
SELECT - - 75 + + 13 AS col2, MAX ( - - col2 ) AS col1 FROM tab1 AS cor0
----
88
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT MAX( + 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT MAX ( + 94 ) FROM tab2 AS cor0
----
94

query II rowsort
SELECT DISTINCT col0, + ( - col2 ) FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3568
SELECT DISTINCT - CAST( - - ( + 14 ) AS DECIMAL ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - CAST ( - - ( + 14 ) AS REAL ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT - ( + - 45 ) DIV - col2 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT - ( + - 45 ) / - col2 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT - COUNT( * ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3570
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + + ( + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT - MAX( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT - MAX ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL + CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + + 24 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + + 24 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT DISTINCT col2 DIV + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT col2 / + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT DISTINCT + + COUNT( * ) * - + 8, 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72
23

skipif mysql # not compatible
query II rowsort label-3575
SELECT DISTINCT + + COUNT ( * ) * - + 8, 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72
23

onlyif mysql # DIV for integer division: 
query II rowsort label-3576
SELECT + 37 DIV - col1 * + + col1 * - - col2 AS col0, 45 AS col2 FROM tab2 cor0
----
0
45
0
45
0
45

skipif mysql # not compatible
query II rowsort label-3576
SELECT + 37 / - col1 * + + col1 * - - col2 AS col0, 45 AS col2 FROM tab2 cor0
----
0
45
0
45
0
45

query I rowsort
SELECT DISTINCT - + col1 * - 26 AS col2 FROM tab1 AS cor0
----
1222
130
364

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 - + col1 - - col1 * 47
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 51 ) BETWEEN col2 AND + 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + 66 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + 66 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL + - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT DISTINCT 9 DIV - col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT 9 / - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col0 + - 79 col1 FROM tab1
----
4817
4936
6109

query I rowsort
SELECT DISTINCT + 80 + + 95 AS col0 FROM tab1
----
175

query I rowsort
SELECT DISTINCT ( - 54 ) + + 3 AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3589
SELECT - col0, CAST( NULL AS DECIMAL ) / + - 92 AS col1, - + CAST( + col0 AS SIGNED ) + + + 43 AS col0 FROM tab0
----
9 values hashing to c92a6b04d5373c82bd1ff348c3c557d0

skipif mysql # not compatible
query III rowsort label-3589
SELECT - col0, CAST ( NULL AS REAL ) / + - 92 AS col1, - + CAST ( + col0 AS INTEGER ) + + + 43 AS col0 FROM tab0
----
9 values hashing to c92a6b04d5373c82bd1ff348c3c557d0

query I rowsort
SELECT + 10 * + 38 FROM tab2
----
380
380
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT + - 15 * + col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 12 * + + col2 + CAST( - + col2 AS SIGNED ) * - col2 + 97 IS NULL
----
-1389
-800
-929

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + - 15 * + col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 12 * + + col2 + CAST ( - + col2 AS INTEGER ) * - col2 + 97 IS NULL
----
-1389
-800
-929

query I rowsort
SELECT DISTINCT 20 FROM tab1 AS cor0 WHERE NOT ( col1 * + + col1 * + + col0 * - col1 * + - 61 + + + ( - + 19 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NULL NOT BETWEEN 53 + + col2 * - col0 AND + + 65 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL SUM( ALL + - col1 ) + + - COUNT( * ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL SUM ( ALL + - col1 ) + + - COUNT ( * ) FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT COUNT( * ) + - + 49 AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT COUNT ( * ) + - + 49 AS col0 FROM tab1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3597
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT 9 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col1 + + col0 * 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL - + COUNT( * ) * + - 18 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - + COUNT ( * ) * + - 18 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 57 - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT DISTINCT - - col1 DIV + 77 * col2 * 27 * + + col1 * col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - - col1 / + 77 * col2 * 27 * + + col1 * col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3603
SELECT COUNT( * ) DIV + 8 col2, - 89 + + ( + + 50 ) + + - MAX( ALL - 92 ) FROM tab0
----
0
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3603
SELECT COUNT ( * ) / + 8 col2, - 89 + + ( + + 50 ) + + - MAX ( ALL - 92 ) FROM tab0
----
0
53

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT - MIN( CAST( + col2 AS SIGNED ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - MIN ( CAST ( + col2 AS INTEGER ) ) FROM tab2
----
-23

query II rowsort
SELECT ( - col2 ) AS col0, + 28 FROM tab2 cor0
----
-23
28
-40
28
-58
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3607
SELECT - COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3607
SELECT - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

query I rowsort
SELECT + ( - - 12 ) AS col1 FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT + - MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + - MAX ( col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL - col0 * + 81 * + col1 AS col1, 33 AS col1 FROM tab1 AS cor0
----
-34425
33
-346437
33
-57834
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 / + col0 * - col2 * + 37 * - col0 + - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - 20 AS col0, 33 FROM tab1 AS cor0
----
-20
33

query I rowsort
SELECT + - 94 * 74 - + 64 AS col0 FROM tab1 AS cor0
----
-7020
-7020
-7020

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT col1 * + + ( 92 ), col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 + col0 AS col0, - col0 FROM tab1
----
144
-85
147
-51
159
-91

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - 83 + - 68 IS NULL
----

query I rowsort
SELECT + col0 + + ( + col2 ) FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT + CAST( col2 AS SIGNED ) * + CAST( + col2 AS SIGNED ) + - - col2 + + col1 * + ( 38 ) + - + col2 * + col0 FROM tab2
----
1432
1618
2006

skipif mysql # not compatible
query I rowsort label-3620
SELECT + CAST ( col2 AS INTEGER ) * + CAST ( + col2 AS INTEGER ) + - - col2 + + col1 * + ( 38 ) + - + col2 * + col0 FROM tab2
----
1432
1618
2006

query I rowsort
SELECT DISTINCT + col1 + 88 AS col2 FROM tab1
----
102
135
93

query I rowsort
SELECT DISTINCT + 39 * - col1 AS col1 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * - col0
----

query I rowsort
SELECT DISTINCT - 8 * + 37 + - - ( 75 ) AS col1 FROM tab1 AS cor0
----
-221

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT ALL col1 DIV + col0 col1 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT ALL col1 / + col0 col1 FROM tab0 cor0
----
0
0
5

query II rowsort
SELECT DISTINCT - col2, + 59 AS col2 FROM tab0 AS cor0 WHERE - 62 + 93 BETWEEN NULL AND - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + MIN( DISTINCT + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + col0 - + 97 col2 FROM tab2 AS cor0
----
46
-51
64
-33
75
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col2, CAST( + col2 AS SIGNED ), - - ( + 72 ) )
----

skipif mysql # not compatible
query I rowsort label-3629
SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col2, CAST ( + col2 AS INTEGER ), - - ( + 72 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col0 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT + + MAX( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1
----
99

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1
----
99

query I rowsort
SELECT - - 42 AS col1 FROM tab0 WHERE NOT NULL <> - 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3633
SELECT DISTINCT + CAST( + - col2 AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + CAST ( + - col2 AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT COUNT( DISTINCT - 0 ) DIV COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT COUNT ( DISTINCT - 0 ) / COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT MAX( DISTINCT + ( + col1 ) ) * + SUM( ALL + col0 ) * + SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
2777775

skipif mysql # not compatible
query I rowsort label-3635
SELECT MAX ( DISTINCT + ( + col1 ) ) * + SUM ( ALL + col0 ) * + SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
2777775

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 71 AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT MAX( ( + col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3637
SELECT MAX ( ( + col1 ) ) AS col1 FROM tab0
----
81

query I rowsort
SELECT - col0 + col1 * + col1 FROM tab0
----
-96
354
6546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3639
SELECT * FROM tab2 AS cor0 WHERE - col0 / + CAST( + - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3639
SELECT * FROM tab2 AS cor0 WHERE - col0 / + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT - - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 / - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3643
SELECT col2, ( + + col2 ) * 40 + - 9 DIV - col2 + 95 AS col1 FROM tab0
----
10
495
47
1975
99
4055

skipif mysql # not compatible
query II rowsort label-3643
SELECT col2, ( + + col2 ) * 40 + - 9 / - col2 + 95 AS col1 FROM tab0
----
10
495
47
1975
99
4055

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT MIN( DISTINCT + 89 ) col0 FROM tab2
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3644
SELECT MIN ( DISTINCT + 89 ) col0 FROM tab2
----
89

query I rowsort
SELECT ALL col1 + - + 81 AS col1 FROM tab2
----
-14
-30
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 WHERE ( NOT + CAST( NULL AS SIGNED ) = NULL )
----

skipif mysql # not compatible
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 WHERE ( NOT + CAST ( NULL AS INTEGER ) = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 97 col0 FROM tab1 AS cor0
----
1
29
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - 29 col1 FROM tab2 cor0
----
52
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * 3 col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-188
-396
-40

query I rowsort
SELECT DISTINCT + 11 + - col2 * col1 AS col2 FROM tab1
----
-1333
-284
-3185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + col0 * + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + col0 * + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT COUNT( 37 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT COUNT ( 37 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL AVG ( ALL + col2 ) FROM tab2 WHERE NOT - 40 > NULL
----
NULL

query I rowsort
SELECT 73 FROM tab1 WHERE 41 + + col0 <> - col1
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT - MIN( DISTINCT 71 ) + - 26 * + 53 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <> 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - MIN ( DISTINCT 71 ) + - 26 * + 53 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <> 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - COUNT( * ) + 64 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3657
SELECT - COUNT ( * ) + 64 FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MAX( DISTINCT - 51 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3658
SELECT MAX ( DISTINCT - 51 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT col0 + col2 * + ( - 95 + 32 ) FROM tab0
----
-2946
-543
-6140

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT MAX( 19 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3661
SELECT MAX ( 19 ) AS col0 FROM tab2
----
19

query I rowsort
SELECT + 10 + - 42 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT - MAX( + col1 ) * + 7 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT - MAX ( + col1 ) * + 7 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - COUNT( * ) + COUNT( * ) * 95 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-3664
SELECT - COUNT ( * ) + COUNT ( * ) * 95 FROM tab1
----
282

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( col1 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 6 IN ( - 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * col0 + col0 * - col0 AS col1 FROM tab1
----
-14450
-16562
-5202

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT col2 DIV col0 + + col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-3668
SELECT col2 / col0 + + col1 FROM tab1 AS cor0
----
15
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + ( + COUNT( * ) ) * 67 + 79 AS col0 FROM tab0 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-3669
SELECT + ( + COUNT ( * ) ) * 67 + 79 AS col0 FROM tab0 AS cor0
----
280

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 97 ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT COUNT( * ) FROM tab2 WHERE col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT COUNT ( * ) FROM tab2 WHERE col1 + col1 IS NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT 66 DIV col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3674
SELECT 66 / col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - + 54 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3675
SELECT - + 54 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 - 47 col2 FROM tab0 AS cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( col1 + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 + col2 < col0
----

query I rowsort
SELECT + col0 + col2 * - 94 FROM tab1 cor0
----
-5461
-6301
-8973

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT 81 FROM tab0 cor0 WHERE col2 <> col0 + 31
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 80 col2 FROM tab0 cor0
----
-101
-161
-81

query I rowsort
SELECT 47 + - 18 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 16 BETWEEN - 20 AND - 48
----

query I rowsort
SELECT ALL col2 * - col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + COUNT( * ) + - MAX( ALL + col1 ) AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3686
SELECT + COUNT ( * ) + - MAX ( ALL + col1 ) AS col0 FROM tab0
----
-78

query III rowsort
SELECT * FROM tab0 WHERE - 91 NOT BETWEEN ( - col1 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL - col2 DIV + - 57 + + col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - col2 / + - 57 + + col2 FROM tab0
----
10
100
47

query I rowsort
SELECT ALL + 55 AS col1 FROM tab0 WHERE NOT NULL > + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT - col2 + + 89 * CAST( - col0 / - 70 AS SIGNED ) FROM tab0
----
-10
-47
79

skipif mysql # not compatible
query I rowsort label-3690
SELECT - col2 + + 89 * CAST ( - col0 / - 70 AS INTEGER ) FROM tab0
----
-10
-47
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col1 BETWEEN ( 80 * + col0 ) AND + col2
----

query I rowsort
SELECT DISTINCT 58 * 75 * - col0 + 47 FROM tab1
----
-221803
-369703
-395803

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT DISTINCT 41 DIV + ( + col1 ) + - 48 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT 41 / + ( + col1 ) + - 48 FROM tab2
----
-48

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col0 - + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 46 > NULL
----

query I rowsort
SELECT - 83 + col2 * 76 AS col1 FROM tab0 WHERE + col1 - 99 BETWEEN ( NULL ) AND col1 * 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL 14 + + 46 DIV - 69 AS col0 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 14 + + 46 / - 69 AS col0 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT + 68 + - col1 * - col1 AS col0 FROM tab1
----
2277
264
93

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - ( ( col2 ) ) - col0 )
----

query I rowsort
SELECT 78 FROM tab1 WHERE NULL IS NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL 3 * + + COUNT( * ) - COUNT( DISTINCT - col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 3 * + + COUNT ( * ) - COUNT ( DISTINCT - col0 ) FROM tab2
----
6

query I rowsort
SELECT - col1 * + col2 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT + COUNT( * ) - + CAST( - 20 AS SIGNED ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + COUNT ( * ) - + CAST ( - 20 AS INTEGER ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT + ( - 87 ) * + 16 - + col2 FROM tab2 AS cor0
----
-1415
-1432
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT - 81 - - COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3706
SELECT - 81 - - COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
-72

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab1 cor1 ON - 50 * 78 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( 11 ) <> ( + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( col0 - 29 ) IS NOT NULL
----

query II rowsort
SELECT ALL - 3, col2 AS col0 FROM tab1
----
-3
59
-3
68
-3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + - COUNT( * ) * 84 AS col1 FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3712
SELECT + - COUNT ( * ) * 84 AS col1 FROM tab2 cor0
----
-252

query II rowsort
SELECT - col1, + col2 * - - 70 AS col2 FROM tab2 AS cor0
----
-51
1610
-67
4060
-77
2800

query I rowsort
SELECT ALL + ( col1 ) * + + col1 + col1 * - ( 15 ) FROM tab1 AS cor0
----
-14
-50
1504

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 30 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 5 ) IN ( + col0 / - col2 )
----

query I rowsort
SELECT DISTINCT + 22 * - 7 + - 96 AS col0 FROM tab2 AS cor0
----
-250

query III rowsort
SELECT ALL * FROM tab0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL 33 * - - col0 * - col2 * col2 AS col1 FROM tab0
----
-1093455
-287100
-31373001

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT 51 * + COUNT( * ) * + 28 col0 FROM tab2
----
4284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3720
SELECT DISTINCT 51 * + COUNT ( * ) * + 28 col0 FROM tab2
----
4284

query I rowsort
SELECT - 78 AS col0 FROM tab2 WHERE NOT - - 89 + - col2 BETWEEN ( - 99 ) AND col1 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3722
SELECT ALL CAST( + MIN( col0 ) AS SIGNED ) DIV + + 41 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL CAST ( + MIN ( col0 ) AS INTEGER ) / + + 41 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL + + 55 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / + col2 + + col0 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3725
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + + col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + ( + - MIN( ALL + 15 ) ) * 48 FROM tab2 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-3728
SELECT + ( + - MIN ( ALL + 15 ) ) * 48 FROM tab2 AS cor0
----
-720

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 21 * - col0 + + - col1 + 51 FROM tab2 AS cor0
----
-1370
-1591
-966

query I rowsort
SELECT DISTINCT + col0 * - - col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 32 + 71 * - ( - col0 ) FROM tab1
----
3538
5918
6338

query I rowsort
SELECT DISTINCT 75 + col1 FROM tab1 WHERE ( - col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT COUNT( * ) + 3 AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3734
SELECT COUNT ( * ) + 3 AS col2 FROM tab0
----
6

query I rowsort
SELECT + 57 + + col0 FROM tab1
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + COUNT( col0 ) col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND 76 * + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT DISTINCT + COUNT ( col0 ) col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND 76 * + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT DISTINCT + + 29 DIV - col0 + + 24 + col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1512
-3265
-459

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + + 29 / - col0 + + 24 + col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1512
-3265
-459

query I rowsort
SELECT DISTINCT + 59 FROM tab1 AS cor0 WHERE NOT 87 > col2 * - 58
----

query I rowsort
SELECT DISTINCT + 82 FROM tab2 AS cor0 WHERE - col1 * + 87 / - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3740
SELECT - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL - 57 - 69 FROM tab1 AS cor0
----
-126
-126
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT + - col1 * + col1 FROM tab2 AS cor0 WHERE + 42 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3743
SELECT + - col1 * + col1 FROM tab2 AS cor0 WHERE + 42 <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT ALL COUNT( * ), + ( - 17 ) col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3744
SELECT ALL COUNT ( * ), + ( - 17 ) col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
-17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) <> - col0 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT + - 3 + col2 * col2 FROM tab1 WHERE + col1 * CAST( NULL AS SIGNED ) * + + col1 IS NULL
----
3478
4621
9213

skipif mysql # not compatible
query I rowsort label-3746
SELECT + - 3 + col2 * col2 FROM tab1 WHERE + col1 * CAST ( NULL AS INTEGER ) * + + col1 IS NULL
----
3478
4621
9213

query I rowsort
SELECT ALL col2 + + col1 + 82 * + + 43 + - + col1 FROM tab0
----
3536
3573
3625

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 84 * - + col2 - - - col1 IN ( col2 )
----

query I rowsort
SELECT - col1 - + - col0 AS col0 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT SUM( DISTINCT - col0 ) - - COUNT( * ) + + COUNT( * ) FROM tab0
----
-193

skipif mysql # not compatible
query I rowsort label-3750
SELECT SUM ( DISTINCT - col0 ) - - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-193

query I rowsort
SELECT ALL + + col0 * col1 + 88 FROM tab2 WHERE NULL IS NULL
----
2434
5016
5113

query I rowsort
SELECT + 37 - - col1 * - - col1 AS col1 FROM tab0
----
38
478
6598

query II rowsort
SELECT + col1 * - 94 - + 17 * + col1, + 64 - col0 AS col0 FROM tab1
----
-1554
13
-5217
-27
-555
-21

query II rowsort
SELECT 37 + + - col2 + col2 + - col2 AS col0, - col1 * col1 - - 22 FROM tab1
----
-22
-3
-31
-2187
-59
-174

query II rowsort
SELECT + col1 AS col0, col1 * + col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT 16 * + ( - col0 ) AS col1 FROM tab0
----
-1392
-1552
-240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - 61 / - col1 <> + + 54
----

query I rowsort
SELECT col2 / - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + ( - + 34 ) FROM tab0 cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE ( - col0 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( - col0 > NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3761
SELECT - COUNT( * ) col2, + CAST( SUM( + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-3
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3761
SELECT - COUNT ( * ) col2, + CAST ( SUM ( + col0 ) AS INTEGER ) AS col0 FROM tab0
----
-3
199

query I rowsort
SELECT DISTINCT 42 + - col2 FROM tab0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT + MAX( - col1 ) * - COUNT( - 30 ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + MAX ( - col1 ) * - COUNT ( - 30 ) AS col2 FROM tab1
----
15

query I rowsort
SELECT ALL col2 * - 19 * + - col1 FROM tab0
----
1881
3990
72333

query I rowsort
SELECT ALL 90 * col1 + + 28 FROM tab2
----
4618
6058
6958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + 92 / - + 98 * col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 52 * + 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT 79 * COUNT( * ) - + SUM( ALL + - 39 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL >= ( - col0 * + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT 79 * COUNT ( * ) - + SUM ( ALL + - 39 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL >= ( - col0 * + - 90 )
----
NULL

query I rowsort
SELECT + col1 + col2 * + 79 FROM tab1
----
4666
5419
7598

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL 15 + + COUNT( * ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 15 + + COUNT ( * ) AS col2 FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * - col2 col1 FROM tab1 AS cor0
----
-4130
-4760
-6720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3772
SELECT ALL - - 13 DIV - CAST( - ( + 49 ) AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - - 13 / - CAST ( - ( + 49 ) AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 / - ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * + + ( col2 ) / + 67 + ( + col1 ) IS NULL
----

query I rowsort
SELECT - 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 36 IS NULL
----

query I rowsort
SELECT - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3777
SELECT ALL - col0 + + CAST( NULL AS DECIMAL ) - - - 55 + + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - col0 + + CAST ( NULL AS REAL ) - - - 55 + + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL - 75 DIV col0 * - ( - col1 ) + + col1 + 42 FROM tab0 AS cor0
----
-282
43
63

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - 75 / col0 * - ( - col1 ) + + col1 + 42 FROM tab0 AS cor0
----
-282
43
63

query II rowsort
SELECT DISTINCT - col2 * - + col2, col1 FROM tab2 AS cor0
----
1600
77
3364
67
529
51

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 83 ) - 53 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT ALL - col1 DIV + - 51 + + 7 AS col2 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - col1 / + - 51 + + 7 AS col2 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - 0 - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT ALL + 70 DIV + MIN( DISTINCT + - 71 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + 70 / + MIN ( DISTINCT + - 71 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ( - + col2 ) + - ( + ( + 84 ) ) * + 32 FROM tab2 AS cor0
----
-2711
-2728
-2746

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT - 74 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col0 + + col1 + - col2 FROM tab1
----
-17
117
36

query I rowsort
SELECT ALL ( - 10 ) AS col2 FROM tab1
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3789
SELECT DISTINCT - - ( - COUNT( ALL 99 ) ), 86 + - CAST( NULL AS SIGNED ) - COUNT( * ) * + - AVG ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT - - ( - COUNT ( ALL 99 ) ), 86 + - CAST ( NULL AS INTEGER ) - COUNT ( * ) * + - AVG ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3790
SELECT + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - MIN( - col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3791
SELECT - MIN ( - col2 ) AS col1 FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab1
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( - 78 / + col0 + - col0 + - 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + col0 - col2 AS col1 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT + - ( 77 ) + - col2 FROM tab1 AS cor0
----
-136
-145
-173

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 53 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 + + 78 * + col0 col0 FROM tab2 cor0
----
3690
5146
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col1 + - col1 + - + 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col1 + - col1 + - + 52 IS NULL
----
0

query I rowsort
SELECT ALL - col2 + - col0 * + col0 FROM tab1
----
-2697
-7284
-8349

query II rowsort
SELECT DISTINCT - 7 * 16, + col1 AS col0 FROM tab1
----
-112
14
-112
47
-112
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL CAST( - col1 AS SIGNED ) + - col1 - col0 + - col2 * - + 94 col0 FROM tab2
----
2014
3542
5243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3802
SELECT ALL CAST ( - col1 AS INTEGER ) + - col1 - col0 + - col2 * - + 94 col0 FROM tab2
----
2014
3542
5243

query II rowsort
SELECT ALL col1 * + 26 AS col0, + col0 AS col1 FROM tab1
----
1222
91
130
85
364
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT * FROM tab2 WHERE - - col2 BETWEEN NULL AND - CAST( - 25 AS SIGNED ) * col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT * FROM tab2 WHERE - - col2 BETWEEN NULL AND - CAST ( - 25 AS INTEGER ) * col1 + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - - ( 78 ) col2 FROM tab0 AS cor0
----
1170
6786
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT MIN( col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3806
SELECT MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col1 * - - ( - col0 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL + 30 + - 57 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE NULL >= - col0
----

query I rowsort
SELECT + - ( + - 10 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3812
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + - 69 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + CAST ( NULL AS REAL ) - + - 69 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col2, - col1 AS col1 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL - COUNT( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - COUNT ( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL SUM( 78 ) AS col1 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL SUM ( 78 ) AS col1 FROM tab1
----
234

query I rowsort
SELECT - col1 * - col2 * col0 * col1 AS col1 FROM tab2
----
15178240
19527150
2751858

query I rowsort
SELECT ALL + 7 * - - col2 AS col0 FROM tab1
----
413
476
672

query I rowsort
SELECT DISTINCT col1 * + + ( - + col0 ) AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT ALL 16 DIV - - 75 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL 16 / - - 75 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3820
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + 54 + - + col2 + + - col1 NOT BETWEEN + - col0 AND + + col0 * - + 90
----

skipif mysql # not compatible
query III rowsort label-3820
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + 54 + - + col2 + + - col1 NOT BETWEEN + - col0 AND + + col0 * - + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT COUNT( DISTINCT + 10 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT COUNT ( DISTINCT + 10 ) FROM tab1 cor0
----
1

query I rowsort
SELECT ALL ( - - 20 ) FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - 1 BETWEEN ( NULL ) AND - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( col2 ) * + 85 + + + 41 * 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, - 59 AS col0 FROM tab1 AS cor0
----
59
-59
68
-59
96
-59

query II rowsort
SELECT + + col1 AS col1, + 57 AS col0 FROM tab1 AS cor0
----
14
57
47
57
5
57

query I rowsort
SELECT + col1 / col0 * + ( - ( col2 ) ) AS col0 FROM tab0 WHERE NULL < - + col2
----

query I rowsort
SELECT + col2 + + ( + - col0 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT + col1 * CAST( + col1 AS SIGNED ) + - col0 + - 42 FROM tab2
----
2513
4372
5823

skipif mysql # not compatible
query I rowsort label-3833
SELECT + col1 * CAST ( + col1 AS INTEGER ) + - col0 + - 42 FROM tab2
----
2513
4372
5823

query I rowsort
SELECT col2 + + + col0 * - 81 AS col0 FROM tab2
----
-3703
-5144
-6017

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col0 * - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 * col0 * + - 92 + 33 + + col2 AS col0 FROM tab1
----
239421
664792
761953

query I rowsort
SELECT col0 + - + 72 * + col1 FROM tab2
----
-3626
-4749
-5480

query I rowsort
SELECT DISTINCT 55 + col2 FROM tab0
----
102
154
65

query I rowsort
SELECT ALL - ( - col0 ) + col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE - col2 + - - col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + 97 * + SUM( ALL - 37 ) AS col2 FROM tab0 AS cor0
----
-10767

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 97 * + SUM ( ALL - 37 ) AS col2 FROM tab0 AS cor0
----
-10767

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + ( - 4 ) * COUNT( * ) AS col1 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3842
SELECT + ( - 4 ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3843
SELECT * FROM tab2 AS cor0 WHERE 25 >= ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3843
SELECT * FROM tab2 AS cor0 WHERE 25 >= ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT DISTINCT 72 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT 72 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
72
3

query I rowsort
SELECT 69 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT 66 * + - COUNT( * ) AS col0 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-3846
SELECT 66 * + - COUNT ( * ) AS col0 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT ( 92 ) + + MAX( + col0 ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT ( 92 ) + + MAX ( + col0 ) FROM tab0
----
189

query III rowsort
SELECT * FROM tab0 WHERE ( + 24 ) >= ( + col2 * - + 38 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) / 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + 5 < - col0 AND ( NULL <= + 94 )
----

query I rowsort
SELECT col2 * 38 + - col2 + + + ( + 30 ) * 3 AS col2 FROM tab1 AS cor0
----
2273
2606
3642

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE 65 IS NOT NULL
----
59
68
96

query II rowsort
SELECT + col2 + col2, col0 FROM tab1 AS cor0
----
118
85
136
91
192
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT + - 17 - + - MIN( ALL - col2 ) FROM tab1 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + - 17 - + - MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT - col2 * + 49 FROM tab0 cor0 WHERE NOT - CAST( col0 AS SIGNED ) + - col1 IS NULL
----
-2303
-4851
-490

skipif mysql # not compatible
query I rowsort label-3856
SELECT - col2 * + 49 FROM tab0 cor0 WHERE NOT - CAST ( col0 AS INTEGER ) + - col1 IS NULL
----
-2303
-4851
-490

query I rowsort
SELECT + ( + ( col1 ) ) FROM tab2 AS cor0 WHERE NOT col0 > - + 14 + 37
----

query I rowsort
SELECT col0 * - + ( col2 ) AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3859
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3861
SELECT ALL col0 DIV ( - col0 ) * + 30 AS col1, + ( + col1 ) * - 68 AS col0 FROM tab0
----
-30
-1428
-30
-5508
-30
-68

skipif mysql # not compatible
query II rowsort label-3861
SELECT ALL col0 / ( - col0 ) * + 30 AS col1, + ( + col1 ) * - 68 AS col0 FROM tab0
----
-30
-1428
-30
-5508
-30
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3862
SELECT ALL - SUM( DISTINCT + 57 ) DIV MIN( + 25 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - SUM ( DISTINCT + 57 ) / MIN ( + 25 ) FROM tab0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3863
SELECT - ( - CAST( - COUNT( * ) AS SIGNED ) ) DIV - 12 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / - 12 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT - 45 * + COUNT( * ) AS col2 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - 45 * + COUNT ( * ) AS col2 FROM tab1
----
-135

query II rowsort
SELECT - - 35 AS col1, col1 FROM tab2 AS cor0
----
35
51
35
67
35
77

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL = + col1 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL - 50 * + - MIN( + - col0 ) AS col0 FROM tab2
----
-3750

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - 50 * + - MIN ( + - col0 ) AS col0 FROM tab2
----
-3750

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT IN ( + 15, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + + + col1 * - 4 + col2 FROM tab0
----
-324
-4
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT ALL 7 + - - CAST( + MAX( ALL + 15 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL 7 + - - CAST ( + MAX ( ALL + 15 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 41 NOT IN ( - + col2, 14 * - 90 )
----

query I rowsort
SELECT 76 * + col0 + - col1 FROM tab0 AS cor0
----
1059
6591
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + 87 + - - MAX( 73 ) FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 87 + - - MAX ( 73 ) FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3874
SELECT ALL - col1 * - col0 / 24, - col1 * + 29 FROM tab0 AS cor0 WHERE NOT CAST( col0 AS DECIMAL ) + - 8 <> - 14 + ( col2 )
----

skipif mysql # not compatible
query II rowsort label-3874
SELECT ALL - col1 * - col0 / 24, - col1 * + 29 FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS REAL ) + - 8 <> - 14 + ( col2 )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN + + col0 AND + - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - col1 + - CAST( - col1 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - col1 + - CAST ( - col1 AS INTEGER ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3877
SELECT col2, col2 DIV + col0 FROM tab0
----
10
0
47
3
99
1

skipif mysql # not compatible
query II rowsort label-3877
SELECT col2, col2 / + col0 FROM tab0
----
10
0
47
3
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - - 82 + - - col0 * - - col1 FROM tab1
----
4406
512
810

query I rowsort
SELECT - col1 * 67 AS col1 FROM tab1
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + + 27 + + - COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + + 27 + + - COUNT ( * ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT AVG ( + col1 ) * COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NULL ) IN ( - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT AVG ( + col1 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NULL ) IN ( - - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - - COUNT( * ) - - - 57 AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - - COUNT ( * ) - - - 57 AS col2 FROM tab1 AS cor0
----
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + col0 * + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT - + 49 * - COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - + 49 * - COUNT ( * ) FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COUNT( * ) FROM tab2 WHERE + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COUNT ( * ) FROM tab2 WHERE + + col2 >= NULL
----
0

query I rowsort
SELECT ALL + - 86 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT DISTINCT + 55 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3889
SELECT + 85 DIV - - col2 col2, 50 * + - ( + col2 ) AS col1 FROM tab2
----
1
-2900
2
-2000
3
-1150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3889
SELECT + 85 / - - col2 col2, 50 * + - ( + col2 ) AS col1 FROM tab2
----
1
-2900
2
-2000
3
-1150

query I rowsort
SELECT DISTINCT + ( - - ( col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + SUM( - 77 ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + SUM ( - 77 ) AS col0 FROM tab2 AS cor0
----
-231

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + COUNT( * ) * + 3 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3893
SELECT + COUNT ( * ) * + 3 AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL 56 * 25 DIV col2 FROM tab0
----
14
140
29

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL 56 * 25 / col2 FROM tab0
----
14
140
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3896
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL 23 * - CAST( - 8 AS SIGNED ) AS col1 FROM tab0
----
184
184
184

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL 23 * - CAST ( - 8 AS INTEGER ) AS col1 FROM tab0
----
184
184
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 16 col1, col2 - + + col0 FROM tab0
----
1392
-77
1552
2
240
32

query I rowsort
SELECT + 24 + 19 + 88 / + - col0 * col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3900
SELECT col2 * 66 AS col0, + 24 - + col1 + col1 * + - CAST( NULL AS SIGNED ) + - col2 * col0 + + col0 col1 FROM tab0
----
3102
NULL
6534
NULL
660
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3900
SELECT col2 * 66 AS col0, + 24 - + col1 + col1 * + - CAST ( NULL AS INTEGER ) + - col2 * col0 + + col0 col1 FROM tab0
----
3102
NULL
6534
NULL
660
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 37 + 75 - - 35 >= + - col1
----

query I rowsort
SELECT DISTINCT col0 * col2 * - col1 * - - col0 FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + 0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 94 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - col1 + + CAST( col1 AS SIGNED ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) > - col0
----

skipif mysql # not compatible
query I rowsort label-3906
SELECT - col1 + + CAST ( col1 AS INTEGER ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT - 50 * - COUNT( * ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - 50 * - COUNT ( * ) FROM tab1 AS cor0
----
150

query I rowsort
SELECT DISTINCT + - 59 * + col1 * + col2 FROM tab1 AS cor0
----
-17405
-188564
-79296

query I rowsort
SELECT ALL + col1 * + col2 + - col2 * + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
331
6097
9901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + 41 DIV - COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + 41 / - COUNT ( * ) FROM tab0 AS cor0
----
-13

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT 2 + - 91 AS col2 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * 55 + + - col2 FROM tab1
----
3186
3672
5184

query III rowsort
SELECT - 80 + - ( ( col1 ) ) AS col0, - 4, + + col1 + col2 * col1 + - col0 AS col0 FROM tab1 WHERE col2 + - col1 * 70 IS NULL
----

query I rowsort
SELECT ALL col2 + 15 * col2 * col2 FROM tab2
----
24040
50518
7958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT + 62 AS col0 FROM tab2 WHERE + CAST( - + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + 62 AS col0 FROM tab2 WHERE + CAST ( - + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 + - col1 + - - 58 * + + col1 + col2 FROM tab2
----
5046
8525
9502

query I rowsort
SELECT DISTINCT - - 56 - - - col2 + - 30 FROM tab0 cor0
----
-21
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + MAX( ALL + - 53 ) FROM tab2 AS cor0 WHERE NOT - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + MAX ( ALL + - 53 ) FROM tab2 AS cor0 WHERE NOT - col1 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 62 * col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 col2, 31 FROM tab1
----
71
31
71
31
71
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 51 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + + 76 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT SUM( DISTINCT + 61 ) FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-3925
SELECT SUM ( DISTINCT + 61 ) FROM tab0 cor0
----
61

query I rowsort
SELECT - + 72 * + - col1 AS col2 FROM tab0 AS cor0
----
1512
5832
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 * + 92 > - col2 * + col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT + MIN( DISTINCT + 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + MIN ( DISTINCT + 1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT + ( + MAX( + - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + ( + MAX ( + - col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT ALL - col0 AS col2, col2 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT + ( 37 ) FROM tab1
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT 34 DIV - col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT 34 / - col2 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT COUNT( DISTINCT col1 ) * - + 60 + + 5 FROM tab1
----
-175

skipif mysql # not compatible
query I rowsort label-3933
SELECT COUNT ( DISTINCT col1 ) * - + 60 + + 5 FROM tab1
----
-175

query II rowsort
SELECT 63 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
63
10
63
47
63
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - col2 * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 23 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - + COUNT( * ) + + MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3939
SELECT - + COUNT ( * ) + + MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND 79
----

query I rowsort
SELECT ALL - col2 * - col0 - + - col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT col2 + + ( + 7 ) AS col1 FROM tab2 cor0
----
30
47
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT DISTINCT - col2 DIV + ( 43 ) AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - col2 / + ( 43 ) AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT DISTINCT - - ( + col0 ) DIV + + 78 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - - ( + col0 ) / + + 78 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-86
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL col2 * 17 * + ( col0 ) + + 88 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
18075
43609
74039

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL col2 * 17 * + ( col0 ) + + 88 + col0 / col0 AS col1 FROM tab2 AS cor0
----
18075
43609
74039

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 NOT BETWEEN NULL AND 49 + + col0 + + col0
----

query I rowsort
SELECT + col0 * + 11 * + + ( - - col1 ) AS col1 FROM tab2
----
25806
54208
55275

query I rowsort
SELECT 12 - + col2 FROM tab2
----
-11
-28
-46

query II rowsort
SELECT DISTINCT + col2 - - col1 + + col2 AS col2, + col1 + col1 + + col2 FROM tab2
----
157
194
183
192
97
125

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ( - col2 ) + + 75 DIV + col1 FROM tab1 AS cor0
----
-44
-67
-91

skipif mysql # not compatible
query I rowsort label-3950
SELECT ( - col2 ) + + 75 / + col1 FROM tab1 AS cor0
----
-44
-67
-91

query I rowsort
SELECT ALL - 8 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
391
552
658

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - - COUNT( * ) * + + ( 55 ) + - 46 + + - ( + + 18 ) AS col1 FROM tab1 cor0
----
101

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - - COUNT ( * ) * + + ( 55 ) + - 46 + + - ( + + 18 ) AS col1 FROM tab1 cor0
----
101

query I rowsort
SELECT 38 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col2
----

query II rowsort
SELECT ALL - + col2 AS col0, 9 FROM tab2 AS cor0
----
-23
9
-40
9
-58
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT + + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + MIN( DISTINCT - + col0 ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3956
SELECT + MIN ( DISTINCT - + col0 ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * + ( 53 ) FROM tab1 cor0
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL + SUM( 61 ) AS col0 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL + SUM ( 61 ) AS col0 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - ( MAX( ALL - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3959
SELECT - ( MAX ( ALL - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - col2 * + + col0 * - col2 + - + 34 AS col0 FROM tab0 AS cor0
----
33101
8666
950663

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + MAX( ALL col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3961
SELECT + MAX ( ALL col1 ) AS col0 FROM tab1
----
47

query II rowsort
SELECT + 22 AS col1, - col0 AS col2 FROM tab2
----
22
-46
22
-64
22
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - ( - COUNT( * ) ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3964
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL col0 DIV + col0 + + + 84 FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL col0 / + col0 + + + 84 FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - SUM( + col2 ) AS col2 FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
-121

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - SUM ( + col2 ) AS col2 FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
-121

query II rowsort
SELECT col2 AS col2, 7 AS col2 FROM tab1
----
59
7
68
7
96
7

query I rowsort
SELECT 44 + + + col1 FROM tab2
----
111
121
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL COUNT( * ) + + MIN( + col2 ) FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL COUNT ( * ) + + MIN ( + col2 ) FROM tab2 cor0
----
26

query II rowsort
SELECT DISTINCT + col2, + col2 * ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59
-3481
68
-4624
96
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT ALL + COUNT( * ), + COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT + col0 * + col1 <> + ( + col2 ) * - 50 * + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL - COUNT( ALL - 60 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - COUNT ( ALL - 60 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22, + col1 col2 FROM tab0
----
22
1
22
21
22
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3975
SELECT - col1 AS col2, CAST( + col0 AS SIGNED ) FROM tab1
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-3975
SELECT - col1 AS col2, CAST ( + col0 AS INTEGER ) FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL 86 * + col1 + - 4 FROM tab2
----
4382
5758
6618

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3977
SELECT + CAST( NULL AS DECIMAL ) * - 75 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT + CAST ( NULL AS REAL ) * - 75 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < 81
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT 31 * - - col0 * + 85 * + 0 + + col0 DIV + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT 31 * - - col0 * + 85 * + 0 + + col0 / + col1 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3980
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - + col1 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - + col1 AS REAL ) < NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 82 FROM tab2 AS cor0
----
-24
-42
-59

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL + col2 AS col2, + 1, + col2 FROM tab0 AS cor0
----
9 values hashing to 3f58009e297b66156c76a690aab1822a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL 69 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT - col0 < col2 / - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 69 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT - col0 < col2 / - ( + col1 )
----

query I rowsort
SELECT + col0 + ( + col2 ) FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL + ( + - CAST( - 22 AS SIGNED ) ) + col2 col2 FROM tab0
----
121
32
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3986
SELECT ALL + ( + - CAST ( - 22 AS INTEGER ) ) + col2 col2 FROM tab0
----
121
32
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 + + col1 * + col0 col2 FROM tab2
----
2388
4970
5067

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - 3 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 83 * + col2 AS col2 FROM tab0 AS cor0
----
3901
8217
830

query II rowsort
SELECT DISTINCT 84, - col1 FROM tab1 WHERE NOT + + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 67 * + 35 FROM tab0
----
2345

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 19 / 49 BETWEEN 84 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT - COUNT( * ) * + SUM( + - col2 ) AS col2 FROM tab2 cor0
----
363

skipif mysql # not compatible
query I rowsort label-3993
SELECT - COUNT ( * ) * + SUM ( + - col2 ) AS col2 FROM tab2 cor0
----
363

query II rowsort
SELECT ALL col1, + col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - ( + - 81 ) FROM tab1 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - ( - MAX( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3997
SELECT - ( - MAX ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col2, - col2, col0, + 97 * col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + SUM( - col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3999
SELECT ALL + SUM ( - col0 ) col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col1 + - + 46 FROM tab2
----
21
31
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT DISTINCT CAST( + - 44 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT CAST ( + - 44 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-44

query I rowsort
SELECT DISTINCT - col2 + + - col0 * + col1 AS col1 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT COUNT( * ) + + - ( + MAX( DISTINCT + col0 ) ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT COUNT ( * ) + + - ( + MAX ( DISTINCT + col0 ) ) AS col1 FROM tab0
----
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4005
SELECT - CAST( - + col0 AS SIGNED ) DIV - 72 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT - CAST ( - + col0 AS INTEGER ) / - 72 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT ALL col1 DIV col2 * - - col1 AS col1 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL col1 / col2 * - - col1 AS col1 FROM tab2
----
102
67
77

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2 cor0 WHERE - 66 IS NOT NULL
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4008
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 78 AND - + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4008
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 78 AND - + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT + 78 - + COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + 78 - + COUNT ( * ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL - ( + 34 ) FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT - 32 - 91 AS col0 FROM tab0
----
-123
-123
-123

query I rowsort
SELECT col2 - 81 AS col1 FROM tab2
----
-23
-41
-58

query III rowsort
SELECT * FROM tab2 WHERE + col1 - + col2 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * - col0 AS col2 FROM tab2
----
-51
-1058
-67
-4350
-77
-2560

query I rowsort
SELECT ALL - col2 * - col1 * + - col0 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col2 col0, 16 FROM tab0
----
-210
16
-3807
16
-99
16

query I rowsort
SELECT col1 * - - col0 * + col0 AS col1 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL 32 * COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL 32 * COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 12 * - COUNT( 43 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4019
SELECT 12 * - COUNT ( 43 ) FROM tab0
----
-36

query II rowsort
SELECT ALL - 27, - col2 + - 34 AS col0 FROM tab0 AS cor0
----
-27
-133
-27
-44
-27
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - 50 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
450

skipif mysql # not compatible
query I rowsort label-4022
SELECT - 50 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
450

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 49 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT - - 60 * col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT - - 60 * col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-4025
SELECT DISTINCT + 11 * - col2 col1, col1 AS col2, 50 DIV col0 + - + 97 * col0 FROM tab0 AS cor0
----
9 values hashing to 87c801bbcff60176ca6addbf960d34b9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4025
SELECT DISTINCT + 11 * - col2 col1, col1 AS col2, 50 / col0 + - + 97 * col0 FROM tab0 AS cor0
----
9 values hashing to 87c801bbcff60176ca6addbf960d34b9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col0 = NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 81 + + - col0 * - 26 FROM tab0
----
2353
2702
518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col1 + + 24 AS col1 FROM tab1
----
14
10
47
-23
5
19

query III rowsort
SELECT ALL * FROM tab0 WHERE - 19 + - col1 * + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT 96 + - - ( COUNT( * ) ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4030
SELECT 96 + - - ( COUNT ( * ) ) AS col0 FROM tab2
----
99

query I rowsort
SELECT - 65 + + 34 * col2 AS col2 FROM tab1
----
1941
2247
3199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 AS col0, + col1 col2 FROM tab1
----
24
14
24
47
24
5

query I rowsort
SELECT ALL + 21 * - col0 + + + ( - - 21 ) * col1 FROM tab1
----
-1680
-777
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT SUM( + + 85 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT SUM ( + + 85 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT ALL col2 + + 17 DIV 11 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL col2 + + 17 / 11 FROM tab0
----
100
11
48

query I rowsort
SELECT + 8 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT - 13 * + ( - 86 ) - + col1 FROM tab1 AS cor0
----
1071
1104
1113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT + CAST( NULL AS SIGNED ) + - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4038
SELECT + CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + COUNT( * ) - - MAX( DISTINCT + 90 ) AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + COUNT ( * ) - - MAX ( DISTINCT + 90 ) AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT col0 + - + col0 DIV - + col1 AS col0 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-4041
SELECT col0 + - + col0 / - + col1 AS col0 FROM tab2 AS cor0
----
46
64
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4043
SELECT ALL + ( col0 ), col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4043
SELECT ALL + ( col0 ), col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT - - col2 * - - col0 AS col1, + 40 FROM tab0 cor0
----
705
40
870
40
9603
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL SUM( - 88 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL SUM ( - 88 ) FROM tab1
----
-264

query II rowsort
SELECT + - col2 AS col2, - 75 + - + col0 AS col0 FROM tab1 AS cor0
----
-59
-160
-68
-166
-96
-126

query I rowsort
SELECT - ( + 91 ) * + + col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

query II rowsort
SELECT + col0 AS col0, 98 + - - col2 * ( - + 38 ) AS col1 FROM tab0 AS cor0
----
15
-1688
87
-282
97
-3664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4049
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT CAST( col2 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4049
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT CAST ( col2 AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 28 * + 14 FROM tab0
----
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, - col0 col2 FROM tab0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT + col0 DIV col2 + + 63 - + col0 FROM tab0 AS cor0
----
-16
-34
48

skipif mysql # not compatible
query I rowsort label-4053
SELECT + col0 / col2 + + 63 - + col0 FROM tab0 AS cor0
----
-16
-34
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - ( + - 66 ) * - - COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - ( + - 66 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
198

query I rowsort
SELECT col1 + col0 * + - ( col1 ) * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-119641
-336683
-379443

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 65 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 21 ) + + - col1 AS col2 FROM tab1 AS cor0
----
-26
-35
-68

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + col2 + col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + 94 * + 60 FROM tab2 AS cor0
----
5640
5640
5640

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT DISTINCT - - col2 DIV col2 col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4060
SELECT DISTINCT - - col2 / col2 col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + ( - 94 ) * - - col0 + - col1, - 95 AS col2 FROM tab1 AS cor0
----
-4808
-95
-7995
-95
-8601
-95

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT - COUNT( ALL col1 ) AS col1, COUNT( * ) * - 64 FROM tab0
----
-3
-192

skipif mysql # not compatible
query II rowsort label-4063
SELECT - COUNT ( ALL col1 ) AS col1, COUNT ( * ) * - 64 FROM tab0
----
-3
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 94 + + - 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 94 + + - 79 FROM tab0
----
NULL

query II rowsort
SELECT col0 - col0 + + 1, col1 AS col2 FROM tab2 cor0
----
1
51
1
67
1
77

query I rowsort
SELECT - + ( + col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT col0 * - - ( 9 ) FROM tab1 AS cor0 WHERE + 40 NOT BETWEEN - col0 * - col2 + col2 AND 53
----
459
765
819

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab1 AS cor0 WHERE NOT col1 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 71
----

query II rowsort
SELECT DISTINCT 26, - col0 AS col1 FROM tab1
----
26
-51
26
-85
26
-91

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT SUM( - 66 ) col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4073
SELECT SUM ( - 66 ) col0 FROM tab1 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT ALL + + col2 * col1 - + - col0 + - + 7 DIV col1 * - - col2 + + 31 + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
1250
3175
3992

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + + col2 * col1 - + - col0 + - + 7 / col1 * - - col2 + + 31 + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
1250
3175
3992

query I rowsort
SELECT + col1 - - + 85 AS col2 FROM tab1 AS cor0
----
132
90
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT + ( - AVG ( - 12 ) ) - + CAST( NULL AS SIGNED ) / - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + ( - AVG ( - 12 ) ) - + CAST ( NULL AS INTEGER ) / - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 * + + col2 / + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ( + + COUNT( * ) ) * + + 85 AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-4079
SELECT ( + + COUNT ( * ) ) * + + 85 AS col0 FROM tab2
----
255

query I rowsort
SELECT + col0 * + col0 * - + 50 AS col2 FROM tab0
----
-11250
-378450
-470450

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - COUNT( * ) * + COUNT( * ) * 49 AS col0 FROM tab2
----
-441

skipif mysql # not compatible
query I rowsort label-4081
SELECT - COUNT ( * ) * + COUNT ( * ) * 49 AS col0 FROM tab2
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - - 27 * - + COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - - 27 * - + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4083
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4085
SELECT DISTINCT + col2 + CAST( 54 AS SIGNED ) DIV - + 44 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT + col2 + CAST ( 54 AS INTEGER ) / - + 44 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL SUM( + 17 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
153

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL SUM ( + 17 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - MIN( - 41 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4087
SELECT DISTINCT - MIN ( - 41 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
41

query I rowsort
SELECT ALL 83 * + 23 AS col2 FROM tab1 AS cor0
----
1909
1909
1909

query I rowsort
SELECT - ( + col1 ) * + 56 AS col2 FROM tab2 cor0
----
-2856
-3752
-4312

query I rowsort
SELECT ALL - col1 * - - 4 FROM tab2 cor0
----
-204
-268
-308

query I rowsort
SELECT DISTINCT - col2 + - 27 AS col1 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - 72 + - MIN( + col0 ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 72 + - MIN ( + col0 ) FROM tab1 AS cor0
----
-123

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 cor0 WHERE col2 + + col0 / - col1 NOT BETWEEN NULL AND - + col0
----
-10
-47
-99

query I rowsort
SELECT - + col2 + - + col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT 37 + - col2 + - - col2 AS col0 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT COUNT( * ) * - 38 + + 25 AS col2 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( * ) * - 38 + + 25 AS col2 FROM tab1
----
-89

query III rowsort
SELECT * FROM tab2 WHERE - - 8 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + - col2 > 62
----

query I rowsort
SELECT - 58 + col0 AS col2 FROM tab2
----
-12
17
6

query III rowsort
SELECT * FROM tab0 WHERE col0 >= + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + 13 FROM tab1
----
-46
-55
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE - 83 - + col1 > NULL
----

query I rowsort
SELECT ALL 77 + + - col1 + - - col0 FROM tab1
----
114
121
157

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT ALL col0 DIV + - ( + + col2 ) FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL col0 / + - ( + + col2 ) FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT - + col1, + col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT + COUNT( DISTINCT - 46 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + COUNT ( DISTINCT - 46 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT ( + + ( - MAX( ALL 63 ) ) ) + + 1 FROM tab0 cor0 WHERE NOT ( - + 98 = + + col2 + - + col0 * - + col1 )
----
-62

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT ( + + ( - MAX ( ALL 63 ) ) ) + + 1 FROM tab0 cor0 WHERE NOT ( - + 98 = + + col2 + - + col0 * - + col1 )
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 89, - 17 col2 FROM tab2 cor0
----
89
-17
89
-17
89
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) * + COUNT( * ) - + + 68 + COUNT( * ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) * + COUNT ( * ) - + + 68 + COUNT ( * ) FROM tab0
----
-56

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - 71 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT ( NOT NULL BETWEEN 32 AND NULL )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - - 16
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col1 - + - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT DISTINCT - COUNT( * ) AS col2, 5 AS col0 FROM tab1
----
-3
5

skipif mysql # not compatible
query II rowsort label-4116
SELECT DISTINCT - COUNT ( * ) AS col2, 5 AS col0 FROM tab1
----
-3
5

query I rowsort
SELECT + ( col1 ) * - - col0 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT + 3 DIV COUNT( * ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4118
SELECT + 3 / COUNT ( * ) col2 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * - 8 + - ( - 93 ) * - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 63 AS col0, col2 + col1 AS col0 FROM tab0 AS cor0
----
-63
100
-63
128
-63
31

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= 8
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / + + ( + + ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 + + 83 AS col0 FROM tab1 AS cor0
----
176

query I rowsort
SELECT DISTINCT 33 FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * - 45 ) BETWEEN + col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT - 19 * MIN( - col0 ) AS col0 FROM tab0
----
1843

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - 19 * MIN ( - col0 ) AS col0 FROM tab0
----
1843

query I rowsort
SELECT col1 + - 64 AS col2 FROM tab0
----
-43
-63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + MIN( col0 ) + 28 AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + MIN ( col0 ) + 28 AS col2 FROM tab2
----
74

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + col1 NOT BETWEEN - ( - col1 ) AND col2
----
-51
-85
-91

query I rowsort
SELECT 72 * col1 AS col2 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT - 48 + + col1 * + col2 FROM tab2
----
1125
3032
3838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT col0 AS col0 FROM tab1 WHERE NOT 65 BETWEEN ( 60 + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4133
SELECT col0 AS col0 FROM tab1 WHERE NOT 65 BETWEEN ( 60 + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT + 24 + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + 24 + COUNT ( * ) FROM tab0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + 59 FROM tab0
----
-22
38
58

query III rowsort
SELECT * FROM tab0 WHERE 71 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT IN ( + ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + 49 FROM tab0
----
-32
28
48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + ( - col2 - col2 ) * + 46 ) > - col2 * + col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col2 <> ( col0 ) / 13
----

query I rowsort
SELECT DISTINCT col2 + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 35 - 40 * 22 AS col1 FROM tab2
----
-2490
-3120
-3505

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT col0 DIV + ( + col2 ) col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4145
SELECT col0 / + ( + col2 ) col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( 12 ) NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT 73 DIV 54 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT 73 / 54 FROM tab2
----
1
1
1

query I rowsort
SELECT ( 10 ) + 41 AS col2 FROM tab1
----
51
51
51

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col0 IN ( - col2 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab1 WHERE ( NULL ) IN ( + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT COUNT( * ) + + 18 AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( * ) + + 18 AS col2 FROM tab1
----
21

query I rowsort
SELECT + col2 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT ALL + ( + 92 ) * col0 + + col2 FROM tab0 AS cor0
----
1427
8014
9023

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( * ) + 4 AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( * ) + 4 AS col0 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL 15 * MAX( - 56 ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL 15 * MAX ( - 56 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL 60 - CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 60 - CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + 15 - + COUNT( DISTINCT + ( col2 ) + col2 ) * 58 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + 15 - + COUNT ( DISTINCT + ( col2 ) + col2 ) * 58 FROM tab1 AS cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL 87 - CAST( 47 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 87 - CAST ( 47 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4159
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) >= ( 85 )
----

skipif mysql # not compatible
query III rowsort label-4159
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) >= ( 85 )
----

query I rowsort
SELECT ALL + 32 * col2 FROM tab2
----
1280
1856
736

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 40
----

query I rowsort
SELECT 0 * 66 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 58 * + col1 AS col1 FROM tab0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT COUNT( DISTINCT 82 ) * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT COUNT ( DISTINCT 82 ) * COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT 49 * + 76 FROM tab0
----
3724
3724
3724

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT col0 DIV + 82 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT col0 / + 82 FROM tab1 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE ( + 81 ) IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE ( + 81 ) IN ( + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * - 4 col0 FROM tab1 AS cor0
----
-144

query I rowsort
SELECT 89 * + - col2 AS col1 FROM tab1
----
-5251
-6052
-8544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT COUNT( * ) * - 38 AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4172
SELECT COUNT ( * ) * - 38 AS col2 FROM tab2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT ( + - col2 ) DIV col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT ( + - col2 ) / col1 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( - col1 * col2 ) AND - 58 + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT COUNT( * ) * COUNT( + 4 ) + - COUNT( * ) FROM tab2 WHERE NOT + col1 + col2 IN ( col1 )
----
6

skipif mysql # not compatible
query I rowsort label-4175
SELECT COUNT ( * ) * COUNT ( + 4 ) + - COUNT ( * ) FROM tab2 WHERE NOT + col1 + col2 IN ( col1 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ( col1 ) FROM tab0 WHERE NOT ( col0 * CAST( + 96 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( col1 ) FROM tab0 WHERE NOT ( col0 * CAST ( + 96 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT + 70 DIV - COUNT( * ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + 70 / - COUNT ( * ) FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT SUM( - - 65 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4181
SELECT DISTINCT SUM ( - - 65 ) col0 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 80 - ( + col1 ) / + col1 ) < ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + + MAX( ALL + 6 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-4183
SELECT + + MAX ( ALL + 6 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT DISTINCT - CAST( 61 AS SIGNED ) * - col2 FROM tab1
----
3599
4148
5856

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - CAST ( 61 AS INTEGER ) * - col2 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT SUM( 17 ) AS col1 FROM tab2, tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4185
SELECT SUM ( 17 ) AS col1 FROM tab2, tab1 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - col1 * - + col0 * + CAST( col1 AS SIGNED ) + 10 col2 FROM tab0
----
107
38377
98425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4186
SELECT DISTINCT - col1 * - + col0 * + CAST ( col1 AS INTEGER ) + 10 col2 FROM tab0
----
107
38377
98425

query I rowsort
SELECT DISTINCT + col0 + 1 + col1 AS col2 FROM tab2
----
142
143
98

query II rowsort
SELECT ALL - col1 AS col2, 16 FROM tab0 AS cor0
----
-1
16
-21
16
-81
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT + ( + ( - COUNT( DISTINCT 18 ) ) ) + CAST( - ( AVG ( col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4189
SELECT + ( + ( - COUNT ( DISTINCT 18 ) ) ) + CAST ( - ( AVG ( col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 * + col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL - ( + 99 ) AS col2 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + col0 * + col2 + col2 * + col2 + - 3 AS col0 FROM tab2 AS cor0
----
1584
4157
7711

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + - MAX( 74 ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + - MAX ( 74 ) AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - + ( col2 ) NOT IN ( 65 )
----

query I rowsort
SELECT DISTINCT - 20 + + col2 FROM tab2
----
20
3
38

query I rowsort
SELECT + col0 + - + 34 AS col2 FROM tab1
----
17
51
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL SUM( ALL ( - + col1 ) ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL SUM ( ALL ( - + col1 ) ) AS col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col2 NOT BETWEEN - - col2 AND col2 + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col2 NOT BETWEEN - - col2 AND col2 + - col1
----
-3

query I rowsort
SELECT ALL - col0 + + - col2 AS col2 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 10 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL - MAX( - col1 ) FROM tab0 WHERE NULL BETWEEN 53 AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - MAX ( - col1 ) FROM tab0 WHERE NULL BETWEEN 53 AND - col1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 - - col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + + 38 * col2 FROM tab0 AS cor0
----
1786
3762
380

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL 70 * + COUNT( * ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL 70 * + COUNT ( * ) FROM tab2
----
210

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - + col2 + + col2 BETWEEN 69 * - col1 AND + 6 + - 26
----
10
47
99

query I rowsort
SELECT + ( + 14 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT ALL + col0, - col1 AS col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 / + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 20 ) AS col1 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 * col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT DISTINCT CAST( + 63 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT CAST ( + 63 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col1, ( 19 ) FROM tab1 AS cor0
----
57
19
57
19
57
19

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - 92 + + 51 + 90 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT DISTINCT col2 DIV - + 11 FROM tab1
----
-5
-6
-8

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT col2 / - + 11 FROM tab1
----
-5
-6
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT + - col0 col0 FROM tab0 WHERE NOT NULL > + - CAST( - 5 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4218
SELECT + - col0 col0 FROM tab0 WHERE NOT NULL > + - CAST ( - 5 AS INTEGER )
----

query I rowsort
SELECT ALL + 9 * + col1 + - + col2 FROM tab1
----
-14
30
355

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <= ( + 27 + - + col1 )
----

query I rowsort
SELECT ALL + 75 + - ( + 85 ) FROM tab0
----
-10
-10
-10

query I rowsort
SELECT 7 * col0 * - - col0 * + 29 AS col2 FROM tab2
----
1141875
429548
831488

query I rowsort
SELECT + 88 * - - col2 AS col1 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4224
SELECT - CAST( NULL AS SIGNED ) AS col2, col0 + - + col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4224
SELECT - CAST ( NULL AS INTEGER ) AS col2, col0 + - + col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT ALL + 70 DIV col0 * col2 FROM tab0
----
0
0
188

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 70 / col0 * col2 FROM tab0
----
0
0
188

query II rowsort
SELECT ALL col1 + + col1, - 72 * col2 AS col2 FROM tab2 AS cor0
----
102
-1656
134
-4176
154
-2880

query I rowsort
SELECT ALL + col1 * col1 * - - col0 * 63 AS col0 FROM tab1 cor0
----
12664197
133875
629748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL CAST( NULL AS SIGNED ) * + ( col2 ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL CAST ( NULL AS INTEGER ) * + ( col2 ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) - 4 FROM tab1 AS cor0
----
47
81
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT ALL col0 DIV col1 col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT ALL col0 / col1 col0 FROM tab0
----
0
4
97

query III rowsort
SELECT * FROM tab2 WHERE + 78 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 28 - + 53 * 6 * + col1 * + col2 + + 53 FROM tab1
----
-1016247
-427311
-93729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT COUNT( + col1 ) - - + SUM( 90 ) DIV + SUM( + + col0 ) + + 37 AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4233
SELECT COUNT ( + col1 ) - - + SUM ( 90 ) / + SUM ( + + col0 ) + + 37 AS col1 FROM tab2
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( 62 ) > ( col2 / + + col0 )
----

query II rowsort
SELECT DISTINCT + 21, - col0 AS col2 FROM tab2
----
21
-46
21
-64
21
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT 12 * - 93 + - col0 + + col2 * + - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4236
SELECT 12 * - 93 + - col0 + + col2 * + - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4237
SELECT + CAST( + - 99 AS SIGNED ) DIV + - MIN( - col2 ) + MIN( ALL col2 ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4237
SELECT + CAST ( + - 99 AS INTEGER ) / + - MIN ( - col2 ) + MIN ( ALL col2 ) AS col1 FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT + col2 DIV + - 84 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4238
SELECT + col2 / + - 84 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT MAX( ALL col2 ) + - - 96 col1 FROM tab0 WHERE NOT + col1 IS NULL
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT MAX ( ALL col2 ) + - - 96 col1 FROM tab0 WHERE NOT + col1 IS NULL
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 79 ) col1 FROM tab1 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT 11 AS col1 FROM tab1 cor0 WHERE NOT ( col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4242
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ), - col2, - ( - 46 ) )
----

skipif mysql # not compatible
query III rowsort label-4242
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ), - col2, - ( - 46 ) )
----

query I rowsort
SELECT DISTINCT + + 66 AS col1 FROM tab2 AS cor0 WHERE col0 * + + 7 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT COUNT( DISTINCT CAST( - - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( DISTINCT CAST ( - - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 76 + - col1 * - + col1 FROM tab0 AS cor0
----
517
6637
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + ( - MAX( col1 ) ) * - 63 FROM tab2
----
4851

skipif mysql # not compatible
query I rowsort label-4246
SELECT + ( - MAX ( col1 ) ) * - 63 FROM tab2
----
4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col0 col0 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT 68 + - 14 FROM tab0
----
54
54
54

query I rowsort
SELECT 76 + + 69 FROM tab1
----
145
145
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT 32 * + MAX( DISTINCT - + col0 ) + - 54 col2 FROM tab1 AS cor0
----
-1686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT DISTINCT 32 * + MAX ( DISTINCT - + col0 ) + - 54 col2 FROM tab1 AS cor0
----
-1686

query I rowsort
SELECT + ( - 85 ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT ALL - 53 DIV - 52 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 53 / - 52 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + 28, + col1 AS col0 FROM tab1
----
28
14
28
47
28
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL 52 + - MIN( ALL - col0 ) FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL 52 + - MIN ( ALL - col0 ) FROM tab2
----
127

query I rowsort
SELECT DISTINCT ( - - 17 ) * ( - + col0 ) + - col2 AS col0 FROM tab1
----
-1504
-1615
-963

query II rowsort
SELECT + col2 - - - ( col2 ) + + 69, - col0 AS col1 FROM tab2
----
69
-46
69
-64
69
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL CAST( NULL AS SIGNED ) - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL CAST ( NULL AS INTEGER ) - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34, + 22 col2 FROM tab1 AS cor0
----
34
22

query I rowsort
SELECT DISTINCT - col0 - + col2 + + col1 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT + col1 * - 9 + col0 + col0 FROM tab0 AS cor0
----
-15
-699
185

query I rowsort
SELECT + col1 + 69 FROM tab1 cor0
----
116
74
83

query I rowsort
SELECT col1 * + + col0 * + - 14 AS col2 FROM tab0
----
-1358
-17010
-25578

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL - 25 + - 93 * - COUNT( * ) col0 FROM tab1
----
254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4264
SELECT ALL - 25 + - 93 * - COUNT ( * ) col0 FROM tab1
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT ALL + COUNT( * ) DIV - + 15 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + COUNT ( * ) / - + 15 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL COUNT( DISTINCT - + 64 ) FROM tab0, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL COUNT ( DISTINCT - + 64 ) FROM tab0, tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT + 32 + - + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + 32 + - + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT + + col0 DIV - + 32 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT + + col0 / - + 32 AS col2 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ALL + 6 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

query II rowsort
SELECT ALL 62, col0 + + col0 AS col0 FROM tab2 cor0
----
62
128
62
150
62
92

query I rowsort
SELECT - col0 + col2 * 79 + - + ( - col1 ) + - - col0 AS col0 FROM tab0 AS cor0
----
3794
7822
811

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL - MIN( - - col0 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - MIN ( - - col0 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2, col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + COUNT( ALL + 29 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + COUNT ( ALL + 29 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 6 * + 2 col0 FROM tab1 cor0 WHERE NOT ( NOT + - 89 * - + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - MAX( - + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - MAX ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + - col1 col2 FROM tab0 AS cor0 WHERE NOT ( - col0 NOT BETWEEN col1 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - + MAX( + - col1 ) FROM tab2 WHERE NOT - 40 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-4278
SELECT - + MAX ( + - col1 ) FROM tab2 WHERE NOT - 40 IS NULL
----
51

query I rowsort
SELECT col0 + - 63 FROM tab1 WHERE + 17 * col2 + - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT - ( + COUNT( * ) ) + + + SUM( ALL + + col0 ) * MIN( DISTINCT + ( + 45 ) ) FROM tab1
----
10212

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - ( + COUNT ( * ) ) + + + SUM ( ALL + + col0 ) * MIN ( DISTINCT + ( + 45 ) ) FROM tab1
----
10212

query I rowsort
SELECT - 49 * + col2 * + 1 FROM tab0
----
-2303
-4851
-490

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 20 * + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4284
SELECT ALL + + col1 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + + col1 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + + COUNT( DISTINCT - 11 ) * 3 AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + + COUNT ( DISTINCT - 11 ) * 3 AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT + col2 DIV - col2 + + col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + col2 / - col2 + + col2 FROM tab0
----
46
9
98

query II rowsort
SELECT col2 AS col2, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT - + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL COUNT( * ) - - COUNT( * ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4291
SELECT ALL COUNT ( * ) - - COUNT ( * ) col2 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 16 NOT BETWEEN NULL AND - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4293
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4293
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 21 - col2 FROM tab2 AS cor0
----
-44
-61
-79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - ( col2 ) <> NULL
----

query I rowsort
SELECT col0 * + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + + + 95 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + + col2 <= + - col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT col0 * + CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4300
SELECT col0 * + CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT SUM( + CAST( col2 AS SIGNED ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4301
SELECT SUM ( + CAST ( col2 AS INTEGER ) ) FROM tab2
----
121

query I rowsort
SELECT ALL - col1 * + 2 FROM tab2
----
-102
-134
-154

query II rowsort
SELECT col0 * - ( 80 ), 74 AS col1 FROM tab1
----
-4080
74
-6800
74
-7280
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL - COUNT( - 19 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - COUNT ( - 19 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - + 27 AS col1 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT - 59 + - - col0 AS col0 FROM tab0
----
-44
28
38

query II rowsort
SELECT DISTINCT ( + - ( - 67 ) ) + + col0, col2 * - 90 AS col1 FROM tab1
----
118
-8640
152
-5310
158
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT col2 DIV - col1 + + 9 DIV + col1 AS col1 FROM tab1
----
-1
-10
-6

skipif mysql # not compatible
query I rowsort label-4310
SELECT col2 / - col1 + + 9 / + col1 AS col1 FROM tab1
----
-1
-10
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL 82 * + - col0 + CAST( - col2 AS SIGNED ) FROM tab2
----
-3795
-5288
-6208

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL 82 * + - col0 + CAST ( - col2 AS INTEGER ) FROM tab2
----
-3795
-5288
-6208

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE - col2 BETWEEN + col2 AND + 77 * - - col2 * col1 + col1
----

query I rowsort
SELECT ALL col0 + - 85 FROM tab0
----
-70
12
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 + col2 col0 FROM tab2
----
103
68
85

query I rowsort
SELECT DISTINCT + ( + - 37 ) AS col0 FROM tab0 AS cor0
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col2, - col1 * + col2 AS col1 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT ALL - - 95 * - - 15 FROM tab0 AS cor0
----
1425
1425
1425

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + 70 * - 63
----

query III rowsort
SELECT * FROM tab1 WHERE - 45 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT ALL - 8 DIV - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - 8 / - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - + COUNT( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4324
SELECT - + COUNT ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 26 AS col2 FROM tab0 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( - - 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 35 * + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-3066
-3396
-606

query I rowsort
SELECT DISTINCT - + 9 AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 95 * - 8 AS col0 FROM tab1 AS cor0
----
760

query I rowsort
SELECT + col0 * col0 * 73 * + col2 AS col0 FROM tab0
----
5525370
67998843
771975

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT ALL + 95 + - COUNT( * ), SUM( ALL + col0 ) AS col0 FROM tab1 WHERE NOT - col2 < NULL
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL + 95 + - COUNT ( * ), SUM ( ALL + col0 ) AS col0 FROM tab1 WHERE NOT - col2 < NULL
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - MIN( ALL + + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4332
SELECT - MIN ( ALL + + col1 ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 * - col0 AND - col0 / col2
----

query I rowsort
SELECT ALL - col1 * ( + col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * + - 76 col2 FROM tab2
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + + SUM( 55 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4336
SELECT + + SUM ( 55 ) FROM tab1 AS cor0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT 30 * - COUNT( * ) + CAST( + ( - ( 2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4337
SELECT 30 * - COUNT ( * ) + CAST ( + ( - ( 2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 14 col2 FROM tab0 AS cor0
----
-10
-14
-47
-14
-99
-14

query I rowsort
SELECT - 39 * - - ( + + col2 ) * col1 + col0 * + col1 FROM tab2 AS cor0
----
-115192
-146529
-43401

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT - COUNT( * ) * 9 + - 84 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - COUNT ( * ) * 9 + - 84 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT - col1 + - 90 + col1 FROM tab1 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 98 ) col2, - ( - + col0 ) FROM tab0 AS cor0 WHERE NOT 35 IS NULL
----
98
15
98
87
98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT - SUM( ALL + ( - + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT - SUM ( ALL + ( - + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT ALL 33, - ( + + col1 ) AS col1 FROM tab2 cor0
----
33
-51
33
-67
33
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 66 * + 11 + col0 <= + + 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 36 + - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - col0 - 32 AS col0 FROM tab0
----
-257
-7601
-9441

query I rowsort
SELECT + col0 * ( - col0 ) - - 82 * - 5 FROM tab1
----
-3011
-7635
-8691

query I rowsort
SELECT ALL + - 11 - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-108
-26
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + SUM( + + 87 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
783

skipif mysql # not compatible
query I rowsort label-4351
SELECT + SUM ( + + 87 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
783

query II rowsort
SELECT DISTINCT 18, + col2 AS col1 FROM tab2 cor0
----
18
23
18
40
18
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT SUM( DISTINCT + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4354
SELECT SUM ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - 77 * - - col0 FROM tab0 AS cor0
----
-1155
-6699
-7469

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4357
SELECT - 63 * + CAST( NULL AS SIGNED ) AS col0, ( - - 74 ) * ( - - 83 ) AS col1 FROM tab1
----
NULL
6142
NULL
6142
NULL
6142

skipif mysql # not compatible
query II rowsort label-4357
SELECT - 63 * + CAST ( NULL AS INTEGER ) AS col0, ( - - 74 ) * ( - - 83 ) AS col1 FROM tab1
----
NULL
6142
NULL
6142
NULL
6142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT - MIN( - - col1 ) * + 9 AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT - MIN ( - - col1 ) * + 9 AS col2 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4360
SELECT - + COUNT( * ) AS col2, 86 AS col1 FROM tab2 WHERE NOT ( ( NULL ) > NULL )
----
0
86

skipif mysql # not compatible
query II rowsort label-4360
SELECT - + COUNT ( * ) AS col2, 86 AS col1 FROM tab2 WHERE NOT ( ( NULL ) > NULL )
----
0
86

query I rowsort
SELECT DISTINCT 49 * - col0 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 53 * - 68 col0, + 76 * - col2 AS col2 FROM tab1 AS cor0
----
3604
-4484
3604
-5168
3604
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col0 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) * - 57 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) * - 57 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 48 + + col0 FROM tab0
----
135
145
63

query I rowsort
SELECT DISTINCT 33 + - + col0 AS col0 FROM tab2
----
-13
-31
-42

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 12 + + 42 FROM tab2 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
3

query I rowsort
SELECT ALL - col2 * 22 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1593
-3456
-4692

query I rowsort
SELECT - col0 + + + col0 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 45 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT + + col2 + + 60 + 69 AS col0 FROM tab1 AS cor0
----
188
197
225

query I rowsort
SELECT - 54 + - - 13 * + col2 * + col1 FROM tab0
----
1233
2676
49437

query I rowsort
SELECT DISTINCT col1 + col0 + - 82 FROM tab1
----
-17
56
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT DISTINCT - col1 DIV - + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - col1 / - + col0 FROM tab1
----
0

query I rowsort
SELECT ALL ( + 58 ) + - - 40 AS col1 FROM tab2
----
98
98
98

query I rowsort
SELECT - 88 AS col0 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN ( col2 ) * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT COUNT( * ) * + COUNT( * ) + - 85 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) * + COUNT ( * ) + - 85 FROM tab0
----
-76

query I rowsort
SELECT DISTINCT 67 + - 90 FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL - CAST( MAX( DISTINCT - col0 ) AS SIGNED ) - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - CAST ( MAX ( DISTINCT - col0 ) AS INTEGER ) - COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT 0 * - + col1 + + 4 AS col1 FROM tab1
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - - 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4388
SELECT + + COUNT( * ), SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4388
SELECT + + COUNT ( * ), SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT ( col1 ) - col0 AS col2 FROM tab2 cor0
----
-8
13
5

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col0, col1 FROM tab2
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 + - - 58 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - + ( + ( - + 63 ) ) AS col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT - + col0 * 87 + - + 96 + + 97 AS col0 FROM tab0 AS cor0
----
-1304
-7568
-8438

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - + 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 89 col0 FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 * - col2 * col2 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # DIV for integer division: 
query II rowsort label-4399
SELECT ALL col0 AS col1, col1 + - - col1 DIV - ( + col1 ) AS col2 FROM tab0
----
15
80
87
20
97
0

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL col0 AS col1, col1 + - - col1 / - ( + col1 ) AS col2 FROM tab0
----
15
80
87
20
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL SUM( ALL - 90 ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL SUM ( ALL - 90 ) FROM tab1
----
-270

query II rowsort
SELECT ( + - col0 ) * - col1 AS col0, - col2 * + col1 * - ( + 38 ) FROM tab0
----
1215
144666
1827
7980
97
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, ( + 10 ) col1 FROM tab0
----
-15
10
-87
10
-97
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT DISTINCT + 88 AS col2, MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
88
-91

skipif mysql # not compatible
query II rowsort label-4404
SELECT DISTINCT + 88 AS col2, MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
88
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT - + col0 * + 16 / - CAST( NULL AS SIGNED ) / - 36 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT - + col0 * + 16 / - CAST ( NULL AS INTEGER ) / - 36 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 60
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * col0 + col1 col2 FROM tab0 AS cor0
----
2109
2329
441

query II rowsort
SELECT + col0 + - col0 AS col0, col1 AS col2 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + COUNT( * ) + - COUNT( * ) * + + COUNT( ALL col1 ) + + MAX( + col0 ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-4410
SELECT + COUNT ( * ) + - COUNT ( * ) * + + COUNT ( ALL col1 ) + + MAX ( + col0 ) FROM tab2 cor0
----
69

query I rowsort
SELECT - 80 * 22 AS col0 FROM tab0 AS cor0
----
-1760
-1760
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL + - col1 DIV col1 * col1 * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + - col1 / col1 * col1 * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 92 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - 81 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL > col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT col2 * + + CAST( NULL AS SIGNED ) - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT col2 * + + CAST ( NULL AS INTEGER ) - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4417
SELECT * FROM tab0 WHERE - 15 IN ( - col1 + - - 85 - col0 * - + col2, col0, + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4417
SELECT * FROM tab0 WHERE - 15 IN ( - col1 + - - 85 - col0 * - + col2, col0, + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT 81 - col2 + + + 54 * col0 * - - 64 FROM tab0
----
300743
335214
51874

query II rowsort
SELECT + 96 - + + 85 + col0, + 61 AS col1 FROM tab2
----
57
61
75
61
86
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT - col1 * CAST( + ( - col2 ) AS SIGNED ) - + - col1 AS col0 FROM tab2
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-4420
SELECT - col1 * CAST ( + ( - col2 ) AS INTEGER ) - + - col1 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + COUNT( * ) - + 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4421
SELECT + COUNT ( * ) - + 47 FROM tab0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + + - col0 col2 FROM tab0
----
-65
-75
7

query I rowsort
SELECT ALL + col0 + + + 16 FROM tab0
----
103
113
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 31 + col0 FROM tab1 AS cor0
----
20
54
60

query I rowsort
SELECT - col2 + 40 + 31 + + 42 FROM tab1 AS cor0
----
17
45
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT ALL - + COUNT( * ) DIV 28 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - + COUNT ( * ) / 28 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( 38 ) * + 71 / + col0 * + 72
----

query I rowsort
SELECT ALL + - 39 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - col1 * + 34 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT ALL + 17 AS col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
17
17
17

query I rowsort
SELECT + 69 * - col1 AS col1 FROM tab2
----
-3519
-4623
-5313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - 36 col1 FROM tab0
----
-10
-36
-47
-36
-99
-36

query I rowsort
SELECT 0 * col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL >= + col1 * + 49 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 * + - col0 * - - 23 FROM tab1 AS cor0
----
-166175
-190463
-59823

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - 49 ) ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col0 + + - col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT MAX( ALL 74 ) AS col0, 16 FROM tab2
----
74
16

skipif mysql # not compatible
query II rowsort label-4442
SELECT MAX ( ALL 74 ) AS col0, 16 FROM tab2
----
74
16

query I rowsort
SELECT ( ( + col0 ) ) + + 81 * col1 * - - 96 * - ( - 44 ) FROM tab2
----
17449390
22923723
26345152

query I rowsort
SELECT ALL + col2 * col1 * + - col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT COUNT( * ) + 84 FROM tab2 WHERE NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT COUNT ( * ) + 84 FROM tab2 WHERE NULL IS NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT 55 + - SUM( col0 ) FROM tab2
----
-130

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT 55 + - SUM ( col0 ) FROM tab2
----
-130

query I rowsort
SELECT DISTINCT col2 + - - col0 + - ( + col1 ) * col0 AS col2 FROM tab2
----
-2277
-4824
-4892

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT DISTINCT - MAX( DISTINCT col0 ), COUNT( * ) col0 FROM tab1
----
-91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4448
SELECT DISTINCT - MAX ( DISTINCT col0 ), COUNT ( * ) col0 FROM tab1
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT + 78 * - + MAX( - 81 ) AS col2 FROM tab2 AS cor0
----
6318

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + 78 * - + MAX ( - 81 ) AS col2 FROM tab2 AS cor0
----
6318

query I rowsort
SELECT ALL - 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT + + 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL col0 / - 54 + + 29 FROM tab0 WHERE col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4453
SELECT + 44 + - col1 * - CAST( NULL AS DECIMAL ) AS col1, CAST( NULL AS SIGNED ) * + 61 * - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4453
SELECT + 44 + - col1 * - CAST ( NULL AS REAL ) AS col1, CAST ( NULL AS INTEGER ) * + 61 * - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - col1 + - + col0 * col1 FROM tab1 AS cor0
----
-345
-4233
-677

query I rowsort
SELECT 33 + col2 FROM tab2 AS cor0
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT MAX( + 38 ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT MAX ( + 38 ) AS col0 FROM tab1 AS cor0
----
38

query I rowsort
SELECT + col0 + + col0 + + col0 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT - ( col0 ) * col1 + - - col2 - + col2 AS col2 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 WHERE + + 19 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT col1 DIV - - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT col1 / - - col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT COUNT( * ) DIV + 18 * + + ( - 27 ) * + COUNT( ALL + col1 ) + + COUNT( * ) + + + 72 AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4461
SELECT COUNT ( * ) / + 18 * + + ( - 27 ) * + COUNT ( ALL + col1 ) + + COUNT ( * ) + + + 72 AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + 3 AS col0, col0 * ( col2 ) col1 FROM tab1
----
62
5015
71
6188
99
4896

query I rowsort
SELECT DISTINCT col0 * 21 * + - col0 FROM tab2
----
-118125
-44436
-86016

query I rowsort
SELECT DISTINCT + col0 - 13 FROM tab0
----
2
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL 59 + - MAX( DISTINCT 34 ) col2 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4465
SELECT ALL 59 + - MAX ( DISTINCT 34 ) col2 FROM tab1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + 23 AS col1 FROM tab0
----
-1863
-23
-483

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + 23 AS col1 FROM tab0
----
-1863
-23
-483

query I rowsort
SELECT - 47 * - 89 AS col0 FROM tab2
----
4183
4183
4183

query I rowsort
SELECT ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4469
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 86 + + col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4469
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 86 + + col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT ALL 99 * - - COUNT( DISTINCT + 35 ) * - COUNT( * ) AS col2, - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-297
195

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL 99 * - - COUNT ( DISTINCT + 35 ) * - COUNT ( * ) AS col2, - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-297
195

query I rowsort
SELECT - 84 AS col2 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT 8 * - CAST( ( + col2 ) AS SIGNED ) + - + col0 * + 42 AS col1 FROM tab0 cor0
----
-1006
-3734
-4866

skipif mysql # not compatible
query I rowsort label-4473
SELECT 8 * - CAST ( ( + col2 ) AS INTEGER ) + - + col0 * + 42 AS col1 FROM tab0 cor0
----
-1006
-3734
-4866

query I rowsort
SELECT col1 * - - 63 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT DISTINCT - col2 * 70 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1, col0 * col2 * + col2, - 72 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL 93 + - - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT ALL 93 + - - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
96

query I rowsort
SELECT + ( + - 8 ) FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 82 + 49 FROM tab0, tab0 AS cor0
----
131

query I rowsort
SELECT DISTINCT 19 + - + ( - 61 ) FROM tab1
----
80

query II rowsort
SELECT ALL col1, ( col0 ) FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL + col1 + col0 + - + col2 AS col1 FROM tab0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT - CAST( - ( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - CAST ( - ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col0 FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL - + ( + 23 ) AS col0 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 97 FROM tab0 WHERE NULL IS NULL
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col2 * - col2 / - 93
----

query II rowsort
SELECT 25 + + + col1, col1 FROM tab2
----
102
77
76
51
92
67

query II rowsort
SELECT ALL + col0 + + col0, + col1 AS col0 FROM tab0 AS cor0
----
174
21
194
1
30
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - SUM( + 73 ) AS col2 FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4489
SELECT - SUM ( + 73 ) AS col2 FROM tab1 cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL + CAST( NULL AS SIGNED ) + - - 60 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 60 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4491
SELECT ALL + CAST( col2 AS SIGNED ) AS col0, col2 FROM tab1 cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - - 51 - - col2 + + 14 AS col0 FROM tab1 AS cor0
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL + + MAX( ALL - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + + MAX ( ALL - col1 ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - CAST( NULL AS SIGNED ) - + AVG ( + col1 ) * + - 71 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4494
SELECT - CAST ( NULL AS INTEGER ) - + AVG ( + col1 ) * + - 71 col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND col2 * + 85 - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL 12 * + CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL 12 * + CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT + 91 - + - 40 + - 95 FROM tab2
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT - col2 * + + 63 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT + 89 DIV - - 37 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 89 / - - 37 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + SUM( ALL + - 95 ) AS col1 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-4501
SELECT + SUM ( ALL + - 95 ) AS col1 FROM tab2
----
-285

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * + 4 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - 97 AS col0 FROM tab0
----
1
-97
21
-97
81
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT - COUNT( * ) + ( - + CAST( - 74 AS SIGNED ) ) FROM tab0 WHERE NOT NULL NOT IN ( - 38, - col0, col2 )
----
74

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - COUNT ( * ) + ( - + CAST ( - 74 AS INTEGER ) ) FROM tab0 WHERE NOT NULL NOT IN ( - 38, - col0, col2 )
----
74

query I rowsort
SELECT + col0 * 42 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + + col2 * + - col1 IS NOT NULL
----

query II rowsort
SELECT - col2 * + col1 * - col0, 61 AS col1 FROM tab2
----
197120
61
291450
61
53958
61

query I rowsort
SELECT + ( + 19 ) - - 57 + + col1 + ( col2 ) * + + col1 AS col0 FROM tab0 WHERE NOT - col2 * + + col2 + - ( - col2 ) / + col1 / - - col1 IS NULL
----
176
307
3964

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT + COUNT( * ) * - MAX( ALL + 87 ) AS col0 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + COUNT ( * ) * - MAX ( ALL + 87 ) AS col0 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT - - col2 FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + 19 * + - COUNT( 43 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-171

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 19 * + - COUNT ( 43 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-171

query II rowsort
SELECT + col2 * 80 AS col2, col0 FROM tab0
----
3760
15
7920
97
800
87

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( + 82 < + col0 )
----
-23
-40
-58

query II rowsort
SELECT ALL + - ( - col2 ) AS col0, 6 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 * - 78 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) - - + 63 * 39 * + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - col1 * - - 15 + - col1 FROM tab2
----
-1014
-1192
-793

query I rowsort
SELECT + col2 + + + 15 + - col2 AS col0 FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 WHERE 35 IS NULL
----

query I rowsort
SELECT - col1 + - col1 + + 18 * - + col2 AS col0 FROM tab0
----
-1008
-1784
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT - MAX( DISTINCT 88 ) + - COUNT( * ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - MAX ( DISTINCT 88 ) + - COUNT ( * ) AS col1 FROM tab2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT - 75 + - - col2 DIV + col0 FROM tab1
----
-74
-75
-75

skipif mysql # not compatible
query I rowsort label-4525
SELECT - 75 + - - col2 / + col0 FROM tab1
----
-74
-75
-75

query I rowsort
SELECT DISTINCT col1 + col0 + + col2 + + 96 FROM tab2
----
216
277
296

query III rowsort
SELECT * FROM tab1 WHERE - - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - 59 AS col1 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - 59 - + - COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 59 - + - COUNT ( * ) FROM tab1
----
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col2
----

query I rowsort
SELECT DISTINCT col1 + + 78 AS col2 FROM tab2
----
129
145
155

query I rowsort
SELECT DISTINCT - - col2 - + col2 + + 88 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-45
23
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT - + SUM( col2 ) + - 5 + - 90 DIV ( + - 96 ) FROM tab0 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-4534
SELECT - + SUM ( col2 ) + - 5 + - 90 / ( + - 96 ) FROM tab0 AS cor0
----
-161

query I rowsort
SELECT - col1 + - + 70 * ( - 56 ) + + + col0 AS col2 FROM tab2 AS cor0
----
3907
3915
3928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT CAST( NULL AS SIGNED ) - + SUM( + ( 38 ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4536
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + SUM ( + ( 38 ) ) col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 93, col2 - - + col2 AS col2 FROM tab1 AS cor0
----
93
118
93
136
93
192

query II rowsort
SELECT - col2 + + 6 AS col1, + col0 FROM tab0 AS cor0
----
-4
87
-41
15
-93
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT + + 80 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + + 80 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + + 29 AS col2 FROM tab1 WHERE NOT - col2 <> + + col2 * - + col0 + col1 * - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + + 29 AS col2 FROM tab1 WHERE NOT - col2 <> + + col2 * - + col0 + col1 * - col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT MIN( ALL + + 2 ) FROM tab2, tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT MIN ( ALL + + 2 ) FROM tab2, tab2 cor0
----
2

query I rowsort
SELECT col0 + + 21 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
67
85
96

query I rowsort
SELECT DISTINCT + col2 + + - 26 AS col1 FROM tab2
----
-3
14
32

query I rowsort
SELECT DISTINCT ( + 39 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + + col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + + col0 + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 + - col0 + + ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-124
-60
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL - - AVG ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - - AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + + 6 - - col1 AS col0 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

query II rowsort
SELECT + + col0, 26 * + 22 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + 27 AS col1 FROM tab2 AS cor0
----
-1242
-1728
-2025

query I rowsort
SELECT ALL + col1 + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT DISTINCT + + COUNT( * ) AS col2, 93 AS col2 FROM tab0 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT + + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 AS cor0
----
3
93

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT ALL + col2 / + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + col2 / + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) + - ( col0 ) IS NULL
----

query II rowsort
SELECT - col2, - 27 * col0 FROM tab2 WHERE - 3 IS NULL
----

query I rowsort
SELECT ALL 39 + 41 * + col0 FROM tab2
----
1925
2663
3114

query I rowsort
SELECT 20 - - - col2 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT DISTINCT + col1 + - - col2 + - + col1 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - col0 + + - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-60
145
2118

query I rowsort
SELECT ALL + 41 * + 6 FROM tab2 AS cor0
----
246
246
246

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT 65 DIV - col2 AS col0 FROM tab2 WHERE + col2 IN ( - col0, + col2 + - col0 + + col0 DIV col1 * + col0, - col0 * + + col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-4564
SELECT 65 / - col2 AS col0 FROM tab2 WHERE + col2 IN ( - col0, + col2 + - col0 + + col0 / col1 * + col0, - col0 * + + col2 )
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 94 col0 FROM tab0
----
115
175
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4566
SELECT col0, - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4566
SELECT col0, - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + 66 - + col2 FROM tab2
----
26
43
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT + 8 AS col2, + MAX( ALL ( + 48 ) ) * - 34 FROM tab0 AS cor0
----
8
-1632

skipif mysql # not compatible
query II rowsort label-4568
SELECT + 8 AS col2, + MAX ( ALL ( + 48 ) ) * - 34 FROM tab0 AS cor0
----
8
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL - + 87 + + - COUNT( * ) col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4569
SELECT ALL - + 87 + + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-90

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT SUM( ALL + + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4571
SELECT SUM ( ALL + + col1 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col1 AS col0, 75 + col2 FROM tab1
----
14
171
47
143
5
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - MIN( + ( + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4573
SELECT - MIN ( + ( + col1 ) ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT ALL - 22 col0, col2 DIV + 38 FROM tab0
----
-22
0
-22
1
-22
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4574
SELECT ALL - 22 col0, col2 / + 38 FROM tab0
----
-22
0
-22
1
-22
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT 55 DIV 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT 55 / 85 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT 1 * - + COUNT( + 67 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4576
SELECT 1 * - + COUNT ( + 67 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 82 * col2 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-3854
-8118
-820

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT - + SUM( ALL 99 ) AS col0 FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - + SUM ( ALL 99 ) AS col0 FROM tab2 cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL CAST( + - col1 AS SIGNED ) * - + col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL CAST ( + - col1 AS INTEGER ) * - + col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT - ( 29 ), + col2 FROM tab2
----
-29
23
-29
40
-29
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT - COUNT( * ) * + + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-639

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - COUNT ( * ) * + + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-639

query I rowsort
SELECT ALL - + 52 * + col1 FROM tab1 AS cor0
----
-2444
-260
-728

query II rowsort
SELECT DISTINCT col1 * col2 AS col0, col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT - - col1 * + col0 - - - 23 + + 31 DIV + - 25 col1 FROM tab1 AS cor0
----
401
4253
690

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT - - col1 * + col0 - - - 23 + + 31 / + - 25 col1 FROM tab1 AS cor0
----
401
4253
690

query II rowsort
SELECT DISTINCT - + ( - 85 ) * - - 86 - - - ( col1 ), col2 FROM tab0 AS cor0
----
7229
47
7289
10
7309
99

query I rowsort
SELECT ALL + 49 * + col1 AS col2 FROM tab2 cor0
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0, - 57 * + + 65 - - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9
-3708

skipif mysql # not compatible
query II rowsort label-4588
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0, - 57 * + + 65 - - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9
-3708

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 37
----

query I rowsort
SELECT + 70 + + ( - 55 ) AS col0 FROM tab1
----
15
15
15

query I rowsort
SELECT - col2 * + + col2 + col1 * - - col0 AS col2 FROM tab0
----
-9704
-994
1727

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT DISTINCT - col2 DIV + - 31 + + 48 FROM tab1
----
49
50
51

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - col2 / + - 31 + + 48 FROM tab1
----
49
50
51

query I rowsort
SELECT ALL col1 - + - 75 FROM tab0
----
156
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + 91 col0 FROM tab1 cor0
----
-40
-6
0

query I rowsort
SELECT - 13 * - col0 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT - + 96 - + col2 FROM tab1 AS cor0
----
-155
-164
-192

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0 WHERE col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col2 * + col1 ) AND - col1 * ( + col2 * col2 ) + col1 * 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - COUNT( * ) + - COUNT( ALL col1 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - COUNT ( * ) + - COUNT ( ALL col1 ) AS col1 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL ( 72 ) + CAST( - col2 AS SIGNED ) * + col2 FROM tab1 WHERE NOT - col0 + 17 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL ( 72 ) + CAST ( - col2 AS INTEGER ) * + col2 FROM tab1 WHERE NOT - col0 + 17 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN col2 * - col2 AND col0 * + col1
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + col2 + + col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = 11
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = 11
----
0

query I rowsort
SELECT col0 + 26 FROM tab1
----
111
117
77

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT col1 + col2 DIV - col0 col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4609
SELECT col1 + col2 / - col0 col0 FROM tab1
----
13
47
5

query III rowsort
SELECT * FROM tab0 WHERE ( - 51 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col2 * col0 + + 67 FROM tab0
----
772
937
9670

query III rowsort
SELECT * FROM tab1 WHERE - 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * + 37 ) NOT BETWEEN ( NULL ) AND ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 - 32 FROM tab0
----
-113
-33
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - COUNT( * ) + + MIN( - 28 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - COUNT ( * ) + + MIN ( - 28 ) FROM tab1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT - CAST( col0 AS SIGNED ) * col1 + col0 FROM tab0
----
-1200
-1740
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT - CAST ( col0 AS INTEGER ) * col1 + col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT 94 DIV + COUNT( * ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN + col0 + 62 AND col2
----
31

skipif mysql # not compatible
query I rowsort label-4619
SELECT 94 / + COUNT ( * ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN + col0 + 62 AND col2
----
31

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( - 72 ) IS NULL
----
59
68
96

query I rowsort
SELECT - 44 AS col0 FROM tab0 WHERE NOT NULL >= col0 + - col0 * - 2
----

query I rowsort
SELECT DISTINCT - col0 * - 86 AS col1 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab1 cor0 WHERE NOT + 73 * 30 > - 46 * col1
----

query I rowsort
SELECT - 94 AS col2 FROM tab0 AS cor0 WHERE ( + 99 ) IS NOT NULL
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - col1 DIV ( - col0 DIV col2 ) FROM tab2 AS cor0
----
25
67
77

skipif mysql # not compatible
query I rowsort label-4625
SELECT - col1 / ( - col0 / col2 ) FROM tab2 AS cor0
----
25
67
77

query I rowsort
SELECT 11 * + ( - col2 ) AS col0 FROM tab0 cor0
----
-1089
-110
-517

query I rowsort
SELECT ALL 44 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = - 38
----

query I rowsort
SELECT 82 * col2 AS col0 FROM tab1 AS cor0
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT MAX( ALL + - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT MAX ( ALL + - 14 ) FROM tab1
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + col0 col0 FROM tab2 WHERE col0 + + 67 = NULL
----

query I rowsort
SELECT - col1 - + col2 + 83 * + col0 AS col0 FROM tab2
----
3744
5195
6100

query I rowsort
SELECT DISTINCT col1 + 49 AS col1 FROM tab0
----
130
50
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT CAST( + + 9 AS SIGNED ) - COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4633
SELECT CAST ( + + 9 AS INTEGER ) - COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT ALL col1 + + + 10 AS col0 FROM tab2
----
61
77
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL 93 * CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL 93 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT ALL + col1 - - - 80 DIV - 66 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + col1 - - - 80 / - 66 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT col1 / col0 AS col1 FROM tab0 WHERE - 97 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4638
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT + MAX( + CAST( + ( col0 ) AS SIGNED ) ) + 50 AS col0 FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4639
SELECT + MAX ( + CAST ( + ( col0 ) AS INTEGER ) ) + 50 AS col0 FROM tab2 AS cor0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT + 24 DIV - 82 - 40 AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + 24 / - 82 - 40 AS col2 FROM tab2 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 27 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 = ( 41 * 38 )
----

query I rowsort
SELECT DISTINCT - 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT + 70 DIV + ( col0 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4645
SELECT + 70 / + ( col0 ) FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT - 37 DIV 98 * - 16 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT - 37 / 98 * - 16 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + 34 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
121
131
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4648
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( 28 AS SIGNED ) BETWEEN col0 + col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4648
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( 28 AS INTEGER ) BETWEEN col0 + col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0 WHERE NOT + 98 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT COUNT( + 73 ) FROM tab1 AS cor0 WHERE NOT - col0 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4651
SELECT COUNT ( + 73 ) FROM tab1 AS cor0 WHERE NOT - col0 + col1 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col0 ) * - 95 + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - SUM( ( + + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - SUM ( ( + + col1 ) ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 < ( - + 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 33 + + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - + 72
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4656
SELECT + 17 * + col1 AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
238
NULL
799
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-4656
SELECT + 17 * + col1 AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
238
NULL
799
NULL
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT - 99 * + COUNT( * ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - 99 * + COUNT ( * ) AS col2 FROM tab2
----
-297

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + 81 ) FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT ALL - col1 + 58 + + 31 + - col1 * + col0 FROM tab1
----
-341
-4235
-639

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT ALL - 60 DIV - 28 AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - 60 / - 28 AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT 1 + + col1 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 WHERE NOT ( col0 + + + col0 + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 15 * col2 col2 FROM tab1 AS cor0
----
-1020
-1440
-885

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * - col1 ) >= ( + 78 * + col1 + col0 )
----

query I rowsort
SELECT 39 * - col2 AS col1 FROM tab2
----
-1560
-2262
-897

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN 63 + - ( - - 69 ) AND ( NULL )
----

query I rowsort
SELECT - col0 + 14 AS col1 FROM tab2 AS cor0
----
-32
-50
-61

query II rowsort
SELECT DISTINCT - + 90, col1 + + col1 AS col2 FROM tab2 AS cor0
----
-90
102
-90
134
-90
154

query I rowsort
SELECT + col0 + + 27 * - 67 * + - 66 FROM tab2 AS cor0
----
119440
119458
119469

query I rowsort
SELECT DISTINCT - + ( - 19 ) FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL COUNT( * ) * 82 FROM tab0 AS cor0 WHERE NOT ( 7 ) > ( + 13 * + col1 )
----
246

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL COUNT ( * ) * 82 FROM tab0 AS cor0 WHERE NOT ( 7 ) > ( + 13 * + col1 )
----
246

query I rowsort
SELECT DISTINCT 88 * col2 * - 27 AS col0 FROM tab2
----
-137808
-54648
-95040

query I rowsort
SELECT ALL 51 * + 68 + col1 FROM tab1
----
3473
3482
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 12 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 12 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT 68 - col1 + + col2 * + CAST( - ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-163
-32
-3820

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT 68 - col1 + + col2 * + CAST ( - ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-163
-32
-3820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL + + CAST( - 49 AS SIGNED ) FROM tab2 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + + CAST ( - 49 AS INTEGER ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT + ( - + CAST( - 97 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4679
SELECT + ( - + CAST ( - 97 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT col2 * + col0 + col1 + + col2 + 24 FROM tab2 AS cor0
----
1156
2701
4499

query II rowsort
SELECT - col2 AS col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - 62 * ( + 41 ) FROM tab2 AS cor0
----
-2542
-2542
-2542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT DISTINCT + 55 * - + MIN( ALL + - CAST( col0 AS SIGNED ) ) col0 FROM tab0
----
5335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4683
SELECT DISTINCT + 55 * - + MIN ( ALL + - CAST ( col0 AS INTEGER ) ) col0 FROM tab0
----
5335

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT - 29 DIV - + col1 AS col2 FROM tab1
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 29 / - + col1 AS col2 FROM tab1
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + - ( - - COUNT( DISTINCT 80 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT + - ( - - COUNT ( DISTINCT 80 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT + col0 DIV - 31 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT + col0 / - 31 AS col2 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - + 23 * col1 FROM tab0 AS cor0
----
-1863
-23
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL - COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT 0 * - - CAST( 92 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 0 * - - CAST ( 92 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT CAST( + 30 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4690
SELECT CAST ( + 30 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 20 col0 FROM tab1
----
51
20
85
20
91
20

query II rowsort
SELECT ALL 40 AS col0, 7 * + col2 AS col1 FROM tab2
----
40
161
40
280
40
406

query II rowsort
SELECT col2 AS col0, - col1 * - col2 AS col0 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT - ( - col2 ) * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 - 76 * 5 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT 55 * + COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-4696
SELECT 55 * + COUNT ( * ) FROM tab0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 60 * - col1 * + 10 + + 28 col1, col2 FROM tab2 AS cor0
----
30628
23
40228
58
46228
40

query I rowsort
SELECT + col2 * + - 60 AS col2 FROM tab0 cor0
----
-2820
-5940
-600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4699
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 > + - col0 / CAST( + col0 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-4699
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 > + - col0 / CAST ( + col0 AS INTEGER ) + col0 )
----

query I rowsort
SELECT DISTINCT 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70

query I rowsort
SELECT - 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT - 11 + + 3 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT DISTINCT MAX( - 99 ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-4703
SELECT DISTINCT MAX ( - 99 ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT 78 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 85 > NULL
----
78

skipif mysql # not compatible
query I rowsort label-4704
SELECT 78 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 85 > NULL
----
78

query I rowsort
SELECT DISTINCT - col1 * - 54 FROM tab1 AS cor0
----
2538
270
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE ( - - ( + - col1 ) + 13 * - + 58 / - col2 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT COUNT( col0 ) + - 73 DIV - 38 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT COUNT ( col0 ) + - 73 / - 38 FROM tab2
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT - - col1 < NULL
----

query I rowsort
SELECT - col1 + 66 AS col1 FROM tab1
----
19
52
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - MIN( 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4710
SELECT - MIN ( 92 ) FROM tab1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT ALL + CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col1 / + - 67 * col1 + - 19 IS NULL
----

query II rowsort
SELECT ALL - col2 * + col2 * col0 + col1 AS col1, col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-102323
-1600
-24283
-529
-252233
-3364

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col1 * + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 74 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4716
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 94 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4716
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 94 * + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - - ( col0 )
----

query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4720
SELECT + CAST( NULL AS SIGNED ) + + - 46, - col2 * col2 AS col1 FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

skipif mysql # not compatible
query II rowsort label-4720
SELECT + CAST ( NULL AS INTEGER ) + + - 46, - col2 * col2 AS col1 FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

query I rowsort
SELECT ALL - 72 * 34 AS col1 FROM tab2
----
-2448
-2448
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT 90 * - COUNT( ALL col0 ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 90 * - COUNT ( ALL col0 ) FROM tab2
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT 62 + + 82 * - MAX( DISTINCT + + 87 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT 62 + + 82 * - MAX ( DISTINCT + + 87 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4724
SELECT DISTINCT * FROM tab0 WHERE - CAST( 9 AS SIGNED ) IN ( + - col0 * col0 + + 31 + - + CAST( + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4724
SELECT DISTINCT * FROM tab0 WHERE - CAST ( 9 AS INTEGER ) IN ( + - col0 * col0 + + 31 + - + CAST ( + - col0 AS INTEGER ) )
----

query I rowsort
SELECT + col2 * - - ( - col0 ) + - 9 AS col0 FROM tab1
----
-4905
-5024
-6197

query I rowsort
SELECT ALL + ( - col2 ) * col2 * 4 AS col2 FROM tab2
----
-13456
-2116
-6400

onlyif mysql # DIV for integer division: 
query II rowsort label-4727
SELECT 68 DIV col0 + - col1 + + col2 * - col2 AS col2, - 53 * - - col2 FROM tab0
----
-121
-530
-2286
-2491
-9802
-5247

skipif mysql # not compatible
query II rowsort label-4727
SELECT 68 / col0 + - col1 + + col2 * - col2 AS col2, - 53 * - - col2 FROM tab0
----
-121
-530
-2286
-2491
-9802
-5247

query I rowsort
SELECT ALL - col2 * - col0 * 50 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
244749
250665
309309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT col1 * + 23 + col2 * CAST( - ( + 24 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
149
621
811

skipif mysql # not compatible
query I rowsort label-4729
SELECT col1 * + 23 + col2 * CAST ( - ( + 24 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
149
621
811

query I rowsort
SELECT ALL 6 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 * + ( col2 ) AND 16
----

query I rowsort
SELECT + - col1 + - 94 AS col0 FROM tab2 AS cor0
----
-145
-161
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL - COUNT( ALL - - ( - col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - COUNT ( ALL - - ( - col2 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - 50 + - ( - MIN( DISTINCT - ( - col2 ) ) ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4734
SELECT - 50 + - ( - MIN ( DISTINCT - ( - col2 ) ) ) AS col2 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col2 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT DISTINCT + COUNT( * ) AS col2, 9 col2 FROM tab1 AS cor0
----
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4736
SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1 AS cor0
----
3
9

query I rowsort
SELECT + + col2 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 5 - + - col0 AS col1 FROM tab1 AS cor0
----
56
90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + - SUM( DISTINCT + col0 ) + - 16 * SUM( - - 3 ) FROM tab0 AS cor0
----
-343

skipif mysql # not compatible
query I rowsort label-4739
SELECT + - SUM ( DISTINCT + col0 ) + - 16 * SUM ( - - 3 ) FROM tab0 AS cor0
----
-343

query I rowsort
SELECT DISTINCT col2 * - 75 - - + 4 AS col0 FROM tab0 AS cor0
----
-3521
-7421
-746

query II rowsort
SELECT DISTINCT col0 AS col2, - 69 FROM tab2 AS cor0
----
46
-69
64
-69
75
-69

query I rowsort
SELECT + 16 * + col2 AS col2 FROM tab2
----
368
640
928

query I rowsort
SELECT - ( + col0 ) * - col1 * - ( col2 ) FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - MIN( + 37 ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-4744
SELECT - MIN ( + 37 ) AS col1 FROM tab0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) AS col0, - col2 + col2 col0 FROM tab0
----
-1
0
-21
0
-81
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + + col0 + - - col2 col1, ( + 62 ) AS col0 FROM tab1 cor0
----
-2505
62
-7166
62
-8213
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT - COUNT( 66 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - COUNT ( 66 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col2 ) < - col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + - 32 * - - 6 FROM tab2 AS cor0
----
-192
-192
-192

query I rowsort
SELECT ALL - col2 + - 75 + + - col2 FROM tab1 AS cor0
----
-193
-211
-267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4753
SELECT + 11 / + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 11 / + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 95 + - col2 AS col1 FROM tab2
----
112
118
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT + - 28 + - COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4755
SELECT DISTINCT + - 28 + - COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT col1 + - - 0 DIV col2 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT col1 + - - 0 / col2 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - 16 * + 47 FROM tab2 AS cor0
----
-752
-752
-752

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN + col1 AND col2 * + ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT col0 * 40 + + CAST( - col1 AS SIGNED ) * - + 0 FROM tab2 AS cor0
----
1840
2560
3000

skipif mysql # not compatible
query I rowsort label-4759
SELECT col0 * 40 + + CAST ( - col1 AS INTEGER ) * - + 0 FROM tab2 AS cor0
----
1840
2560
3000

query I rowsort
SELECT col1 + + 11 AS col1 FROM tab0 cor0
----
12
32
92

query I rowsort
SELECT ALL col0 * - - 96 - - + 14 FROM tab1 cor0
----
4910
8174
8750

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT + COUNT( * ) + + - 74 col2 FROM tab0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4762
SELECT DISTINCT + COUNT ( * ) + + - 74 col2 FROM tab0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 WHERE + 2 + + - 73 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE + 2 + + - 73 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4764
SELECT + COUNT( * ) - + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT + COUNT ( * ) - + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4765
SELECT + ( 83 ) FROM tab1 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4765
SELECT + ( 83 ) FROM tab1 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT CAST( + + MIN( ALL - + col2 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT CAST ( + + MIN ( ALL - + col2 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT 25 + + 73 AS col1 FROM tab0, tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT MAX( DISTINCT 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT MAX ( DISTINCT 52 ) FROM tab1
----
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 53 * - col1 + + + 89 IS NOT NULL
----

query II rowsort
SELECT - 27 AS col0, col2 FROM tab2
----
-27
23
-27
40
-27
58

query I rowsort
SELECT ALL + 21 * - col1 AS col2 FROM tab0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL 46 * + - COUNT( * ) AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 46 * + - COUNT ( * ) AS col1 FROM tab0
----
-138

query I rowsort
SELECT DISTINCT 64 * - - col2 AS col2 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT + COUNT( * ) DIV + COUNT( + 87 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4774
SELECT + COUNT ( * ) / + COUNT ( + 87 ) FROM tab1
----
1

query II rowsort
SELECT ALL + - col0, + col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + + SUM( ALL - col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4776
SELECT DISTINCT + + SUM ( ALL - col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT - col0 * - - 55 * col2 FROM tab1 AS cor0 WHERE NOT ( - CAST( - col0 AS SIGNED ) ) IS NULL
----
-269280
-275825
-340340

skipif mysql # not compatible
query I rowsort label-4777
SELECT - col0 * - - 55 * col2 FROM tab1 AS cor0 WHERE NOT ( - CAST ( - col0 AS INTEGER ) ) IS NULL
----
-269280
-275825
-340340

query II rowsort
SELECT ALL - col1 AS col1, - col1 * - ( - col2 ) FROM tab1 AS cor0
----
-14
-1344
-47
-3196
-5
-295

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab2 WHERE NOT + col2 + - col0 NOT BETWEEN + col1 AND - 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 32 col0 FROM tab0
----
-2592
-32
-672

query I rowsort
SELECT + 31 * col2 * - + 96 FROM tab1
----
-175584
-202368
-285696

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL MAX( - - 71 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL MAX ( - - 71 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - 58, - col1 * + + 83 + - 1 / + 4, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT + - col2 * + - CAST( NULL AS SIGNED ) * col2 * 88 * - col0 + - - col0 / - 76 + + col1 - + col2 * - col1 * + + 37 + + col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT + - col2 * + - CAST ( NULL AS INTEGER ) * col2 * 88 * - col0 + - - col0 / - 76 + + col1 - + col2 * - col1 * + + 37 + + col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * - ( + - 49 ) AS col1 FROM tab0 AS cor0
----
147
147
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + MIN( - + col1 ) + + 92 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + MIN ( - + col1 ) + + 92 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4788
SELECT ALL - col1 * CAST( + col0 AS SIGNED ) + - 20 DIV ( col0 ) col2, + col1 AS col0 FROM tab1
----
-425
5
-4277
47
-714
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4788
SELECT ALL - col1 * CAST ( + col0 AS INTEGER ) + - 20 / ( col0 ) col2, + col1 AS col0 FROM tab1
----
-425
5
-4277
47
-714
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4789
SELECT + col0 + + CAST( - col1 AS SIGNED ) - - + col0 * + col1, - col0 AS col0 FROM tab0
----
1149
-15
1893
-87
193
-97

skipif mysql # not compatible
query II rowsort label-4789
SELECT + col0 + + CAST ( - col1 AS INTEGER ) - - + col0 * + col1, - col0 AS col0 FROM tab0
----
1149
-15
1893
-87
193
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT + 8 DIV - - col0 + + 80 + - + 67 + + col1 FROM tab0
----
14
34
94

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + 8 / - - col0 + + 80 + - + 67 + + col1 FROM tab0
----
14
34
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT COUNT( * ) + MAX( + + ( - col0 ) ) * + ( + COUNT( DISTINCT + 39 ) ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4791
SELECT COUNT ( * ) + MAX ( + + ( - col0 ) ) * + ( + COUNT ( DISTINCT + 39 ) ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( col1 ) col1 FROM tab2 WHERE NULL >= + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT + COUNT ( col1 ) col1 FROM tab2 WHERE NULL >= + col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4794
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) + - col2 - - col1 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4794
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) + - col2 - - col1 + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 * - col2 - - ( col2 ) - + col2 NOT IN ( - + 39 )
----

query I rowsort
SELECT ALL + col2 + 57 * - col2 AS col1 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL + + SUM( 88 ) - - 36 FROM tab1 cor0
----
300

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + + SUM ( 88 ) - - 36 FROM tab1 cor0
----
300

query I rowsort
SELECT ALL 14 * - - col0 AS col2 FROM tab1 AS cor0
----
1190
1274
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 25 col0 FROM tab1 AS cor0
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT - + COUNT( + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - + COUNT ( + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT + COUNT( ALL - col2 ) * - - 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + COUNT ( ALL - col2 ) * - - 18 FROM tab1
----
54

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0 WHERE NOT 52 * - col1 * + - col1 IS NULL
----
89

query I rowsort
SELECT DISTINCT + + col2 * + - 95 + + col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT + - col2 DIV - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT + - col2 / - col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT - CAST( + - ( + - 45 ) AS SIGNED ) FROM tab0 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-4805
SELECT - CAST ( + - ( + - 45 ) AS INTEGER ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT 81 + col0 * + col1 AS col1, 33 * col0 AS col1 FROM tab1 AS cor0
----
4358
3003
506
2805
795
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT col0 / col0 + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT col0 / col0 + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 65 + + col0 AS col0 FROM tab1 AS cor0
----
116
150
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 * - 80 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 * - 80 * + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4811
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) * + - col2 - col0 NOT IN ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4811
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) * + - col2 - col0 NOT IN ( + + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 20 <> - - col1 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL - COUNT( DISTINCT - + 6 ) + + COUNT( * ) - - 47 col2 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT ALL - COUNT ( DISTINCT - + 6 ) + + COUNT ( * ) - - 47 col2 FROM tab2
----
49

query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT - + 66 AS col0 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - - 92 FROM tab1 AS cor0 WHERE NOT NULL <= + 49 + col2
----

query I rowsort
SELECT ALL + col0 + + 57 FROM tab2
----
103
121
132

query III rowsort
SELECT ALL * FROM tab1 WHERE - 26 * - col0 NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + MAX( 16 ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4819
SELECT + MAX ( 16 ) AS col0 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT - MIN( ALL 56 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - MIN ( ALL 56 ) FROM tab1 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT ALL + col1 DIV ( + col1 ) AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + col1 / ( + col1 ) AS col2 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) = col0 + 53 ) )
----

query II rowsort
SELECT col2, 40 AS col0 FROM tab0
----
10
40
47
40
99
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT DISTINCT col1 * + CAST( + 81 AS SIGNED ) AS col0 FROM tab2
----
4131
5427
6237

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT col1 * + CAST ( + 81 AS INTEGER ) AS col0 FROM tab2
----
4131
5427
6237

query II rowsort
SELECT + 4 * col0 AS col0, ( + col2 ) AS col0 FROM tab0
----
348
10
388
99
60
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4826
SELECT ALL * FROM tab1 WHERE NOT - + CAST( - - col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4826
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( - - col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT + COUNT( - - 40 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT + COUNT ( - - 40 ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ( col1 ) * - - col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * + - 28 ) NOT BETWEEN ( NULL ) AND - + col2 / + - col2 + - col2
----

query II rowsort
SELECT col1 AS col2, col2 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - COUNT( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT - COUNT ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT DISTINCT 52 DIV - col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT 52 / - col1 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT - col2 DIV + 41 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT - col2 / + 41 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE + 59 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE + 59 <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - - col2 - - 97 + - col2 * + 25 + - 17 AND + + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - COUNT( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4837
SELECT - COUNT ( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 18 + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 65 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL + - ( + ( - COUNT( * ) ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + - ( + ( - COUNT ( * ) ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - COUNT( * ) + - ( + SUM( - ( ( col1 ) ) ) ) AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4841
SELECT - COUNT ( * ) + - ( + SUM ( - ( ( col1 ) ) ) ) AS col1 FROM tab2 AS cor0
----
192

query I rowsort
SELECT - 79 + 51 + col2 AS col2 FROM tab1 AS cor0
----
31
40
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT + COUNT( * ) * - 74 * 33 FROM tab1
----
-7326

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + COUNT ( * ) * - 74 * 33 FROM tab1
----
-7326

query I rowsort
SELECT col1 + + col1 - col2 * - 93 AS col0 FROM tab2
----
2241
3874
5528

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT - col1 + - 70 DIV 78 * + 51 col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4845
SELECT - col1 + - 70 / 78 * + 51 col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 24 * col0 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab0 WHERE + 38 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 - - 30 col1 FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 * - - ( col1 ) ) > + 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * + + col0 col1 FROM tab1
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT + ( + MIN( + - col1 ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + ( + MIN ( + - col1 ) ) AS col2 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4852
SELECT CAST( 87 AS SIGNED ) DIV + col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4852
SELECT CAST ( 87 AS INTEGER ) / + col0 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL - ( + col1 ) * + col1 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ( - + ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = - 92
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 <= + col0
----
15
81
47

query I rowsort
SELECT - ( + + col1 ) * col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 34 col0 FROM tab0 AS cor0
----
-2958
-3298
-510

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col0 - + col2 AS col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT ALL 87 * col2 AS col2 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT - MAX( + col2 ) + + - 84 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - MAX ( + col2 ) + + - 84 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT col2 + 67 - + + col1 + + + 61 * - - 95 FROM tab1
----
5883
5916
5944

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL COUNT( * ) + + + 86 AS col2 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL COUNT ( * ) + + + 86 AS col2 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 14 + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 14 + - col1 FROM tab1
----
NULL

query I rowsort
SELECT + 1 + - + 82 FROM tab2
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT ( - + SUM( DISTINCT 93 ) ) * - COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT ( - + SUM ( DISTINCT 93 ) ) * - COUNT ( * ) FROM tab0
----
279

query I rowsort
SELECT + col1 * + + 69 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - MAX( ALL 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - MAX ( ALL 54 ) FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4870
SELECT + col2 col0, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4870
SELECT + col2 col0, - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT DISTINCT + ( + - col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + ( + - col2 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 24 BETWEEN NULL AND col1 + - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT - ( + 71 ) * + col1 + col1 + + ( + - ( + CAST( + 30 AS SIGNED ) ) ) - + 94 AS col2 FROM tab1
----
-1104
-3414
-474

skipif mysql # not compatible
query I rowsort label-4873
SELECT - ( + 71 ) * + col1 + col1 + + ( + - ( + CAST ( + 30 AS INTEGER ) ) ) - + 94 AS col2 FROM tab1
----
-1104
-3414
-474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 - col2 col2 FROM tab1
----
111
114
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT col0 - col2 - - col2 DIV + col0 - + col0 * 9 AS col1 FROM tab2
----
-391
-552
-658

skipif mysql # not compatible
query I rowsort label-4875
SELECT col0 - col2 - - col2 / + col0 - + col0 * 9 AS col1 FROM tab2
----
-391
-552
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + 0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + 0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + col0 - + 99 AS col0 FROM tab2
----
-30
34
5

query I rowsort
SELECT DISTINCT col2 * + - 79 - + + col2 AS col1 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4879
SELECT * FROM tab2 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4879
SELECT * FROM tab2 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT + 48 / 12 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * + 19 * - col2 + - col1 IN ( col0, - col1 )
----

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + 48 / 12 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * + 19 * - col2 + - col1 IN ( col0, - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4882
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) * col1 * col0 / + col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4882
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) * col1 * col0 / + col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT + 42 DIV + col1 FROM tab0 AS cor0
----
0
2
42

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 42 / + col1 FROM tab0 AS cor0
----
0
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT + ( + ( COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + ( + ( COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col0 col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT + 76 FROM tab1 WHERE NOT + - 70 IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 + - - col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT DISTINCT 60 + + - ( - 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-4890
SELECT DISTINCT 60 + + - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT DISTINCT + COUNT( ALL + col0 ) AS col0, + MAX( DISTINCT col0 ) FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-4891
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col0, + MAX ( DISTINCT col0 ) FROM tab1
----
3
91

query I rowsort
SELECT DISTINCT 29 * - col0 + col2 * col0 AS col1 FROM tab0 cor0
----
-1653
270
6790

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 10 <> col2 * - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 43 AS col1, + col0 FROM tab0
----
-43
15
-43
87
-43
97

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN 18 AND + col0
----

query I rowsort
SELECT DISTINCT col2 + - col2 + + 67 + col0 FROM tab2 AS cor0
----
113
131
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4897
SELECT DISTINCT + - 32 DIV - col1 + - col2 + + CAST( + 28 AS SIGNED ) AS col1, 69 FROM tab1 cor0
----
-25
69
-40
69
-66
69

skipif mysql # not compatible
query II rowsort label-4897
SELECT DISTINCT + - 32 / - col1 + - col2 + + CAST ( + 28 AS INTEGER ) AS col1, 69 FROM tab1 cor0
----
-25
69
-40
69
-66
69

query I rowsort
SELECT ALL + col2 - + - col0 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - MAX( col0 ) + - + 84 + - COUNT( * ) FROM tab1 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-4899
SELECT - MAX ( col0 ) + - + 84 + - COUNT ( * ) FROM tab1 AS cor0
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT DISTINCT + 57 DIV col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT + 57 / col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT col0 * + 68 * - CAST( - - col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-15285
-514605
-639715

skipif mysql # not compatible
query I rowsort label-4901
SELECT col0 * + 68 * - CAST ( - - col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-15285
-514605
-639715

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 60 * - MIN( - 93 ) FROM tab1 AS cor0
----
5580

skipif mysql # not compatible
query I rowsort label-4902
SELECT 60 * - MIN ( - 93 ) FROM tab1 AS cor0
----
5580

query II rowsort
SELECT DISTINCT 27, + col1 AS col1 FROM tab0
----
27
1
27
21
27
81

query II rowsort
SELECT 93 AS col1, - 56 AS col0 FROM tab2
----
93
-56
93
-56
93
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT ALL ( + + ( - col1 ) ) + CAST( + 15 AS SIGNED ) AS col2 FROM tab0
----
-6
-66
14

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL ( + + ( - col1 ) ) + CAST ( + 15 AS INTEGER ) AS col2 FROM tab0
----
-6
-66
14

query I rowsort
SELECT DISTINCT + - AVG ( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + MAX( + 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + MAX ( + 22 ) FROM tab2
----
22

query I rowsort
SELECT ALL 36 * - + col0 FROM tab0
----
-3132
-3492
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT ALL col0 DIV - - 51 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL col0 / - - 51 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - - 33 AS col2 FROM tab1 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4911
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( + 64 AS SIGNED ) AND - - 67
----

skipif mysql # not compatible
query III rowsort label-4911
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( + 64 AS INTEGER ) AND - - 67
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 6 >= NULL
----

query I rowsort
SELECT - + 16 AS col0 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT + col2 DIV col1 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-4916
SELECT + col2 / col1 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4917
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + + MAX( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT + + MAX ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col2 * + ( - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL 11 + col1 * - 31 * + col0 + - + col0, - 83 AS col2 FROM tab2 cor0
----
-152821
-83
-155839
-83
-72761
-83

query I rowsort
SELECT ALL + 41 + col0 AS col1 FROM tab2
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT MAX( ALL + - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT MAX ( ALL + - col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + - 34 * - col0 * col0 FROM tab0
----
257356
320005
7697

query II rowsort
SELECT col1 AS col1, + col2 + - col1 - 50 * - col2 AS col2 FROM tab0 AS cor0
----
1
5048
21
489
81
2316

query I rowsort
SELECT - ( - 56 ) + - col2 AS col1 FROM tab1 cor0
----
-12
-3
-40

query I rowsort
SELECT + 82 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT + 15 + - + 33 + + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = + col1 * + + col2 / + 32 + - - 46 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 14 - - col0 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE col2 * + - 74 + + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 42 * + 44 - - + 81 * col2 FROM tab0 AS cor0
----
2658
5655
9867

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) * 86 + - - col0 IN ( - col1, - col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 2 - col2 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT ALL - col0 - + - 62 + + ( + col1 ) DIV - col0 + - + ( col0 ) + + col0 AS col0 FROM tab0 cor0
----
-25
-35
42

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - col0 - + - 62 + + ( + col1 ) / - col0 + - + ( col0 ) + + col0 AS col0 FROM tab0 cor0
----
-25
-35
42

query I rowsort
SELECT 70 - + - ( - col0 ) FROM tab1
----
-15
-21
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col2 FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT 77 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT 77 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 33 * 15 FROM tab2
----
495
495
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL

query I rowsort
SELECT 18 * col0 AS col1 FROM tab2
----
1152
1350
828

query I rowsort
SELECT ALL - col1 * + + col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col1 * - + 87 AS col0 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT col1 * - - 79 AS col1 FROM tab0
----
1659
6399
79

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT ALL - 13 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - 13 / col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ( + ( col2 ) ), ( - 81 ) FROM tab1
----
59
-81
68
-81
96
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT 59 DIV - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4950
SELECT 59 / - col2 AS col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL - 18 * - col0 * col2 FROM tab2
----
19044
46080
78300

query I rowsort
SELECT DISTINCT - - ( - 5 ) AS col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - - 46 + + col1 + + - col2 FROM tab1 AS cor0
----
-36
-8
25

query I rowsort
SELECT ALL + ( 85 ) + + 2 + + 73 AS col0 FROM tab0
----
160
160
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT SUM( - + 59 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN 37 * + + col0 * + col2 + col0 + - + CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT SUM ( - + 59 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN 37 * + + col0 * + col2 + col0 + - + CAST ( NULL AS INTEGER ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COUNT( * ) + + + COUNT( * ) - + 92 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4956
SELECT COUNT ( * ) + + + COUNT ( * ) - + 92 FROM tab0
----
-86

query II rowsort
SELECT col2 * - col2 + - col0, col1 FROM tab0
----
-187
21
-2224
81
-9898
1

query I rowsort
SELECT DISTINCT - 52 + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + + + ( + + 84 ) AS col1 FROM tab1
----
143
152
180

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 = 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * col0 + - - 88 FROM tab0 AS cor0
----
-617
-782
-9515

query I rowsort
SELECT ALL 76 - + col1 AS col2 FROM tab0 AS cor0
----
-5
55
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 95 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - 46 FROM tab0 AS cor0
----
-1
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL + COUNT( ALL - + 72 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + COUNT ( ALL - + 72 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL COUNT( * ) * 89 AS col2 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL COUNT ( * ) * 89 AS col2 FROM tab0 AS cor0
----
267

query II rowsort
SELECT + 5 AS col1, ( - col0 ) * + col2 AS col0 FROM tab1 cor0
----
5
-4896
5
-5015
5
-6188

query II rowsort
SELECT DISTINCT 97 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
97
15
97
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT 8 DIV - + ( - + 60 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT 8 / - + ( - + 60 ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 * 28 - - col0 BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 52 * + 39 * + 44 FROM tab1
----
-89232

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 AS cor0 WHERE + 56 = - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - - SUM( - col2 ) col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4973
SELECT - - SUM ( - col2 ) col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + + COUNT( - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4975
SELECT + + COUNT ( - + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( - - col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 > NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 * 24 <> NULL
----

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE + 82 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL < col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * + 79 col0 FROM tab2 AS cor0
----
-5214
-5214
-5214

query I rowsort
SELECT ALL - 53 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53
-53
-53

query I rowsort
SELECT ALL + + col1 + col2 * + - col0 * - col2 FROM tab2 AS cor0
----
102477
24385
252367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * ( + - 63 ) + + + 33 col1 FROM tab0 AS cor0
----
1356
5136
96

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 42 + + col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT + 46 + - COUNT( - col2 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + 46 + - COUNT ( - col2 ) AS col2 FROM tab1
----
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND + col2
----

query I rowsort
SELECT col1 - + - 26 + - col0 FROM tab0
----
-40
-70
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT + 94 * + COUNT( * ) * COUNT( * ) + - MIN( DISTINCT + 87 ) AS col2 FROM tab1
----
759

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + 94 * + COUNT ( * ) * COUNT ( * ) + - MIN ( DISTINCT + 87 ) AS col2 FROM tab1
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - SUM( ALL + 42 ) + + COUNT( * ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4991
SELECT - SUM ( ALL + 42 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - - MAX( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - - MAX ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + 95 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4994
SELECT DISTINCT - col0 DIV - 42 AS col2, - col1 AS col2 FROM tab2
----
1
-51
1
-67
1
-77

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT - col0 / - 42 AS col2, - col1 AS col2 FROM tab2
----
1
-51
1
-67
1
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col2 <> col2
----

query I rowsort
SELECT + 20 * + - 98 AS col0 FROM tab1
----
-1960
-1960
-1960

query I rowsort
SELECT - col1 * - - col1 * + + col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL - MAX( - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - MAX ( - col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 42 FROM tab1 AS cor0
----
-205632
-210630
-259896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT * FROM tab1 WHERE col2 + col2 * col0 NOT BETWEEN + 43 AND - 99 * CAST( 67 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5001
SELECT * FROM tab1 WHERE col2 + col2 * col0 NOT BETWEEN + 43 AND - 99 * CAST ( 67 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 78 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL + CAST( + col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT ALL + CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT ALL - col0 + 3 AS col0 FROM tab2 WHERE ( col1 + 21 ) IN ( - CAST( + col1 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - col0 + 3 AS col0 FROM tab2 WHERE ( col1 + 21 ) IN ( - CAST ( + col1 AS INTEGER ) + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - SUM( DISTINCT 63 ) FROM tab0 WHERE NOT - col2 / col1 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT - SUM ( DISTINCT 63 ) FROM tab0 WHERE NOT - col2 / col1 + + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT 23 * COUNT( + col2 ) col1 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5008
SELECT 23 * COUNT ( + col2 ) col1 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT 58 DIV + 15 + 9 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT 58 / + 15 + 9 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT - col1 + - CAST( - col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT - col1 + - CAST ( - col1 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 43 * + col2 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT - 5 + 89 AS col2 FROM tab1
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT COUNT( * ) * CAST( MIN( col1 ) AS SIGNED ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT COUNT ( * ) * CAST ( MIN ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
153

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT BETWEEN col2 AND 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT DISTINCT - 76 - - col0 FROM tab0 WHERE NOT CAST( - col0 AS DECIMAL ) = ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 76 - - col0 FROM tab0 WHERE NOT CAST ( - col0 AS REAL ) = ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 + 70 <= - 71 + - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE ( - ( 77 ) * col1 ) < ( + col1 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= + col2 * + 34 + + ( col1 ) * 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT CAST( 20 AS SIGNED ) AS col2 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-5019
SELECT CAST ( 20 AS INTEGER ) AS col2 FROM tab2
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT DISTINCT CAST( NULL AS SIGNED ) - - SUM( ALL col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - SUM ( ALL col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT - SUM( + col2 ) * 44 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND - CAST( col2 AS SIGNED ) + ( + col2 ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT - SUM ( + col2 ) * 44 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND - CAST ( col2 AS INTEGER ) + ( + col2 ) * - 81
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 92 col0 FROM tab2 AS cor0
----
-2116
-3680
-5336

query I rowsort
SELECT ALL 31 - + col2 AS col1 FROM tab0 AS cor0
----
-16
-68
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 16 * + col2 col1 FROM tab0 cor0
----
-1681
-247
-767

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 11 * ( + col1 ) BETWEEN ( - col2 ) AND - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 64 - col2 AS col2 FROM tab1 AS cor0
----
-123
-132
-160

query I rowsort
SELECT + ( - 79 ) - col0 FROM tab2 AS cor0
----
-125
-143
-154

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + 1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 42 + col2 ) <> 81 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT CAST( + col0 AS SIGNED ) * col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-5031
SELECT CAST ( + col0 AS INTEGER ) * col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - 42 + col2 * col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 59 AND + col2
----

query I rowsort
SELECT + col2 * + 13 AS col1 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5034
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + ( + CAST( + col1 AS SIGNED ) ) > ( 34 * 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5034
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + ( + CAST ( + col1 AS INTEGER ) ) > ( 34 * 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 50 col1 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT MIN( + 82 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT MIN ( + 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + SUM( + 8 ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + SUM ( + 8 ) AS col1 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT - SUM( DISTINCT 39 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - SUM ( DISTINCT 39 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + ( 75 ) AS col1 FROM tab0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT COUNT( 57 ) col2 FROM tab0 WHERE NOT ( ( - col1 ) / col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5040
SELECT DISTINCT COUNT ( 57 ) col2 FROM tab0 WHERE NOT ( ( - col1 ) / col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5041
SELECT ALL * FROM tab0 WHERE NOT ( + ( - col1 ) - + 90 ) BETWEEN ( 43 ) AND ( - ( + CAST( NULL AS SIGNED ) ) / col1 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5041
SELECT ALL * FROM tab0 WHERE NOT ( + ( - col1 ) - + 90 ) BETWEEN ( 43 ) AND ( - ( + CAST ( NULL AS INTEGER ) ) / col1 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( - col1 ) < + col2 * col0 + col2
----

query I rowsort
SELECT col2 * + 31 FROM tab0
----
1457
3069
310

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT + ( col2 ) * col1 NOT IN ( - 64 * 57 + 53 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + 3 * CAST( + col0 AS SIGNED ) FROM tab0
----
261
291
45

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 3 * CAST ( + col0 AS INTEGER ) FROM tab0
----
261
291
45

query I rowsort
SELECT - ( - 0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 25 + - - col1 + - + 79 AS col0 FROM tab0
----
-33
-53
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT + 7 * - - CAST( col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-2975
-29939
-4998

skipif mysql # not compatible
query I rowsort label-5048
SELECT + 7 * - - CAST ( col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-2975
-29939
-4998

query II rowsort
SELECT col1 AS col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 / 49 )
----

query I rowsort
SELECT - - 13 * 94 AS col2 FROM tab2 AS cor0
----
1222
1222
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT - + col1 DIV ( + col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-5052
SELECT - + col1 / ( + col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5053
SELECT * FROM tab0 AS cor0 WHERE + 49 + - 81 NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5053
SELECT * FROM tab0 AS cor0 WHERE + 49 + - 81 NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 * - 47 + + col2 FROM tab0 AS cor0
----
15
2256
87
480
97
4752

query I rowsort
SELECT + 55 * + col0 AS col2 FROM tab2 cor0 WHERE NULL IN ( - ( 90 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT DISTINCT 21 * + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT 21 * + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + - col0 * 71 + - col1 BETWEEN + col2 * col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col0 col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT + 6 * - - col0 * col0 AS col2 FROM tab2 AS cor0
----
12696
24576
33750

query I rowsort
SELECT ALL col2 * + col2 * + col2 AS col2 FROM tab2 AS cor0
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT - + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + + col1 * col2 * + - 51 - col0 FROM tab0
----
-2912370
-489850
-931857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL - col2 - - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - col2 - - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE ( col2 ) < col2
----

query I rowsort
SELECT DISTINCT 53 * + - col1 * + 4 AS col2 FROM tab1 AS cor0
----
-1060
-2968
-9964

query I rowsort
SELECT ALL - ( ( + - 14 ) ) FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + 76 + - 33 * col2 IS NOT NULL
----

query I rowsort
SELECT col0 * - col1 * - col1 AS col2 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - 47 * - col2 FROM tab1
----
2773
3196
4512

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL COUNT( * ) * COUNT( * ) * + SUM( DISTINCT + col0 ) AS col2 FROM tab1
----
2043

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL COUNT ( * ) * COUNT ( * ) * + SUM ( DISTINCT + col0 ) AS col2 FROM tab1
----
2043

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5073
SELECT * FROM tab2 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) + + 51 - + col1 + + col0 * ( - col2 / - col1 )
----

skipif mysql # not compatible
query III rowsort label-5073
SELECT * FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) + + 51 - + col1 + + col0 * ( - col2 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MAX( - 32 ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MAX ( - 32 ) AS col1 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT 75 DIV + + 70 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT 75 / + + 70 AS col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5077
SELECT DISTINCT + MIN( + col2 ) DIV CAST( - + SUM( DISTINCT - 35 ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + MIN ( + col2 ) / CAST ( - + SUM ( DISTINCT - 35 ) AS INTEGER ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5079
SELECT DISTINCT CAST( + + CAST( col1 AS SIGNED ) AS SIGNED ) AS col1, col2 AS col1 FROM tab2 cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-5079
SELECT DISTINCT CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col1, col2 AS col1 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
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-5080
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - - SUM( 84 ) FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5082
SELECT - - SUM ( 84 ) FROM tab2 AS cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col0 ) col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5085
SELECT - COUNT( * ), 58 - COUNT( * ) AS col1, + 67 AS col2 FROM tab0 AS cor0
----
-3
55
67

skipif mysql # not compatible
query III rowsort label-5085
SELECT - COUNT ( * ), 58 - COUNT ( * ) AS col1, + 67 AS col2 FROM tab0 AS cor0
----
-3
55
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT col2 * + CAST( NULL AS SIGNED ) * + - col0 * ( col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT col2 * + CAST ( NULL AS INTEGER ) * + - col0 * ( col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab0 WHERE NOT - 63 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5088
SELECT ALL + - 63 col2, COUNT( * ) FROM tab1 WHERE - col0 IS NULL
----
-63
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5088
SELECT ALL + - 63 col2, COUNT ( * ) FROM tab1 WHERE - col0 IS NULL
----
-63
0

query I rowsort
SELECT col2 + - + col2 + - col0 + col2 + col0 * + 12 * + 45 FROM tab0
----
46903
52382
8132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5090
SELECT CAST( NULL AS DECIMAL ) + SUM( + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CAST ( NULL AS REAL ) + SUM ( + col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT - - COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT - - COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5092
SELECT ALL - 59, CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-59
-10
-59
-47
-59
-99

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL - 59, CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-59
-10
-59
-47
-59
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5093
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN + ( + 81 ) AND - CAST( - 62 AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-5093
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN + ( + 81 ) AND - CAST ( - 62 AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) + SUM( DISTINCT col1 ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) + SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
106

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + + col1 - - - col2 NOT IN ( ( - - col1 ) + col2 )
----
46
51
23

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0 cor0
----
-37

query II rowsort
SELECT DISTINCT 56, - 48 AS col2 FROM tab2 cor0
----
56
-48

query II rowsort
SELECT - 48, + ( + + col2 ) FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

query I rowsort
SELECT DISTINCT - col0 + - col1 + - 24 * - - col1 AS col1 FROM tab1
----
-1266
-210
-401

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * + - col0 + + + col0 + - col1 * + col2 * + ( + col0 ) / col2 + - col0 * col0 / + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5101
SELECT DISTINCT - 41 - + COUNT( * ), CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT - 41 - + COUNT ( * ), CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab0 AS cor0
----
-44
NULL

query I rowsort
SELECT DISTINCT + - ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT - 33 FROM tab0 AS cor0 WHERE ( NOT 81 - + - col1 IS NULL )
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT - CAST( NULL AS SIGNED ) <= ( - col2 * col0 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT - CAST ( NULL AS INTEGER ) <= ( - col2 * col0 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + + MAX( DISTINCT + + 78 ) + 19 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5105
SELECT + + MAX ( DISTINCT + + 78 ) + 19 FROM tab2 AS cor0
----
97

query I rowsort
SELECT col2 + + - 1 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT - col1 + - + 49 FROM tab2 AS cor0
----
-100
-116
-126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5108
SELECT col0, 12 DIV - + CAST( col1 AS SIGNED ) FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5108
SELECT col0, 12 / - + CAST ( col1 AS INTEGER ) FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL + 35 + COUNT( * ) AS col1 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + 35 + COUNT ( * ) AS col1 FROM tab1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + col2 + CAST( NULL AS SIGNED ) - + col0 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + col2 + CAST ( NULL AS INTEGER ) - + col0 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL - 8 + + - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5111
SELECT ALL - 8 + + - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT + SUM( - col1 ) + - 77 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + SUM ( - col1 ) + - 77 FROM tab0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT ALL + - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab1 WHERE ( + + col2 ) IN ( col1 * - ( col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT - 37 + COUNT( ALL CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 WHERE + + col1 + ( col0 ) + - - CAST( NULL AS SIGNED ) / + col2 NOT BETWEEN ( col1 * col0 + + col1 ) AND + 15
----
-37

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 37 + COUNT ( ALL CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 WHERE + + col1 + ( col0 ) + - - CAST ( NULL AS INTEGER ) / + col2 NOT BETWEEN ( col1 * col0 + + col1 ) AND + 15
----
-37

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * col0 + - + 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT DISTINCT + CAST( 22 AS SIGNED ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT + CAST ( 22 AS INTEGER ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2 cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( 42 / - 14 + + col2 * + 60 ) IN ( ( + col2 ) * - - col0 )
----

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( 42 / - 14 + + col2 * + 60 ) IN ( ( + col2 ) * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - + MIN( ALL col0 ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT - + MIN ( ALL col0 ) col0 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + + COUNT( * ) * SUM( col2 ) AS col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + + COUNT ( * ) * SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
363

query I rowsort
SELECT + col0 * col1 * - - col2 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT DISTINCT + col0 * 23 * - col0 + ( - col0 ) + + 54 DIV + col0 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-129450
-48713
-94272

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + col0 * 23 * - col0 + ( - col0 ) + + 54 / + col0 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-129450
-48713
-94272

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT col1 DIV 66 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT col1 / 66 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL + CAST( - - 89 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + CAST ( - - 89 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
89
89
89

query II rowsort
SELECT - + ( 6 ) AS col0, col0 AS col2 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75

query I rowsort
SELECT + + 24 * - col1 + col1 FROM tab1 cor0
----
-1081
-115
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT SUM( - - 24 ) AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5128
SELECT SUM ( - - 24 ) AS col0 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL - + col1 * - + col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL col1 * + ( + col0 ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT + SUM( col0 ) * + COUNT( * ) + + + 31 FROM tab1
----
712

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + SUM ( col0 ) * + COUNT ( * ) + + + 31 FROM tab1
----
712

query II rowsort
SELECT DISTINCT col0 * col2 * + col2, 11 AS col2 FROM tab0
----
33135
11
8700
11
950697
11

query I rowsort
SELECT ALL - 36 FROM tab0 WHERE + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT IN ( + + col1 * + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT CAST( 4 AS SIGNED ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5135
SELECT CAST ( 4 AS INTEGER ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - 25 * - 95 AS col1 FROM tab0
----
2375
2375
2375

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT col1 DIV + 46 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5137
SELECT col1 / + 46 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - - COUNT( * ) + + 79 AS col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5138
SELECT - - COUNT ( * ) + + 79 AS col1 FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + + 9 > NULL
----

query I rowsort
SELECT DISTINCT + + 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT ALL + + col1 - + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - col2 - - + col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 99 > - + col2 + - + col1 * - - 63
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 99 > - + col2 + - + col1 * - - 63
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 68, - 74 AS col1 FROM tab0 AS cor0
----
-68
-74
-68
-74
-68
-74

query II rowsort
SELECT + - col1 AS col1, - 69 AS col1 FROM tab0 AS cor0
----
-1
-69
-21
-69
-81
-69

query I rowsort
SELECT col1 * + 49 AS col0 FROM tab1 AS cor0
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT + CAST( - 90 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-141
-175
-181

skipif mysql # not compatible
query I rowsort label-5147
SELECT + CAST ( - 90 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-141
-175
-181

query II rowsort
SELECT DISTINCT - 52 AS col2, 25 AS col0 FROM tab1 AS cor0
----
-52
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - COUNT( * ) + AVG ( - + col2 ) + - 38 * 31 AS col2 FROM tab2 WHERE NOT ( NOT ( + + 21 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - COUNT ( * ) + AVG ( - + col2 ) + - 38 * 31 AS col2 FROM tab2 WHERE NOT ( NOT ( + + 21 IS NULL ) )
----
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL IS NULL )
----
51
85
91

query I rowsort
SELECT 22 + + col0 AS col1 FROM tab2
----
68
86
97

query II rowsort
SELECT ALL ( - 14 ) AS col2, 9 FROM tab2
----
-14
9
-14
9
-14
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5153
SELECT ALL + MIN( DISTINCT + + col2 ) + - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL + MIN ( DISTINCT + + col2 ) + - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL COUNT( 3 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL COUNT ( 3 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 91 * 3 AS col0 FROM tab1
----
273
273
273

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT + col2 DIV + 33 AS col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT + col2 / + 33 AS col0 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 97 ) AND - ( - col1 ) + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - - ( + COUNT( ALL + 66 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - - ( + COUNT ( ALL + 66 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 77 * - + 58 AS col1 FROM tab1 AS cor0
----
-4466

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 + 44 + - + col2 AND - + 23
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT DISTINCT + 11 AS col2, COUNT( * ) FROM tab1 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT + 11 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
11
3

query II rowsort
SELECT col2 AS col2, - 9 AS col0 FROM tab2 AS cor0
----
23
-9
40
-9
58
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + ( + - col0 ) col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - 34 + MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-115

skipif mysql # not compatible
query I rowsort label-5164
SELECT - 34 + MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 * - + ( + - col0 ) + 20, 59 col0 FROM tab1
----
-4978
59
-8310
59
-8898
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT COUNT( - + 82 ) + + 50 AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5166
SELECT COUNT ( - + 82 ) + + 50 AS col2 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT DISTINCT 54 + col1 + col1 * - CAST( NULL AS SIGNED ) * - col1 * 61 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT 54 + col1 + col1 * - CAST ( NULL AS INTEGER ) * - col1 * 61 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 / - col1 * + 37 / + - col2 + + 75 * - - col0 AS col2 FROM tab0 WHERE NOT 85 = NULL
----

query I rowsort
SELECT + col0 + 49 AS col0 FROM tab2
----
113
124
95

query I rowsort
SELECT ALL - col1 + - + col1 - + col1 AS col1 FROM tab0
----
-243
-3
-63

query II rowsort
SELECT + - col0 AS col2, col0 + 45 FROM tab0 AS cor0 WHERE NULL > col1 * + 45 - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT ALL 4 * + COUNT( * ) DIV - 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 4 * + COUNT ( * ) / - 62 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL + MIN( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + MIN ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - col2 * col2 + - col1 FROM tab0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT COUNT( * ) + COUNT( * ) + MAX( DISTINCT + + col0 ) AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + MAX ( DISTINCT + + col0 ) AS col1 FROM tab2
----
81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT 30 - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT 30 - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT DISTINCT 21 * + 30 + COUNT( * ), + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
633
-9

skipif mysql # not compatible
query II rowsort label-5178
SELECT DISTINCT 21 * + 30 + COUNT ( * ), + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
633
-9

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab0 WHERE + ( - col2 ) < - col0 * - 74 * col2
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 col1 FROM tab2 AS cor0 WHERE col2 * col2 + + + 19 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT 85 + - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5181
SELECT 85 + - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL col2 - + col0 AS col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT ALL col2 DIV - - col1 AS col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL col2 / - - col1 AS col1 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT ALL - col0 * + + col0 - ( - + col1 ) FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT ALL col1 - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT COUNT( * ) * - 27 AS col0, MIN( ALL 38 ) FROM tab2
----
-81
38

skipif mysql # not compatible
query II rowsort label-5187
SELECT COUNT ( * ) * - 27 AS col0, MIN ( ALL 38 ) FROM tab2
----
-81
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + + col1 col2, col1 FROM tab0
----
1
1
441
21
6561
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT DISTINCT - COUNT( * ) AS col1, - 39 FROM tab0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-5189
SELECT DISTINCT - COUNT ( * ) AS col1, - 39 FROM tab0
----
-3
-39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL - 91 AS col1, + COUNT( * ) FROM tab2
----
-91
3

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL - 91 AS col1, + COUNT ( * ) FROM tab2
----
-91
3

query I rowsort
SELECT DISTINCT - + ( + - col0 ) + + col1 * + - 66 FROM tab0 WHERE col0 IS NOT NULL
----
-1299
-5331
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT col1 DIV + 59 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT col1 / + 59 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT 47 AS col2, + col2 * - col0 FROM tab2 AS cor0
----
47
-1058
47
-2560
47
-4350

query I rowsort
SELECT ALL + 54 * col2 * - col0 * + col0 FROM tab1 AS cor0
----
-13483584
-23018850
-30407832

query II rowsort
SELECT - ( col1 ) AS col2, - col1 * - - col2 * + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-14
-129024
-47
-217328
-5
-17405

query II rowsort
SELECT + 33 AS col1, + 6 FROM tab0 AS cor0
----
33
6
33
6
33
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT COUNT( * ) * - MAX( + 62 ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) * - MAX ( + 62 ) FROM tab2
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT CAST( + + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT col0 + col2 + + col1 + - col0 + - + col2 * + col0 AS col2 FROM tab0
----
-577
-839
-9503

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT MAX( + 47 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT MAX ( + 47 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + COUNT( * ) * 97 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5202
SELECT + COUNT ( * ) * 97 FROM tab0 AS cor0
----
291

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + 22 * + COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 22 * + COUNT ( * ) FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT - - 55 DIV col1 + + col2 FROM tab0 AS cor0
----
12
154
47

skipif mysql # not compatible
query I rowsort label-5205
SELECT - - 55 / col1 + + col2 FROM tab0 AS cor0
----
12
154
47

query I rowsort
SELECT DISTINCT + + ( + - col0 ) * + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT col1 * - col2 + - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-5207
SELECT col1 * - col2 + - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT - + 52 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT DISTINCT + col2 DIV - col2 + - - 23 AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT + col2 / - col2 + - - 23 AS col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT 30 * + 34 AS col0 FROM tab1
----
1020

query II rowsort
SELECT ALL col2 * + col2 + - 90 AS col2, col1 FROM tab2
----
1510
77
3274
67
439
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + ( MIN( ALL - + 3 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5213
SELECT + ( MIN ( ALL - + 3 ) ) FROM tab1
----
-3

query I rowsort
SELECT col2 + - + 20 + + col1 AS col0 FROM tab1
----
44
90
95

query I rowsort
SELECT + - col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
-210
-2256
-30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 BETWEEN + 24 + + 83 + + col1 + - 66 AND 22 + - col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - 58 * - - 58 + + col2, col1 AS col0 FROM tab0 AS cor0
----
3374
21
3411
81
3463
1

query I rowsort
SELECT DISTINCT + 47 * - + col2 - - - col0 FROM tab2 AS cor0
----
-1127
-1944
-2801

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT DISTINCT - COUNT( * ) * + + 32 AS col2, COUNT( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-288
9

skipif mysql # not compatible
query II rowsort label-5219
SELECT DISTINCT - COUNT ( * ) * + + 32 AS col2, COUNT ( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-288
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL COUNT( + col0 ) * + - SUM( col2 ) * - COUNT( * ) + - ( MIN( + - col1 ) ) FROM tab0
----
1485

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL COUNT ( + col0 ) * + - SUM ( col2 ) * - COUNT ( * ) + - ( MIN ( + - col1 ) ) FROM tab0
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL ( + ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL ( + ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT - 50 * + CAST( col1 AS SIGNED ) FROM tab2
----
-2550
-3350
-3850

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 50 * + CAST ( col1 AS INTEGER ) FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col2 + + + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 BETWEEN NULL AND col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NOT ( + - col2 * CAST( NULL AS SIGNED ) + + + col2 ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NOT ( + - col2 * CAST ( NULL AS INTEGER ) + + + col2 ) IS NULL )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
51
85
91

query I rowsort
SELECT + ( 26 ) AS col2 FROM tab2
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5229
SELECT ALL CAST( - - 27 AS SIGNED ) * col1 DIV - 6 FROM tab1
----
-211
-22
-63

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL CAST ( - - 27 AS INTEGER ) * col1 / - 6 FROM tab1
----
-211
-22
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT col2 DIV - 28 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-5230
SELECT col2 / - 28 FROM tab1
----
-2
-2
-3

query I rowsort
SELECT DISTINCT 55 * - col1 FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT - col1 * + 48 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - 54 * + col2 AS col1 FROM tab0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT + 33 * - 13 + - + COUNT( * ) FROM tab1 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + 33 * - 13 + - + COUNT ( * ) FROM tab1 AS cor0
----
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - - col1 col1 FROM tab2 AS cor0
----
110
120
94

query I rowsort
SELECT - ( col1 ) + + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL CAST( - AVG ( DISTINCT - col2 ) AS SIGNED ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL CAST ( - AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5240
SELECT DISTINCT * FROM tab1 WHERE + - col2 * - CAST( + 25 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5240
SELECT DISTINCT * FROM tab1 WHERE + - col2 * - CAST ( + 25 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + COUNT( * ) + + SUM( - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + COUNT ( * ) + + SUM ( - col2 ) FROM tab2
----
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 96 * + - 17 + + 59 + + + col1 col0, + col2 * + 40 FROM tab2
----
37646
920
65416
1600
94782
2320

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 68 * + col0 * - + col0 * - - ( + - col0 ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT 74 - - col2 FROM tab1
----
133
142
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT COUNT( * ) + + COUNT( col1 ) + + 0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT COUNT ( * ) + + COUNT ( col1 ) + + 0 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT DISTINCT ( - col1 ) DIV + 74 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT ( - col1 ) / + 74 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5248
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col1 AND + ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5248
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col1 AND + ( + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab1 AS cor0 WHERE NOT col1 < col1 + + - col0
----
-99
-99
-99

query I rowsort
SELECT - 30 + 49 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - ( - col1 ) * - + col2 + + - col0 + - 6 + + - 87 + - - 18 AS col2 FROM tab0
----
-271
-372
-3897

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + + MIN( DISTINCT - 33 ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5252
SELECT + + MIN ( DISTINCT - 33 ) AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT + col1 * + col2 * col0 * + 28 AS col1 FROM tab2 AS cor0
----
1510824
5519360
8160600

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + + 19 * - 63 AS col1 FROM tab1 AS cor0
----
-1197
-1197
-1197

query I rowsort
SELECT DISTINCT + 53 / - + col2 AS col0 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + - 92 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + 33 * 92 IS NOT NULL
----

query II rowsort
SELECT - 38 AS col2, - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-38
-21
-38
-54
-38
-82

query I rowsort
SELECT ALL ( - ( col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col0 * - 97 AS col2 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT SUM( DISTINCT - ( - col2 ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT SUM ( DISTINCT - ( - col2 ) ) AS col0 FROM tab0
----
156

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 47 + + - 99 col2, col2 - - + ( - col2 ) AS col2 FROM tab1 cor0
----
-146
0
-146
0
-146
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col1, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-5264
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ( - 55 ) + + - col1, col1 FROM tab2
----
-106
51
-122
67
-132
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - - 8 ) + - 83 AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - - 8 ) + - 83 AS col1 FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT + COUNT( * ), MIN( DISTINCT + 25 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5267
SELECT + COUNT ( * ), MIN ( DISTINCT + 25 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + 71 + - + MAX( - 7 ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 71 + - + MAX ( - 7 ) AS col2 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT + AVG ( + col0 ) * - - CAST( NULL AS SIGNED ) + - 42 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT + AVG ( + col0 ) * - - CAST ( NULL AS INTEGER ) + - 42 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5270
SELECT + + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - + col0 ) * + - col0 * 75 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5273
SELECT * FROM tab2 WHERE ( 21 + - - col1 ) <= + col0 * - - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5273
SELECT * FROM tab2 WHERE ( 21 + - - col1 ) <= + col0 * - - CAST ( + - col0 AS INTEGER )
----

query II rowsort
SELECT DISTINCT - 56, col1 FROM tab2
----
-56
51
-56
67
-56
77

query III rowsort
SELECT * FROM tab0 WHERE - ( - col1 ) * + + 97 / + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - - ( col1 ) AS col2 FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + 95 AS col0, 30 col0 FROM tab1
----
-48
30
-81
30
-90
30

query I rowsort
SELECT + 7 * + 84 + - col2 * - 39 + col1 AS col2 FROM tab1
----
2894
3287
4346

query I rowsort
SELECT 90 * - col1 + - 22 * - col2 AS col1 FROM tab2
----
-4084
-4754
-6050

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + + SUM( ALL - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT + + SUM ( ALL - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 47 col0 FROM tab2
----
111
122
93

query I rowsort
SELECT - col1 * + - 46 + - - col2 FROM tab0
----
145
3773
976

query I rowsort
SELECT + col0 + - 33 + + - col0 AS col1 FROM tab2
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT - 88 DIV - col2 + + - col1 AS col0 FROM tab2 cor0
----
-48
-66
-75

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 88 / - col2 + + - col1 AS col0 FROM tab2 cor0
----
-48
-66
-75

query II rowsort
SELECT DISTINCT + - col0 - 39 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
-103
77
-114
67
-85
51

query I rowsort
SELECT - - 86 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL + CAST( NULL AS SIGNED ) * - + 30 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 30 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5290
SELECT - ( + - ( CAST( NULL AS DECIMAL ) ) ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT - ( + - ( CAST ( NULL AS REAL ) ) ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL 59 * - COUNT( * ) AS col0 FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL 59 * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT * FROM tab0 AS cor0 WHERE NOT 7 <= CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT * FROM tab0 AS cor0 WHERE NOT 7 <= CAST ( - - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + MAX( ALL 52 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + MAX ( ALL 52 ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 * 5 * - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col1 col0 FROM tab0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 65 + ( - - 47 ) + + 12 / + col0 * - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * + - 0 + col0 NOT BETWEEN 7 + - - col1 AND 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - COUNT( * ) * + ( - 2 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5298
SELECT - COUNT ( * ) * + ( - 2 ) AS col0 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT DISTINCT col1 DIV - - col2 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT col1 / - - col2 AS col0 FROM tab2
----
1
2

query II rowsort
SELECT DISTINCT col0, 35 AS col0 FROM tab1
----
51
35
85
35
91
35

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + - 56 IS NULL
----

query II rowsort
SELECT DISTINCT 49, 8 AS col2 FROM tab0 AS cor0 WHERE ( - 60 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT ( - col2 ) AS col1, + CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5303
SELECT ( - col2 ) AS col1, + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT 80 * 72 + + - col1 FROM tab2
----
5683
5693
5709

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 63 * - COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 63 * - COUNT ( * ) FROM tab2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL COUNT( * ) + - - SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL COUNT ( * ) + - - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-182

query I rowsort
SELECT 28 + 19 AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT + + col0 * + 15 - 4 FROM tab2 AS cor0
----
1121
686
956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT ALL - - col2 * + col1 + + 39 * CAST( 15 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1929
3781
880

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - - col2 * + col1 + + 39 * CAST ( 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1929
3781
880

query I rowsort
SELECT - 46 + + - col1 + + col2 AS col1 FROM tab0 cor0
----
-57
-80
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT ( + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ( + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - COUNT( ALL - col2 ) + - 63 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5312
SELECT - COUNT ( ALL - col2 ) + - 63 FROM tab0
----
-66

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ( + COUNT( * ) ) * + 97 * 45 AS col2 FROM tab0
----
13095

skipif mysql # not compatible
query I rowsort label-5314
SELECT ( + COUNT ( * ) ) * + 97 * 45 AS col2 FROM tab0
----
13095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + + + 23 AS col2 FROM tab2
----
-17
-35
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5317
SELECT * FROM tab2 WHERE col1 + + CAST( - 44 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5317
SELECT * FROM tab2 WHERE col1 + + CAST ( - 44 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 76 FROM tab0 WHERE ( col0 + - 6 >= + 11 )
----
76
76

query II rowsort
SELECT + 90 AS col1, + col0 + col0 FROM tab1
----
90
102
90
170
90
182

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + + col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE 76 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + col1 * + - 22 * + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
-130374
-57176
-98683

query I rowsort
SELECT col1 - - - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - MIN( + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - MIN ( + 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT 1 * col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT ALL COUNT( * ) col1, - COUNT( * ) col2 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5326
SELECT ALL COUNT ( * ) col1, - COUNT ( * ) col2 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL - ( + COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - ( + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 / - + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 29 ) AS col1 FROM tab2
----
29
29
29

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( 38 ) * - - 24 * - 81 * + - col1 AS col1 FROM tab0 cor0
----
1551312
5983632
73872

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5332
SELECT COUNT( * ) * + - COUNT( * ) * + ( + CAST( NULL AS DECIMAL ) ) + + 68 FROM tab0 AS cor0 WHERE NOT NULL = 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT COUNT ( * ) * + - COUNT ( * ) * + ( + CAST ( NULL AS REAL ) ) + + 68 FROM tab0 AS cor0 WHERE NOT NULL = 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL COUNT( col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL COUNT ( col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT + 17 AS col1, 39 + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
17
48

skipif mysql # not compatible
query II rowsort label-5334
SELECT + 17 AS col1, 39 + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
17
48

query I rowsort
SELECT + + 66 * - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL CAST( 64 AS SIGNED ) + - - 38 FROM tab1
----
102
102
102

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL CAST ( 64 AS INTEGER ) + - - 38 FROM tab1
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5337
SELECT ALL - - col2 * - col2, - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

skipif mysql # not compatible
query II rowsort label-5337
SELECT ALL - - col2 * - col2, - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL COUNT( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
3

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL, tab1 AS cor2
----

query II rowsort
SELECT - col2 AS col0, col1 AS col2 FROM tab1
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 AS col0, - col1 col0 FROM tab1 AS cor0
----
-39
-14
-39
-47
-39
-5

query I rowsort
SELECT ALL + col0 * + col1 + + + col2 + + - col2 + + 56 + - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
2351
4907
5014

query I rowsort
SELECT DISTINCT - 77 * - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
1202
6709
7568

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT + + ( - - col2 ) DIV + - col0 + col1 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + + ( - - col2 ) / + - col0 + col1 FROM tab0 AS cor0
----
0
21
78

query I rowsort
SELECT ALL - col2 - col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5346
SELECT DISTINCT - MIN( ALL + - col1 ) AS col1, MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT - MIN ( ALL + - col1 ) AS col1, MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 53 FROM tab2 AS cor0 WHERE NOT + col2 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT 96 DIV 79 - + - col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5348
SELECT 96 / 79 - + - col1 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + + COUNT( * ) FROM tab2 WHERE - - 93 + col0 * - 38 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT + + COUNT ( * ) FROM tab2 WHERE - - 93 + col0 * - 38 IS NULL
----
0

query I rowsort
SELECT + col2 + + col1 + - col1 AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT col2 + 56 AS col1, - col2 * + col2 + - 75 FROM tab0
----
103
-2284
155
-9876
66
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT COUNT( * ) - + ( - MAX( ALL - col2 ) ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT COUNT ( * ) - + ( - MAX ( ALL - col2 ) ) AS col0 FROM tab2
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5353
SELECT ALL CAST( NULL AS DECIMAL ) - ( - - 3 ) * - 51 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL CAST ( NULL AS REAL ) - ( - - 3 ) * - 51 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - MAX( 32 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-5354
SELECT - MAX ( 32 ) FROM tab2
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0, + col2 / - col1 * 79, - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT + CAST( - 72 AS SIGNED ) AS col0 FROM tab2
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-5356
SELECT + CAST ( - 72 AS INTEGER ) AS col0 FROM tab2
----
-72
-72
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = - 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 NOT IN ( + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT + - SUM( - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + - SUM ( - - col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col1
----
75
67
58

query I rowsort
SELECT DISTINCT - 93 * col2 FROM tab2 cor0
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT + + COUNT( 85 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5363
SELECT + + COUNT ( 85 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + 48 + - 26 + col0 FROM tab1
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT + ( - + COUNT( * ) ) * + - COUNT( * ) + + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5365
SELECT + ( - + COUNT ( * ) ) * + - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT ALL + + col2 * + - col0 + + - col1 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-9507
429
936

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT + ( - 58 ) DIV col1 * + ( + + 44 ) * + col1 + + ( + 43 ) AS col2 FROM tab1 AS cor0
----
-2025
-2377
-2421

skipif mysql # not compatible
query I rowsort label-5368
SELECT + ( - 58 ) / col1 * + ( + + 44 ) * + col1 + + ( + 43 ) AS col2 FROM tab1 AS cor0
----
-2025
-2377
-2421

query I rowsort
SELECT ALL 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT CAST( NULL AS SIGNED ) * + 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5371
SELECT CAST ( NULL AS INTEGER ) * + 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 26 * - col1, + col1, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT ALL - col1 DIV + + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5373
SELECT ALL - col1 / + + col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT - - col0 DIV - 55 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT - - col0 / - 55 FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT - ( - col1 ), 53 AS col2 FROM tab0 cor0
----
1
53
21
53
81
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL MIN( 10 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL MIN ( 10 ) FROM tab0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5377
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT col1 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT col1 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT + col1 DIV - 35 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5379
SELECT + col1 / - 35 AS col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT - - 93 * 73 + ( + col2 ) FROM tab2 AS cor0
----
6812
6829
6847

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5381
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + CAST( NULL AS SIGNED ) IN ( - col2 * + 54, + 92 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-5381
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + CAST ( NULL AS INTEGER ) IN ( - col2 * + 54, + 92 + - col1 )
----

query I rowsort
SELECT col1 / + + 70 * + col1 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 48 IS NOT NULL
----
-2

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5387
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - CAST( + col1 AS SIGNED ) ) NOT BETWEEN + + col0 + - + col0 AND - 9
----

skipif mysql # not compatible
query III rowsort label-5387
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - CAST ( + col1 AS INTEGER ) ) NOT BETWEEN + + col0 + - + col0 AND - 9
----

query I rowsort
SELECT - - ( + col2 ) * - + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - + COUNT( + + col1 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5389
SELECT - + COUNT ( + + col1 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5390
SELECT DISTINCT + col1 * col2 DIV + col1 - col1 AS col1, col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

skipif mysql # not compatible
query II rowsort label-5390
SELECT DISTINCT + col1 * col2 / + col1 - col1 AS col1, col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col2 * - col1 / - 73 FROM tab1 AS cor0 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT DISTINCT - col2 * - - col2 + + CAST( NULL AS SIGNED ) - - col1 / + - 48 * + col1 - + - 43 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - col2 * - - col2 + + CAST ( NULL AS INTEGER ) - - col1 / + - 48 * + col1 - + - 43 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * - - 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + - col0 ) AS col0 FROM tab1 WHERE - col0 > - col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT 58 + COUNT( * ) AS col1 FROM tab0 WHERE - CAST( - col2 AS SIGNED ) * col0 * - 21 NOT BETWEEN - - col0 * + col0 AND 56
----
61

skipif mysql # not compatible
query I rowsort label-5396
SELECT 58 + COUNT ( * ) AS col1 FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) * col0 * - 21 NOT BETWEEN - - col0 * + col0 AND 56
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT CAST( + AVG ( DISTINCT - + col0 ) AS SIGNED ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5397
SELECT CAST ( + AVG ( DISTINCT - + col0 ) AS INTEGER ) FROM tab0
----
-66

query I rowsort
SELECT DISTINCT 54 * - col1 FROM tab2 WHERE NULL < - - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT + 55 + - - 26 + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + 55 + - - 26 + COUNT ( * ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT + + col2 + - col0 + - + col2 - + col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5401
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5401
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + col0 + + col0 + + + 91 * - col1 FROM tab2 AS cor0
----
-4600
-6014
-6956

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL IN ( 50 - - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + + COUNT( * ) - + COUNT( * ) + + 4 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5406
SELECT + + COUNT ( * ) - + COUNT ( * ) + + 4 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + col1 - + - col0 * - col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL col0 - - 10 FROM tab1 AS cor0
----
101
61
95

query II rowsort
SELECT ALL - 27, + 21 * 96 * + 55 + - - col1 AS col2 FROM tab0 AS cor0
----
-27
110881
-27
110901
-27
110961

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) - - MIN( - - col0 ) col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5410
SELECT COUNT ( * ) - - MIN ( - - col0 ) col2 FROM tab1 AS cor0
----
54

query II rowsort
SELECT ALL - col0 - - col1 AS col1, col2 AS col0 FROM tab1 cor0
----
-37
96
-44
68
-80
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT - CAST( NULL AS SIGNED ) * + - 52 - + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT - CAST ( NULL AS INTEGER ) * + - 52 - + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - + 3 - - 22 FROM tab0 AS cor0
----
-119
-275
-8

query I rowsort
SELECT - col0 - + col0 + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - + 74 AS col1 FROM tab2 cor0
----
-74
-74
-74

query I rowsort
SELECT - col0 * col2 * + - col0 AS col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT - 71 * - col1 FROM tab2
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT MAX( DISTINCT + + 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5418
SELECT MAX ( DISTINCT + + 19 ) FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col0 FROM tab0
----
61

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 * - col0 + 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + MAX( - - ( - ( + - col2 ) ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5422
SELECT + MAX ( - - ( - ( + - col2 ) ) ) FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 IN ( - + col1 )
----

query I rowsort
SELECT DISTINCT + col1 * + 68 * col0 + + - 41 + + col2 FROM tab2 WHERE - 18 >= - 55
----
159510
335103
341717

query I rowsort
SELECT - + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT DISTINCT + 6 AS col0, - col0 FROM tab0 AS cor0
----
6
-15
6
-87
6
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT DISTINCT - + 88, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-5428
SELECT DISTINCT - + 88, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-88
3

query I rowsort
SELECT + col0 + 27 AS col1 FROM tab1 AS cor0
----
112
118
78

query II rowsort
SELECT ALL + col1 + - + ( + col0 ) * + + col1, - col0 AS col1 FROM tab2
----
-2295
-46
-4851
-64
-4958
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT col1 + + + CAST( - col0 AS SIGNED ) FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT col1 + + + CAST ( - col0 AS INTEGER ) FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 54 FROM tab1 WHERE NULL IS NULL
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + col0 * col0 AS col1, + col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT - - SUM( ALL - - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5435
SELECT - - SUM ( ALL - - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT COUNT( * ) - 63 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5436
SELECT COUNT ( * ) - 63 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 30 > - + 93 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col0 / col0 * - + 72 FROM tab2 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT + 43 + 18 - + 72 AS col2 FROM tab1
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT - COUNT( * ) - + + 72 AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - COUNT ( * ) - + + 72 AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col1 * + col1 + - ( - 50 ) FROM tab2 AS cor0
----
2651
4539
5979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT - CAST( 37 AS SIGNED ) AS col0 FROM tab0 cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-5442
SELECT - CAST ( 37 AS INTEGER ) AS col0 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT 79 * 69 AS col1 FROM tab1 AS cor0
----
5451
5451
5451

query I rowsort
SELECT - 66 * + ( + + 96 ) FROM tab1 cor0
----
-6336
-6336
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + ( + SUM( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5445
SELECT + ( + SUM ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - col0 > NULL
----

query II rowsort
SELECT col2 AS col1, - 93 * - + 2 * - col1 AS col0 FROM tab2
----
23
-9486
40
-14322
58
-12462

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL + 10 * - COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + 10 * - COUNT ( * ) FROM tab1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT ALL 67 DIV + COUNT( * ) AS col0 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL 67 / + COUNT ( * ) AS col0 FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT - + CAST( - - col1 AS SIGNED ) + col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5450
SELECT - + CAST ( - - col1 AS INTEGER ) + col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5451
SELECT * FROM tab2 WHERE NOT + ( col1 ) / - 91 + - col0 - CAST( - - col2 AS SIGNED ) + col2 + - col2 + 24 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5451
SELECT * FROM tab2 WHERE NOT + ( col1 ) / - 91 + - col0 - CAST ( - - col2 AS INTEGER ) + col2 + - col2 + 24 IS NOT NULL
----

query I rowsort
SELECT 97 * + 18 FROM tab2
----
1746
1746
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - + ( + SUM( ALL + col1 ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5453
SELECT - + ( + SUM ( ALL + col1 ) ) FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT 79 * + col1 FROM tab2 AS cor0
----
4029
5293
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 81 col0 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT + - 83 DIV + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + - 83 / + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT - 9 * ( + - col0 ) AS col1 FROM tab2
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT + - col0 * col1 - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

skipif mysql # not compatible
query I rowsort label-5458
SELECT + - col0 * col1 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT - 11, - 33 * COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
-11
0

skipif mysql # not compatible
query II rowsort label-5460
SELECT - 11, - 33 * COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
-11
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + + col1 col2 FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT + COUNT( * ) * + SUM( 60 ) FROM tab1 WHERE - col0 <> col1
----
540

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + COUNT ( * ) * + SUM ( 60 ) FROM tab1 WHERE - col0 <> col1
----
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col2 + - ( - 96 ) col2 FROM tab0
----
-2113
-4
-9705

query I rowsort
SELECT DISTINCT - col2 - - 10 AS col2 FROM tab0 AS cor0
----
-37
-89
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 25 ) col2 FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + COUNT( * ) - ( - + ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + COUNT ( * ) - ( - + ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 79 AS col2 FROM tab1 cor0
----
-79

query I rowsort
SELECT DISTINCT ( col1 ) - - - col0 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT 17 + + COUNT( * ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-5469
SELECT 17 + + COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
20

query I rowsort
SELECT + col2 * col1 + + col0 FROM tab0
----
196
297
3822

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 52 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 75 * 21 FROM tab1
----
-1575

query I rowsort
SELECT ALL - col0 * col2 + col1 FROM tab1 WHERE NOT NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - 53 * ( + COUNT( ALL + col2 ) * + COUNT( * ) ) FROM tab1 WHERE NOT NULL = - col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT - 53 * ( + COUNT ( ALL + col2 ) * + COUNT ( * ) ) FROM tab1 WHERE NOT NULL = - col2 / col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col2 - + col1
----

query I rowsort
SELECT + 68 FROM tab0 WHERE NOT - col1 + 31 = 64 * - ( 87 )
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT - 9 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 9 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT MIN( - 21 ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5478
SELECT MIN ( - 21 ) AS col2 FROM tab2
----
-21

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col1 ) AND - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + COUNT( * ) * MAX( col1 ) + + 80 FROM tab2 WHERE NULL NOT IN ( + col1 - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT + COUNT ( * ) * MAX ( col1 ) + + 80 FROM tab2 WHERE NULL NOT IN ( + col1 - 66 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + 45 ) ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL SUM( ( ( 24 ) ) ) + + COUNT( * ) * + 13 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL SUM ( ( ( 24 ) ) ) + + COUNT ( * ) * + 13 FROM tab1
----
111

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 2 >= ( + 91 + - 37 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) + - 73 FROM tab2
----
-15
-33
-50

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 68 - + 9 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT - CAST( NULL AS SIGNED ) + - col0 / col2 AS col2 FROM tab2 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5487
SELECT - CAST ( NULL AS INTEGER ) + - col0 / col2 AS col2 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5488
SELECT * FROM tab0 WHERE NULL NOT IN ( + ( + col1 ) / 23 - col0 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5488
SELECT * FROM tab0 WHERE NULL NOT IN ( + ( + col1 ) / 23 - col0 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - col2 + - ( col1 + 99 * col0 ) FROM tab1
----
-5159
-8479
-9124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT + 10 * - 99 + ( + CAST( + col2 AS SIGNED ) ) FROM tab1
----
-894
-922
-931

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 10 * - 99 + ( + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-894
-922
-931

query I rowsort
SELECT col1 * ( 12 ) + - col1 AS col2 FROM tab2
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT COUNT( * ) + + 93 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5492
SELECT COUNT ( * ) + + 93 FROM tab1
----
96

query I rowsort
SELECT DISTINCT 92 * col1 AS col2 FROM tab1 AS cor0
----
1288
4324
460

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = ( - col2 )
----

query I rowsort
SELECT DISTINCT 59 * - col1 AS col1 FROM tab1 AS cor0
----
-2773
-295
-826

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 WHERE NOT ( + col0 ) >= + col1
----
81

query I rowsort
SELECT 99 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 12 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 12 FROM tab1
----
21

query I rowsort
SELECT DISTINCT - ( - col0 ) + - 19 AS col2 FROM tab1 WHERE ( 71 - col2 ) NOT IN ( + col0 )
----
32
66
72

query I rowsort
SELECT 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT col1 * - 41 AS col0 FROM tab1
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - MAX( ALL col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - MAX ( ALL col2 ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT - 64 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-64
-64
-64

query I rowsort
SELECT DISTINCT ( col0 ) + + 73 FROM tab1
----
124
158
164

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 55 - 87 IN ( 85 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT ALL + 99 DIV - COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + 99 / - COUNT ( * ) FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - MAX( DISTINCT + col0 ) + 30 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5508
SELECT - MAX ( DISTINCT + col0 ) + 30 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - COUNT( * ) + + MAX( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT - COUNT ( * ) + + MAX ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT - col1 + + col2 * + col1 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT + ( 17 ) DIV + 9 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + ( 17 ) / + 9 AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT COUNT( * ) + + 82 AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5512
SELECT COUNT ( * ) + + 82 AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT - col1 + + 97 FROM tab1
----
50
83
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + 1 + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 1 + - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 + col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5516
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) BETWEEN + CAST( NULL AS SIGNED ) * - col0 AND - 66 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5516
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) BETWEEN + CAST ( NULL AS INTEGER ) * - col0 AND - 66 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 75 + ( col1 ) AS col1 FROM tab1
----
122
80
89

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT COUNT( * ) FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT COUNT ( * ) FROM tab2 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT + 60 - + + SUM( DISTINCT - 22 ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + 60 - + + SUM ( DISTINCT - 22 ) AS col2 FROM tab1
----
82

query I rowsort
SELECT ALL - 49 + + + 81 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT + MAX( col0 ) FROM tab0 WHERE col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT + MAX ( col0 ) FROM tab0 WHERE col1 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT ALL COUNT( * ) - - 24 * + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL COUNT ( * ) - - 24 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT - col2 - + 92 * - col0 AS col0 FROM tab2 AS cor0
----
4209
5848
6842

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL + + COUNT( * ) - 77 col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5525
SELECT ALL + + COUNT ( * ) - 77 col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL - - 65 AS col1 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL - CAST( 37 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - CAST ( 37 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT col0 col0 FROM tab1 WHERE NOT ( col0 + CAST( + col0 AS SIGNED ) ) IS NULL
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5528
SELECT col0 col0 FROM tab1 WHERE NOT ( col0 + CAST ( + col0 AS INTEGER ) ) IS NULL
----
51
85
91

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT - COUNT( * ) DIV + COUNT( * ) + - 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( * ) / + COUNT ( * ) + - 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT DISTINCT + col2 * 22 AS col1 FROM tab2
----
1276
506
880

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( col0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT ALL + CAST( + 8 AS SIGNED ) AS col1 FROM tab2 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL + CAST ( + 8 AS INTEGER ) AS col1 FROM tab2 cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5534
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5534
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - COUNT( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5535
SELECT - COUNT ( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5536
SELECT ALL + CAST( NULL AS DECIMAL ), col2 - col2 - + col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL + CAST ( NULL AS REAL ), col2 - col2 - + col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 + 78 col1 FROM tab0 AS cor0 WHERE col0 - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - + SUM( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5538
SELECT - + SUM ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5539
SELECT ( COUNT( * ) ) + + SUM( - CAST( NULL AS DECIMAL ) ) * MIN( col1 * + col0 ) AS col2 FROM tab0 AS cor0 WHERE 2 >= ( - col1 ) OR ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ( COUNT ( * ) ) + + SUM ( - CAST ( NULL AS REAL ) ) * MIN ( col1 * + col0 ) AS col2 FROM tab0 AS cor0 WHERE 2 >= ( - col1 ) OR ( - col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col2 FROM tab1 cor0 WHERE NOT ( col0 ) > + col0 * + col0
----
1395
3287
380

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL SUM( - - ( + 48 ) ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL SUM ( - - ( + 48 ) ) AS col2 FROM tab2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - COUNT( * ) * - ( - + MIN( ALL + + col0 ) ) * 3 AS col1 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5543
SELECT - COUNT ( * ) * - ( - + MIN ( ALL + + col0 ) ) * 3 AS col1 FROM tab0 cor0
----
-135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + + 25 ) <= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - col1 + + col0 / + col1 * col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 37 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( col2 ) + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col0 AS col0 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT - 21 + - col2 FROM tab1 AS cor0
----
-117
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 25 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 25 IS NULL
----
3

query I rowsort
SELECT - ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 31 < ( - - col1 )
----
15
81
47

query I rowsort
SELECT - col0 * - - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT + 12 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + 12 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-5556
SELECT ALL - col2 DIV + + col0 + - 99 AS col1, col2 * 20 FROM tab2 AS cor0
----
-99
1160
-99
460
-99
800

skipif mysql # not compatible
query II rowsort label-5556
SELECT ALL - col2 / + + col0 + - 99 AS col1, col2 * 20 FROM tab2 AS cor0
----
-99
1160
-99
460
-99
800

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col0 AS col1, col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL - - col1 AS col0 FROM tab2 WHERE - - CAST( - 15 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - - col1 AS col0 FROM tab2 WHERE - - CAST ( - 15 AS INTEGER ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - col2 + + 17 DIV + - col0 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - col2 + + 17 / + - col0 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL 33 + + col1 AS col2 FROM tab2
----
100
110
84

query I rowsort
SELECT ( + 99 ) + - ( ( + col0 ) ) FROM tab2
----
24
35
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT - 48 + + CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT - 48 + + CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT COUNT( * ) + - + 31 * + 66 FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT COUNT ( * ) + - + 31 * + 66 FROM tab1
----
-2043

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL > NULL
----

query II rowsort
SELECT ALL + col1 + - col0 * ( - + col2 ) AS col0, ( + 90 ) FROM tab0
----
786
90
891
90
9604
90

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT - col1 * - col0 + - col1 + + col1 DIV - 64 * + col0 DIV - col2 AS col1 FROM tab2 AS cor0
----
2295
4852
4959

skipif mysql # not compatible
query I rowsort label-5569
SELECT - col1 * - col0 + - col1 + + col1 / - 64 * + col0 / - col2 AS col1 FROM tab2 AS cor0
----
2295
4852
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT - COUNT( * ) FROM tab1 WHERE NOT + 15 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + 15 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5571
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
-3

query I rowsort
SELECT ALL ( + - col2 ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col2 ) * - ( col0 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT ( + + 24 ) * + col0 FROM tab2 AS cor0
----
1104
1536
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT + COUNT( * ) AS col1, - SUM( ALL - col0 ) col2 FROM tab0
----
3
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5576
SELECT + COUNT ( * ) AS col1, - SUM ( ALL - col0 ) col2 FROM tab0
----
3
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 28 AS col0, 77 col1 FROM tab2
----
-28
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT ALL + col1 + - 29 DIV + col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + col1 + - 29 / + col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - col0 + + ( + col2 ) FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5580
SELECT - 84 + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT - 84 + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND - + 54 * - 12
----

query I rowsort
SELECT + col0 + 70 AS col1 FROM tab0
----
157
167
85

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT ( - 45 ) AS col2 FROM tab2
----
-45

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col0 >= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * 10 FROM tab1
----
510
850
910

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) = + col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 85 AS col1, col2 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + + MIN( + + 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5589
SELECT + + MIN ( + + 72 ) FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE - col2 * + col0 * - 22 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT ALL + COUNT( * ) DIV ( + 6 ) + - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + COUNT ( * ) / ( + 6 ) + - COUNT ( * ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 WHERE - 87 * - col2 * col2 / - + col2 NOT BETWEEN ( - 81 * - 25 + ( + 70 ) * + col2 ) AND ( - 49 * + 36 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 74 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5596
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * + col2 / - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5596
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * + col2 / - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL - - MIN( + 88 ) + 12 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - - MIN ( + 88 ) + 12 FROM tab2 AS cor0
----
100

query II rowsort
SELECT + + 95 + 1 AS col1, col2 FROM tab1 cor0
----
96
59
96
68
96
96

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE ( col0 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + 49 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= col0 + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL MAX( + ( - - 73 ) ) + 70 * - MIN( ALL + col2 ) + + + 43 + + 27 FROM tab1
----
-3987

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL MAX ( + ( - - 73 ) ) + 70 * - MIN ( ALL + col2 ) + + + 43 + + 27 FROM tab1
----
-3987

query I rowsort
SELECT - col1 * + 72 * + 80 FROM tab0
----
-120960
-466560
-5760

query I rowsort
SELECT DISTINCT - col2 + - + col2 + - col2 + + 43 AS col0 FROM tab0
----
-254
-98
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5605
SELECT CAST( NULL AS SIGNED ) AS col1, + col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5605
SELECT CAST ( NULL AS INTEGER ) AS col1, + col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - 98 + + 33 NOT BETWEEN ( col2 * - - 8 ) AND col1 / + + 96 * + 35 * + - 76 + - col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5607
SELECT * FROM tab2 WHERE - - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5607
SELECT * FROM tab2 WHERE - - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + ( 13 ) AS col0 FROM tab0 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * - col2 * col2 * - col2 * - + 6 FROM tab0
----
-126000
-50457978
-5821794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5611
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT - COUNT( * ) DIV 12 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - COUNT ( * ) / 12 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COUNT( * ) * - 78 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( * ) * - 78 FROM tab2 AS cor0
----
-234

query II rowsort
SELECT + col1, ( col0 ) FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT + + 17 DIV - col1 + + col2 FROM tab0 AS cor0
----
10
47
82

skipif mysql # not compatible
query I rowsort label-5615
SELECT + + 17 / - col1 + + col2 FROM tab0 AS cor0
----
10
47
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT - COUNT( * ) * + 81 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - COUNT ( * ) * + 81 FROM tab1 AS cor0
----
-243

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT - col0 FROM tab0 WHERE NOT - col1 + 0 BETWEEN CAST( - + 23 AS SIGNED ) AND NULL
----
-15

skipif mysql # not compatible
query I rowsort label-5618
SELECT - col0 FROM tab0 WHERE NOT - col1 + 0 BETWEEN CAST ( - + 23 AS INTEGER ) AND NULL
----
-15

query I rowsort
SELECT ALL 58 + + col0 * - col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-167
-7511
-9351

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 38 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 85 - + col2 col2 FROM tab0 WHERE - col1 + + col0 NOT BETWEEN + - col0 AND + 45
----
-1795
-184
-6932

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT ALL - col2 DIV ( - + col0 ) + col0 col1 FROM tab1
----
52
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5622
SELECT ALL - col2 / ( - + col0 ) + col0 col1 FROM tab1
----
52
85
91

query II rowsort
SELECT 10, col2 AS col0 FROM tab2
----
10
23
10
40
10
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 54 ) col1 FROM tab2
----
54
54
54

query I rowsort
SELECT + + ( - 86 ) FROM tab1 AS cor0
----
-86
-86
-86

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL + 73 - - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
119
137
148

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL + 73 - - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
119
137
148

query I rowsort
SELECT DISTINCT + - 33 FROM tab2 cor0 WHERE 18 IS NOT NULL
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT - col0 * + + CAST( + + CAST( + - 19 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col0 AND + ( + col2 ) * + - col1 + - + col0
----
1653
1843
285

skipif mysql # not compatible
query I rowsort label-5630
SELECT - col0 * + + CAST ( + + CAST ( + - 19 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col0 AND + ( + col2 ) * + - col1 + - + col0
----
1653
1843
285

query I rowsort
SELECT ALL 54 + 37 FROM tab1
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col2 col0, + col0 AS col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - ( + - MAX( 99 ) ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-5634
SELECT - ( + - MAX ( 99 ) ) AS col0 FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT 18 DIV col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5635
SELECT 18 / col1 FROM tab1
----
0
1
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5636
SELECT col2 DIV + - 25 col0, - ( - - col0 ) AS col0 FROM tab0
----
-1
-15
-3
-97
0
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5636
SELECT col2 / + - 25 col0, - ( - - col0 ) AS col0 FROM tab0
----
-1
-15
-3
-97
0
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 99 AS col0 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + col0 * col1 = + + 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IN ( 21 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IN ( 21 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - SUM( + - ( - ( - + ( + 58 ) ) ) ) FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - SUM ( + - ( - ( - + ( + 58 ) ) ) ) FROM tab1 cor0
----
174

query I rowsort
SELECT - 99 * + + 66 + - col2 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-203654
-297984
-60492

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5644
SELECT + col1 * - + 43 * + CAST( NULL AS DECIMAL ) AS col0, col2 * ( col1 ) * + col1 + + col1 DIV - col2 AS col0 FROM tab2 AS cor0
----
NULL
237159
NULL
260361
NULL
59821

skipif mysql # not compatible
query II rowsort label-5644
SELECT + col1 * - + 43 * + CAST ( NULL AS REAL ) AS col0, col2 * ( col1 ) * + col1 + + col1 / - col2 AS col0 FROM tab2 AS cor0
----
NULL
237159
NULL
260361
NULL
59821

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT + COUNT( - + CAST( col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + COUNT ( - + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col1 * + + ( 26 ) + + 22 FROM tab2 cor0
----
1348
1764
2024

query I rowsort
SELECT DISTINCT ( + col1 ) + - - col0 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - 20 * + col2 col0 FROM tab0
----
179
1979
859

query I rowsort
SELECT col0 + + - col0 * col1 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 1 = + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 87 IS NOT NULL
----

query I rowsort
SELECT 40 * + + col1 * 92 FROM tab1
----
172960
18400
51520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT col0 * - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT col0 * - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5655
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( ( - + 78 ) > CAST( + - 95 AS DECIMAL ) * col1 ) )
----

skipif mysql # not compatible
query III rowsort label-5655
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( ( - + 78 ) > CAST ( + - 95 AS REAL ) * col1 ) )
----

query I rowsort
SELECT 55 * col1 + + 16 * - - col2 * - 64 AS col2 FROM tab2
----
-20747
-36725
-55707

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <= col2 / - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL IN ( col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5659
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5659
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5660
SELECT ALL - 26 - - col2 + + col2 DIV col2 * + - col1, 82 * + col2 AS col2 FROM tab0 AS cor0
----
-37
820
-60
3854
72
8118

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL - 26 - - col2 + + col2 / col2 * + - col1, 82 * + col2 AS col2 FROM tab0 AS cor0
----
-37
820
-60
3854
72
8118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT + - col1 * - + col2 + col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query II rowsort label-5663
SELECT - - col2 * - col0, col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-4896
0
-5015
0
-6188
0

skipif mysql # not compatible
query II rowsort label-5663
SELECT - - col2 * - col0, col1 / - col2 AS col2 FROM tab1 AS cor0
----
-4896
0
-5015
0
-6188
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 3 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 50 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + COUNT( * ) * + 92 AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-5667
SELECT + COUNT ( * ) * + 92 AS col2 FROM tab2
----
276

query I rowsort
SELECT col1 * + - 84 AS col1 FROM tab0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + SUM( + col1 ) - - ( + 39 ) * 54 FROM tab1 WHERE NOT ( NOT col1 IS NOT NULL )
----
2172

skipif mysql # not compatible
query I rowsort label-5669
SELECT + SUM ( + col1 ) - - ( + 39 ) * 54 FROM tab1 WHERE NOT ( NOT col1 IS NOT NULL )
----
2172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ( + COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + + 37 * + col0 < + CAST( - - 61 AS SIGNED ) * - col1
----
3

skipif mysql # not compatible
query I rowsort label-5670
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + + 37 * + col0 < + CAST ( - - 61 AS INTEGER ) * - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT + ( - COUNT( DISTINCT - - ( 12 ) ) ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT DISTINCT + ( - COUNT ( DISTINCT - - ( 12 ) ) ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 * 31 FROM tab1
----
1581
2635
2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT - COUNT( DISTINCT + col2 ) * 22 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5673
SELECT - COUNT ( DISTINCT + col2 ) * 22 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT ALL - 32 * + col1 DIV - - col1 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - 32 * + col1 / - - col1 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - 82 * + - ( - col0